diff options
author | Andrew Bartlett <abartlet@samba.org> | 2013-05-13 14:06:14 +1200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2013-05-16 19:02:04 +0200 |
commit | 9b24f6523e8c78879ada3e6d2927ebbb21dabfdc (patch) | |
tree | 0e612b7c7d6cb677e18d9ccb4208f4db44ddb90d /source4/dsdb/samdb/ldb_modules | |
parent | 60d1c2d5288b01bd9a99f90bb0a9d0ff3c873412 (diff) | |
download | samba-9b24f6523e8c78879ada3e6d2927ebbb21dabfdc.tar.gz samba-9b24f6523e8c78879ada3e6d2927ebbb21dabfdc.tar.bz2 samba-9b24f6523e8c78879ada3e6d2927ebbb21dabfdc.zip |
dsdb: Expand on what the error finding the ntSecurityDescriptor was in acl_read
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/acl_read.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/acl_read.c b/source4/dsdb/samdb/ldb_modules/acl_read.c index 07b1bc4e5e..f15633f28f 100644 --- a/source4/dsdb/samdb/ldb_modules/acl_read.c +++ b/source4/dsdb/samdb/ldb_modules/acl_read.c @@ -92,9 +92,15 @@ static int aclread_callback(struct ldb_request *req, struct ldb_reply *ares) case LDB_REPLY_ENTRY: msg = ares->message; ret = dsdb_get_sd_from_ldb_message(ldb, tmp_ctx, msg, &sd); - if (ret != LDB_SUCCESS || sd == NULL ) { + if (ret != LDB_SUCCESS) { + ldb_debug_set(ldb, LDB_DEBUG_FATAL, + "acl_read: cannot get descriptor of %s: %s\n", + ldb_dn_get_linearized(msg->dn), ldb_strerror(ret)); + ret = LDB_ERR_OPERATIONS_ERROR; + goto fail; + } else if (sd == NULL) { ldb_debug_set(ldb, LDB_DEBUG_FATAL, - "acl_read: cannot get descriptor of %s\n", + "acl_read: cannot get descriptor of %s (attribute not found)\n", ldb_dn_get_linearized(msg->dn)); ret = LDB_ERR_OPERATIONS_ERROR; goto fail; |