directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Karasulu <aok...@bellsouth.net>
Subject Re: Attributes and DN question
Date Fri, 12 May 2006 15:14:02 GMT
Emmanuel Lecharny wrote:
> Hi all,
>
> I'm trying to figure out if code like :
>
> ...
>            Attributes entry = ( Attributes ) i.next();
>            if ( entry.get( "dn" ) == null )
>            {
>                throw new ConfigurationException( "Test entries must 
> have DN attributes" );
>            }
> ...
>
> makes sense or not.
>
> In my mind, Attributes should not containes "dn", because "dn" is 
> already stored elswhere. Am I wrong ? wdyt ?

Depends on what created the "entry".  The old LDIF parser will return 
the dn as an attribute which needs to be removed.  This is the ONLY 
Place where DN is an attribute in the entry.

Alex

Mime
View raw message