Thursday 04 June 2009 1:30:46 am
Try this: ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, 7); // enables ldap verbose debug even before creating the connection $conn = ldap_connect("LDAP_server_IP") or die ("cant connect"); ldap_set_option($ds,LDAP_OPT_PROTOCOL_VERSION,3); $bind = ldap_bind($conn) or die ("not possible"); ldap_set_option($ds, LDAP_OPT_REFERRALS, 0); // "In order to perform the searches on Windows 2003 Server Active Directory you have to set the LDAP_OPT_REFERRALS option to 0" $result=ldap_search($conn, "dc=domain,dc=de", "(&(samaccountname=cronauer))") or die ("Failure during search"); etc ...
Principal Consultant International Business
Member of the Community Project Board
|