[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: search for DN (Filter)
On Tuesday 26 September 2006 12:50, Moire wrote:
[..]
> Am 20.09.2006 um 19:19 schrieb Darko Delinac:
> > Limit the search scope to base (-s base) and as a base use the DN,
> > something like this:
> >
> > ldapsearch -x -h my_ldap_server -b "cn=Michael
> > Voss,ou=Eng,o=Firm,dc=domain,dc=org" -s base
>
> Also Delinac's suggestion would found not just one
> entry if there are some childs ...
You missed the "-s base" option to limit the search scope to just the base
object.
> ldapsearch -x -b "cn=MyGivenname MySurname,ou=Privat,dc=Adressen,dc=afm"
> # extended LDIF
> #
> # LDAPv3
> # base <cn=MyGivenname MySurname,ou=Privat,dc=Adressen,dc=afm> with
> scope sub
> # filter: (objectclass=*)
> # requesting: ALL
> #
>
> # MyGivenname MySurname, Privat, Adressen.afm
> dn: cn=MyGivenname MySurname,ou=Privat,dc=Adressen,dc=afm
> objectClass: top
> objectClass: inetOrgPerson
> objectClass: person
> objectClass: organizationalPerson
> objectClass: pilotPerson
> displayName: MyGivennameMySurname
> givenName: MyGivenname
> ou: Sciences
> personalTitle:: TXIuIA==
> telephoneNumber: +00000000000
> description: et cetera
> sn: MySurname
> cn: MyGivenname MySurname
> labeledURI: http://www.void.org
>
> # test, MyGivenname MySurname, Privat, Adressen.afm
> dn: ou=test,cn=MyGivenname MySurname,ou=Privat,dc=Adressen,dc=afm
> objectClass: top
> objectClass: inetOrgPerson
> objectClass: person
> objectClass: organizationalPerson
> objectClass: pilotPerson
> sn: testchild
> cn: testchild
>
> # search result
> search: 2
> result: 0 Success
>
> # numResponses: 3
> # numEntries: 2
>
>
> Thanks
>
> Moire
--
Ralf