here is something from google

http://www.koders.com/php/fid74E4E3B2ACC4C8436DBDE72016503DEB1AC54B47.aspx

http://www.wdvl.com/Authoring/Languages/PHP/Pro/



bastien

From: "it clown" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
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


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



Reply via email to