diff options
author | Stefan Metzmacher <metze@samba.org> | 2008-11-17 10:51:39 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-11-17 11:37:58 +0100 |
commit | 327d2be4529722b69e1663858f634a79c5091ed9 (patch) | |
tree | a25b3d7a33b524a2855bea315a7f54a81495aab1 /source4 | |
parent | 29f2ca8ff2b0ea5ac4639530d2d10eecff0d5eec (diff) | |
download | samba-327d2be4529722b69e1663858f634a79c5091ed9.tar.gz samba-327d2be4529722b69e1663858f634a79c5091ed9.tar.bz2 samba-327d2be4529722b69e1663858f634a79c5091ed9.zip |
s4:dsdb/samdb: don't allow objects without objectClass
We're using @ROOTDSE instead of CN=ROOTDSE.
metze
Diffstat (limited to 'source4')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/objectclass.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/objectclass.c b/source4/dsdb/samdb/ldb_modules/objectclass.c index 7d00851792..1d240a33fe 100644 --- a/source4/dsdb/samdb/ldb_modules/objectclass.c +++ b/source4/dsdb/samdb/ldb_modules/objectclass.c @@ -414,10 +414,10 @@ static int objectclass_add(struct ldb_module *module, struct ldb_request *req) return ldb_next_request(module, req); } - /* Need to object to this, but cn=rootdse doesn't have an objectClass... */ + /* the objectClass must be specified on add */ if (ldb_msg_find_element(req->op.add.message, "objectClass") == NULL) { - return ldb_next_request(module, req); + return LDB_ERR_OBJECT_CLASS_VIOLATION; } ac = oc_init_context(module, req); |