[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
No such object
HI!
With OpenLDAP 2.0-beta I already noticed that a base search with a
non-existing search root DN returns an empty result list instead of
returning "No such object". This problems is still in OpenLDAP
2.0-gamma.
Unfortunately as a C-illiterate I can't provide sources for testing
it. But it seems that it only happens when using the OpenLDAP 1.2.x
libs on the client side (binding with LDAPv2?).
Using 2.0-gamma client and server (seems to be ok):
--------------------------------------------------------------
michael@junker:~ > /usr/local/openldap2/bin/ldapsearch -v -b
"cn=non-existent,dc=karlsruhe,dc=de" -s base "(objectClass=*)"
ldap_init( <DEFAULT>, <DEFAULT> )
filter: (objectClass=*)
requesting: ALL
version: 2
#
# filter: (objectClass=*)
# requesting: ALL
#
# search result
search: 2
result: 32 No such object
matchedDN: dc=karlsruhe,dc=de
# numResponses: 1
--------------------------------------------------------------
Using 1.2.11 client and server (also seems to be ok):
--------------------------------------------------------------
michael@junker:~ > /usr/bin/ldapsearch -v -b
"cn=non-existent,dc=karlsruhe,dc=de" -s base "(objectClass=*)"
ldap_init( <default>, 0 )
filter pattern: (objectClass=*)
returning: ALL
filter is: ((objectClass=*))
ldap_search: No such object
ldap_search: matched: DC=KARLSRUHE,DC=DE
0 matches
--------------------------------------------------------------
Using OpenLDAP 1.2.11 client and 2.0-gamma server ("No such object"
is missing):
--------------------------------------------------------------
michael@junker:~ > /usr/bin/ldapsearch -v -b
"cn=non-existent,dc=karlsruhe,dc=de" -s base "(objectClass=*)"
ldap_init( <default>, 0 )
filter pattern: (objectClass=*)
returning: ALL
filter is: ((objectClass=*))
0 matches
--------------------------------------------------------------
Ciao, Michael.