[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: SLAPD question regarding parent DNs



JR Heisey writes:
> cn=Joe Smith,cn=Recipients,ou=Engineering,o="MediaGate, Inc." (...)
> 
> The server function dn_parent() (in dn.c) parses the DN to
> determine the parent DN is calculated to be
> 
> cn=Recipients,ou=Engineering,o="MediaGate, Inc."

That's the correct answer.

> Should cn=Recipients be consider part of the parent or
> should the parent actually be
> 
> ou=Engineering,o="MediaGate, Inc."

No.  dn_parent() strips one RDN off the DN.  I assume you are thinking
of "cn" vs. "ou", but the attribute types of the DN components are
irrelevant in this regard.

-- 
Hallvard