diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-08-02 09:35:23 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-08-03 18:48:05 +1000 |
commit | 2ed17af7f95bb8f5cbb5182352eff57a171c662c (patch) | |
tree | 4c978b9230a6acdb860010c78261e422aef723cd /lib | |
parent | 8131dd9df3b3ab284b68c2a942f9fa6cc88bd315 (diff) | |
download | samba-2ed17af7f95bb8f5cbb5182352eff57a171c662c.tar.gz samba-2ed17af7f95bb8f5cbb5182352eff57a171c662c.tar.bz2 samba-2ed17af7f95bb8f5cbb5182352eff57a171c662c.zip |
ldb-samba: Explain the current behaviour of ldif_canonicalise_objectCategory
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ldb-samba/ldif_handlers.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/ldb-samba/ldif_handlers.c b/lib/ldb-samba/ldif_handlers.c index bb5232a8f5..ca6fa74b00 100644 --- a/lib/ldb-samba/ldif_handlers.c +++ b/lib/ldb-samba/ldif_handlers.c @@ -449,8 +449,13 @@ static int ldif_write_sddlSecurityDescriptor(struct ldb_context *ldb, void *mem_ } /* - canonicalise an objectCategory. We use the short form as the canonical form: - cn=Person,cn=Schema,cn=Configuration,<basedn> becomes 'person' + canonicalise an objectCategory. We use the long form as the canonical form: + 'person' becomes cn=Person,cn=Schema,cn=Configuration,<basedn> + + Also any short name of an objectClass that points to a different + class (such as user) has the canonical form of the class it's + defaultObjectCategory points to (eg + cn=Person,cn=Schema,cn=Configuration,<basedn>) */ static int ldif_canonicalise_objectCategory(struct ldb_context *ldb, void *mem_ctx, |