dsdb: remove a wrong comment in dsdb_check_access_on_dn_internal()
authorStefan Metzmacher <metze@samba.org>
Thu, 13 Jun 2013 12:16:43 +0000 (14:16 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 13 Jun 2013 16:19:24 +0000 (18:19 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Thu Jun 13 18:19:24 CEST 2013 on sn-devel-104

source4/dsdb/common/dsdb_access.c

index b918220a06344f9f185a704c4288c98f80df9846..5c02daa7d0bc65a2f28dfd17e9f8389a4301811c 100644 (file)
@@ -101,10 +101,7 @@ int dsdb_check_access_on_dn_internal(struct ldb_context *ldb,
        if (ret != LDB_SUCCESS) {
                return ldb_operr(ldb);
        }
-       /* Theoretically we pass the check if the object has no sd */
-       if (!sd) {
-               return LDB_SUCCESS;
-       }
+
        sid = samdb_result_dom_sid(mem_ctx, acl_res->msgs[0], "objectSid");
        if (guid) {
                if (!insert_in_object_tree(mem_ctx, guid, access_mask, NULL,