directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Carlo.Acco...@ibs-ag.com>
Subject Getting fully qualified distinguished name from entry
Date Tue, 05 Feb 2013 19:34:16 GMT
Hi,

I'm searching for an entry that has this format.

uid=123, ou=A, ou=B,o=C

SearchRequest req = new SearchRequestImpl();
                     req.setScope(SearchScope.SUBTREE);
                     req.addAttributes(DEFAULT_ATTRIBUTES);
                     req.setTimeLimit(0);
                     req.setBase("o=C"); // this is the root of tree
                     req.setFilter("(uid=123)");

When I get the entry back,

entry.getDn().getName()  returns  'uid=123'

       List<Rdn> rdns = entry.getDn().getRdns();
The RDNs in the List  rdns are null except for the first value which contains uid=123

I've looked through the api but is there any way to get the entire string 'uid=123, ou=A,
ou=B,o=C' from entry or DN?

Thanks.



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message