RE: [PHP-DB] ldap
| From: | Bastien Koert | Date: | Sat, 18 Dec 2004 13:45:23 +0000 |
| Subject: | RE: [PHP-DB] ldap | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-37751@lists.php.net to get a copy of this message | ||
here is something from google
http://www.koders.com/php/fid74E4E3B2ACC4C8436DBDE72016503DEB1AC54B47.aspx
http://www.wdvl.com/Authoring/Languages/PHP/Pro/
bastien
From: "it clown" <php5@mailbox.co.za> To: php-db@lists.php.net Subject: [PHP-DB] ldap Date: Sat, 18 Dec 2004 10:41:29 +0200 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 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php