summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-08-02 09:35:23 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-08-03 18:48:05 +1000
commit2ed17af7f95bb8f5cbb5182352eff57a171c662c (patch)
tree4c978b9230a6acdb860010c78261e422aef723cd /lib
parent8131dd9df3b3ab284b68c2a942f9fa6cc88bd315 (diff)
downloadsamba-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.c9
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,