i have found the solution of this problem:
it is not good to use anonymous binding when using ldap_search.
when i use the same code with username and passw, it works fine..
regards,
berni
Search found 2 matches
- Wed Jun 15, 2005 12:44 pm
- Forum: General Discussion
- Topic: ldap_search_s sometimes fails; operations error...
- Replies: 1
- Views: 821
- Tue Jun 14, 2005 1:48 pm
- Forum: General Discussion
- Topic: ldap_search_s sometimes fails; operations error...
- Replies: 1
- Views: 821
ldap_search_s sometimes fails; operations error...
Hi,
I have a question relating to ldap_search_s.
Before I call the ldap_search_s function, I do following steps:
1. ldap_initialize(&pldap, hostname);
2. ldap_set_option(….);
3. ldap_bind_s(pldap, NULL, NULL, LDAP_AUTH_SIMPLE);
Then I call the function:
ldap_search_s(pldap,base,LDAP_SCOPE ...
I have a question relating to ldap_search_s.
Before I call the ldap_search_s function, I do following steps:
1. ldap_initialize(&pldap, hostname);
2. ldap_set_option(….);
3. ldap_bind_s(pldap, NULL, NULL, LDAP_AUTH_SIMPLE);
Then I call the function:
ldap_search_s(pldap,base,LDAP_SCOPE ...