LDAP attribute resolver - search for a specific DN
Peter Schober
peter.schober at univie.ac.at
Mon Sep 23 06:32:57 EDT 2013
* Ivan Novakov <novakoi at fel.cvut.cz> [2013-09-23 11:42]:
> I have a simple and maybe common use case - the LDAP user record
> contains an attribute, whose value is a DN referencing another
> record (for example, group). I would like to retrieve the record in
> a subsequent request (through another LDAP resolver) but I can't
> finda way, how to request for a specific DN. It seems that it is not
> possibleto do it through setting a filter. The usual way to retrieve
> a record by its DN is to set the DN as a base DNwithout any filter.
Are you saying the LDAP DataConnector requires specifying a
FilterTemplate and you don't want to filter anything?
If so try adding a "noop" filter that will always match, like
(objectClass=*).
If the object returned by the first search is not of arbitrary
objectclass specifying the actually expected object class would be
better, of course (e.g. objectClass=groupOfNames).
Not sure how you want to dynamically set baseDN of the DataConnector,
in that case, though?
If your DSA supports the entryDN operational attribute (or the VT LDAP
code exposes that programmaticaly, which it does in later releases,
IIRC) you could also do a search on that instead and use your usual
BaseDN.
-peter
More information about the users
mailing list