ldap

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux