From f1781adb051bb5a166d619ed9db6bdb252b1acb5 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 13 Jun 2013 14:16:43 +0200 Subject: [PATCH] dsdb: remove a wrong comment in dsdb_check_access_on_dn_internal() Signed-off-by: Stefan Metzmacher Autobuild-User(master): Stefan Metzmacher Autobuild-Date(master): Thu Jun 13 18:19:24 CEST 2013 on sn-devel-104 --- source4/dsdb/common/dsdb_access.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/source4/dsdb/common/dsdb_access.c b/source4/dsdb/common/dsdb_access.c index b918220a063..5c02daa7d0b 100644 --- a/source4/dsdb/common/dsdb_access.c +++ b/source4/dsdb/common/dsdb_access.c @@ -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, -- 2.11.4.GIT