mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
s4:dsdb/samdb: don't allow objects without objectClass
We're using @ROOTDSE instead of CN=ROOTDSE. metze
This commit is contained in:
parent
29f2ca8ff2
commit
327d2be452
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user