You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
if i do an ldapsearch agains ldaptor which requests just one (or some) attributes ldaptor seems to always return the complete ldif of the found object. Using the same seach against openldap only the "dn" and the requested attributes are returned.
You should be able to reproduce with the following steps:
Try ldapsearch which requests only specific attribute(s) with ldaptor:
run ldaptest.py
on second console run ldapsearch command that requests only "uid" attribute: ldapsearch -H ldap://localhost:8080 -b "dc=de" -w afdg -x uid
the ldif returned from ldapsearch contains all object attributes!
Try ldapsearch which requests only specific attribute(s) with openldap:
copy slapd.conf to /etc/openldap (or whatever directory your distribution uses)
import ldap tree from ldaptor: ldapsearch -H ldap://localhost:8080 -b "dc=de" -w afdg -x | slapadd -l /dev/stdin
start slapd (e.g. /etc/init.d/slapd start)
run ldapsearch command that requests only "uid" attribute: ldapsearch -H ldap://localhost -b "dc=de" -D 'cn=manager,dc=example,dc=de' -w root -x uid
the ldif returned from ldapsearch contains only "dn" and "uid" attributes
Hi,
if i do an ldapsearch agains ldaptor which requests just one (or some) attributes ldaptor seems to always return the complete ldif of the found object. Using the same seach against openldap only the "dn" and the requested attributes are returned.
You should be able to reproduce with the following steps:
Try ldapsearch which requests only specific attribute(s) with ldaptor:
Try ldapsearch which requests only specific attribute(s) with openldap:
ldaptor.py: https://bpaste.net/show/3f5174d8ec15
slapd.conf: https://bpaste.net/show/c334ec415850
reference: http://twistedmatrix.com/pipermail/twisted-python/2015-May/029447.html
The text was updated successfully, but these errors were encountered: