By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,082 Members | 2,135 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,082 IT Pros & Developers. It's quick & easy.

Access Active Directory (of WINDOWS SERVER 2003) via LDAP

P: n/a
Hi,

I want to read user information from the microsoft windows 2003 server.

In the windows server 2003, i've create a domain, called "wissenskolleg".
I've assigned a password to it.

Now, i want get access to the Active Directory with PHP.

My code:
$ds=ldap_connect("wissenkolleg.com");
$r=ldap_bind($ds,"administrator","psword");

Always I've get the following error message: warning: ldap_bind(): For
Unable ton bind tons of servers
I've found out, that $ds always return: Resource id #2
If i changed "wissenkolleg.com" in "whyitis", it is all the same, i've can
only read: Resource id #2 and the same error with ldap_bind.
I hope you can understand the problem. Any useful hint is welcome.

Feb 28 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi,

Try checking out http://adldap.sourceforge.net

Its the class that i used to connect to Active Directory. It handles
authentications as well as lots of other things.

I can post some code later if that doesn't help you. There are some
examples in the downloads section of that site as well.

Andy
Frank F wrote:
Hi,

I want to read user information from the microsoft windows 2003 server.

In the windows server 2003, i've create a domain, called "wissenskolleg".
I've assigned a password to it.

Now, i want get access to the Active Directory with PHP.

My code:
$ds=ldap_connect("wissenkolleg.com");
$r=ldap_bind($ds,"administrator","psword");

Always I've get the following error message: warning: ldap_bind(): For
Unable ton bind tons of servers
I've found out, that $ds always return: Resource id #2
If i changed "wissenkolleg.com" in "whyitis", it is all the same, i've can
only read: Resource id #2 and the same error with ldap_bind.
I hope you can understand the problem. Any useful hint is welcome.


Mar 1 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.