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.