Do you have a question? Post it now! No Registration Necessary. Now with pictures!
April 19, 2005, 2:19 pm
rate this thread
Note: I'm cross-posting the below to nyphp.org as well.
I've been struggling with an issue for a few months. I am attempting to
search Active Directory 2003 via PHP, but am running into an issue
from the base DN (i.e. 'cn=company,cn=com'). This seems to be somewhat
known issue with AD2K3. A search at this level always returns:
Warning: ldap_search() [function.ldap-search]: Search: Partial results
If I change my base DN to 'ou=someOU,dc=company,dc=com', searches work
properly. I was curious to see what would happen at the command line,
used openldap's ldapsearch function against AD and sure enough I got a
of results that were truncated with
ldap_result: Can't contact LDAP server
Of note: I have a base php class that sets the following options
bind is created (seems to be necessary for searching AD2K3 at all):
ldap_set_option($this->_ldap, LDAP_OPT_REFERRALS, 0);
ldap_set_option($this->_ldap, LDAP_OPT_PROTOCOL_VERSION, 3);
Anyone have any feedback about how to search the base dn of AD2K3?