[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Entry not listed when requesting all entries with ldapsearch
- To: openldap-technical@openldap.org
- Subject: Entry not listed when requesting all entries with ldapsearch
- From: Yeray Gutiérrez Cedrés <ycedres@gmail.com>
- Date: Tue, 11 Aug 2009 11:22:41 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=6jag1OryEFNuWnJBo35TMXhQ6dx7ZQb1N5eKOIBw9k4=; b=L+FjgLeadC1qudDcsGPkcuzcKSa9qYLWqVM1nKNf26NsabdqpRl6xRU/WuV0Q5ZtkJ wlj5k7lhRLbbFKeSGrrXYRR56mXJb7YYyK+AsmWbsdmRCzOpgezUPFk43kZ6fYosb04G uTK9IxUsfIUsjCVDHS6Ul/t75yUF73rogtIrQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=Bdod7BrWxHKpD4t5BwUTr2BU8t+RMUBfnmhqVCCEQrl0Mt/pbNF6iTp1yHs61QhcVr Pd16FlGgxUHCLlgbJeQkFg7s/GVpDKpHOtRxOA9ZWGBXaXwt/ypm/Z1SPBCuJLH7q37e VLvUfWQgzCPUW9lAEKq/C+l4c68Ht2GSR4ptw=
I've added a new entry with ldapadd like this:
I've got this in a file (myfile.ldif):
dn: mail=someone@example.com,ou=alias,ou=postfix,dc=example,dc=com
cn: Mr Someone
mail: someone@example.com
maildrop: someone@corporative.example.com
sn: Boss
objectClass: CourierMailAlias
objectClass: person
objectClass: top
objectClass: inetOrgPerson
$>ldapadd -D "cn=admin,dc=example,dc=com" -w secret -x -h "localhost"
-f myfile.ldif
I can see it if I search specifically for it with ldapsearch (no
problem with this):
$> ldapsearch -x -b
"mail=someone@example.com,ou=alias,ou=postfix,dc=example,dc=com"
# extended LDIF
#
# LDAPv3
# base <mail=someone@example.com,ou=alias,ou=postfix,dc=example,dc=com>
with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#
# someone@example.com, alias, postfix, someone.com
dn: mail=someone@example.com,ou=alias,ou=postfix,dc=someone,dc=com
cn: Mr Someone
mail: someone@example.com
sn: Boss
objectClass: CourierMailAlias
objectClass: person
objectClass: top
objectClass: inetOrgPerson
maildrop: someone@corporative.example.com
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1
Howerver, when I try to search for this entry with ldapsearch I can't
see it if I list all the entries:
$> ldapsearch -x -b "ou=alias,ou=postfix,dc=example,dc=com" | grep "someone"
$>
I have some other entries that were previously there and they are all
listed. It's very extrange that in the complete list the new etnry
doesn't get listed. Any idea?
Regards.