The branch, master has been updated
       via  327d2be4529722b69e1663858f634a79c5091ed9 (commit)
      from  29f2ca8ff2b0ea5ac4639530d2d10eecff0d5eec (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 327d2be4529722b69e1663858f634a79c5091ed9
Author: Stefan Metzmacher <[EMAIL PROTECTED]>
Date:   Mon Nov 17 10:51:39 2008 +0100

    s4:dsdb/samdb: don't allow objects without objectClass
    
    We're using @ROOTDSE instead of CN=ROOTDSE.
    
    metze

-----------------------------------------------------------------------

Summary of changes:
 source4/dsdb/samdb/ldb_modules/objectclass.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/dsdb/samdb/ldb_modules/objectclass.c 
b/source4/dsdb/samdb/ldb_modules/objectclass.c
index 7d00851..1d240a3 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);


-- 
Samba Shared Repository

Reply via email to