Stu wrote: > Can somebody please explain why my scenario's below dont work and > work. The > only difference is how I am binding. > > Note I am using Iplanet SDK from 12/04 on Windows. > > > Does NOT work > ============= > > ldap_init(host, port) SUCCESS > > ldap_simple_bind_s(ld,"CN=rndtest,OU=Generic User > IDS,DC=ctronsoft,DC=com", "Pas > sword" ) SUCCESS > > jsmith DN = "cn=jsmith, cn=users,dc=ctronsoft,dc=com" > ldap_search_s( ld, "DC=ctronsoft,DC=com", LDAP_SCOPE_SUBTREE, > "(sAMAccountName=jsmith)", "memberOf", 0, &res ) > > FAILURE Error 91 "Not connected" > > > WORKS > ====== > > ldap_init(host, port) SUCCESS > > ldap_simple_bind_s(ld, "rndtest", "Password" ) SUCCESS > > jsmith DN = "cn=jsmith, cn=users,dc=ctronsoft,dc=com" > ldap_search_s( ld, "DC=ctronsoft,DC=com", LDAP_SCOPE_SUBTREE, > "(sAMAccountName=jsmith)", "memberOf", 0, &res ) > > SUCCESS >
I have no idea. Check the access and error logs of your directory server. _______________________________________________ dev-tech-ldap mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-ldap
