i'm a newbie.
I am writing an application about pki, which needs openldap, when I try to query an entry from ldap server, openLDAP return LDAP_RES_ENTRY or LDAP_RES_RESULT if successful.
I could not understande the difference between them. In my opnion , ENTRY is inferior to RESULT, LDAP should give me a result, and I get one or more entries from this result. I don't know why LDAP have to give me a message not LDAP_RES_RESULT ,but LDAP_RES_ENTRY in some conditions.
btw, I try to complie the source 2.4.11 or 12, the make is successful, but the test script maybe could not start slapd. without doubt, openldap 2.4.11 from debian package works fine, I don't know why?
os: debian lenny 20080902 gtalk:freeespeech@gmail.com
owen nirvana writes:
I am writing an application about pki, which needs openldap, when I try to query an entry from ldap server, openLDAP return LDAP_RES_ENTRY or LDAP_RES_RESULT if successful.
"and", not "or". The server sends each matching entry (if any) in a separate LDAP_RES_SEARCH_ENTRY message over the LDAP protocol. And/or LDAP_RES_SEARCH_REFERENCE messages for references to other servers.
Finally, an LDAP_RES_SEARCH_RESULT message is sent with the result code, a possible error message, etc. These fields are not present in LDAP_RES_SEARCH_ENTRY messages.
owen nirvana writes:
I am writing an application about pki, which needs openldap, when I try to query an entry from ldap server, openLDAP return LDAP_RES_ENTRY or LDAP_RES_RESULT if successful.
I forgot: LDAP_RES_RESULT is sent both for success and failure. Furthermore "success" for a search does not imply it returned any entries. It means there was no error - like the search baseDN did not exist, sizelimit exceeded, etc.
openldap-technical@openldap.org