Fedora - php - ldap - w2003

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

I have problem with binding on active directory from php (fedora4

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://";
$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

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

Site Timeline