[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: How to get the entry with a known dn ?




Frank Matthieß wrote:

> So i search for a specific dn, i search for the invnr insight the base dn
> "ou1=inventar, ou=edv, dc=decor-metall, dc=de" (look at my example of the
> previous send message)

To read a specific entry, do a BASE search rooted at its name with a filter
sure to match.  There is one such filter, namely '(objectclass=*)'.

So do this:

ldapsearch -s base \
	-b 'invnr=08500, ou1=inventar, ou=edv, dc=decor-metall, dc=de' \
	'(objectclass=*)'

Julio