directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Merve Temizer <mervet2...@gmail.com>
Subject Re: Getting Parent Dn
Date Thu, 06 Sep 2012 10:03:29 GMT
Should i do this by processing(cropping) srings, or is there an elegant way?
Maybe is there a way to convert dn string to LdapName ad subtract one from
another?

2012/9/6 Kiran Ayyagari <kayyagari@apache.org>

> just strip the RDN from the DN of the each entry received in the
> search results, that will be the
> corresponding entry parent's DN
>
> On Thu, Sep 6, 2012 at 3:04 PM, Merve Temizer <mervet2009@gmail.com>
> wrote:
> > Hi,
> > I use JNDI and i have some search result entries and i can get their dn s
> > like
> >
> > NamingEnumeration answer = ctx.search(searchBaseDn, filter, ctls);
> >       try
> >     {
> >        while (answer.hasMore())
> >        {
> >     SearchResult sr = (SearchResult) answer.next();
> >     OrganizationPojo organizationPojo = new OrganizationPojo();
> >     organizationPojo.setDn((String)sr.getName());
> > ...
> >
> > How can i get parent entry/dn ?
>
>
>
> --
> Kiran Ayyagari
> http://keydap.com
>

Mime
View raw message