Le 2/5/13 8:34 PM, [email protected] a écrit : > 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?
That's really strange. The Dn.getName() returns the full Dn. Here, it seems that the entry contains only "uid=123" instead of the full DN. That means the Dn is not correctly built. I have to investigate this, it's really surprising... -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com
