|
Posted by h00s on 02/05/06 14:19
I have problem with binding on active directory from php (fedora4
core)
There is 2 machines. On one machine is w2003 with succesfully
installed AD. The other machine is Fedora4 with out-of-the-box
installed Apache, php and mysql. In php.ini is loaded module for ldap.
The goal is to query AD from php to check username and password.
This is code:
// ------------
$ldap_server = "ldap://192.168.0.1";
$auth_user = "Administrator";
$auth_pass = "password";
if (!($connect=@ldap_connect($ldap_server))) {
die ("unable to connect");
}
if (!($bind=@ldap_bind($connect, $auth_user, $auth_pass))) {
die("unable to bind");
}
// -------------
Code die at binding.
Is there something i am doing wrong? Or is it something more to config
(php/linux)?
Thank you and sorry for the long post!
--
- Marketer to coder: "You start coding. I'll go find out what they want." -
kruno(at)binel(dot)hr | uin: 2040925
Navigation:
[Reply to this message]
|