On 4/5/07 6:34, "Webb, Andy" <[EMAIL PROTECTED]> wrote:

> So, couldn't you just always request in the search that the DN or CN be
> returned as one of the attributes?  If the entry is found, you're going
> to get the DN of the entry as the record identifier, then getting the DN
> (or CN) again as an attribute becomes just a throwaway, but solves the
> problem of producing or consuming bad LDIF.

The DN isn't an attribute of an entry that you can request. Kurt's drafted a
schema extension which provides the DN in a special entryDN attribute - see
draft-zeilenga-ldap-entrydn-02.txt. Of course not all servers support that
draft yet.

I think though that it is probably reasonable to put your patch in as is, as
it is useful to be able to handle slightly non-conformant LDIF files.

Cheers,

Chris


Reply via email to