robb(a)wtg.cw.com wrote:
Full_Name: Robert Brooks
Version: 2.3.31
OS: Linux
URL:
ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (62.49.19.14)
an ldapsearch like this works
ldapsearch -x -b "dc=sql,dc=example,dc=org" "cn=Robert Brooks" cn
dn: uid=robb(a)example.org,dc=sql,dc=example,dc=org
cn: Robert Brooks
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1
however this does not:
ldapsearch -x -b "dc=sql,dc=example,dc=org" "cn=Robert Brooks" dn cn
# search result
search: 2
result: 65 Object class violation
# numResponses:
This is working just fine in HEAD/re23 (using the built-in test data):
bash-3.00$ ../clients/tools/ldapsearch -x -H ldap://:9011 -b
dc=example,dc=com -LLL cn=*mit* cn dn
# refldap://localhost:9012/dc=example,dc=com??sub
dn: cn=Mitya Kovalev,dc=example,dc=com
cn: Mitya Kovalev
That's why I suspect it's related to some issue (or inconsistency)
within your data/metadata. Could you post more?
p.
Ing. Pierangelo Masarati
OpenLDAP Core Team
SysNet s.n.c.
Via Dossi, 8 - 27100 Pavia - ITALIA
http://www.sys-net.it
------------------------------------------
Office: +39.02.23998309
Mobile: +39.333.4963172
Email: pierangelo.masarati(a)sys-net.it
------------------------------------------