Hi All,

How do i retreive info with php from w2k active directory.
I am running php from a linux box connecting to a windows
2000 domain controller.It seems asif i can connect to w2k
but i have noidea how to retreive the list of users.How
would i do that?

        $ldaphost = "ldap://w2k.domain.net";;
        $ldapport = "389";
        $ldapuser = "administrator";
        $ldappasswd = "";
        $ldaplink = ldap_connect($ldaphost, $ldapport)
        or die("Can't establish LDAP connection");
ldap_bind($ldaplink, $ldapuser, $ldappasswd)
        or die("Can't bind to server...");
For super low premiums, click here http://www.dialdirect.co.za/quote

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to