On Fri, Sep 4, 2015 at 8:05 PM, Maxim Solodovnik <[email protected]>
wrote:

> Here is the use case
> I read memberOf attributes of user (MS AD version), interpret it as String,
> and then need to parse it as Dn. Currently I can't use FastDnParser.parse
> and need to "re-invent the weel".
>
you can just create a DN using new Dn(dnStr)
and that internally parses it.

The only downside of the above method is that the DN is not schema aware

>
> Maybe I misuse the API?
>
> On Fri, Sep 4, 2015 at 5:29 PM, Kiran Ayyagari <[email protected]>
> wrote:
>
> > On Fri, Sep 4, 2015 at 7:14 PM, Maxim Solodovnik <[email protected]>
> > wrote:
> >
> > > Hello,
> > >
> > > Is it possible to parse DN as string using directory API? I found
> couple
> > of
> > >
> > hmm, can you elaborate on what you are trying to do
> >
> > > methods but they private or package protected :(
> > >
> > sure we can do that based on the usecase
> >
> >
> > > Thanks in advance
> > >
> > > PS using 1.0.0-M31
> > >
> > > --
> > > WBR
> > > Maxim aka solomax
> > >
> >
> >
> >
> > --
> > Kiran Ayyagari
> > http://keydap.com
> >
>
>
>
> --
> WBR
> Maxim aka solomax
>



-- 
Kiran Ayyagari
http://keydap.com

Reply via email to