ldap
| From: | it clown | Date: | Sat, 18 Dec 2004 08:41:29 +0000 |
| Subject: | ldap | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-37750@lists.php.net to get a copy of this message | ||
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?
<?php
$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