diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-08-25 19:20:28 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-08-26 14:06:07 +0200 |
commit | f81bb8df6747828f101a6a23ceb9bc31c267a4be (patch) | |
tree | af9f376b8889baf69fd1237a3aa7620923bdf0f3 /source4/dsdb/common | |
parent | 607d7c5cdfc6575ac24df7c8996c11c9679abb44 (diff) | |
download | samba-f81bb8df6747828f101a6a23ceb9bc31c267a4be.tar.gz samba-f81bb8df6747828f101a6a23ceb9bc31c267a4be.tar.bz2 samba-f81bb8df6747828f101a6a23ceb9bc31c267a4be.zip |
s4-dsdb Return ACL errors as ldb_errstring()
This string is reported to the caller, which makes debugging much easier.
Andrew Bartlett
Diffstat (limited to 'source4/dsdb/common')
-rw-r--r-- | source4/dsdb/common/dsdb_access.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/dsdb/common/dsdb_access.c b/source4/dsdb/common/dsdb_access.c index 39e67b7793..b8784fc62f 100644 --- a/source4/dsdb/common/dsdb_access.c +++ b/source4/dsdb/common/dsdb_access.c @@ -124,6 +124,9 @@ int dsdb_check_access_on_dn_internal(struct ldb_context *ldb, dn, true, 10); + ldb_asprintf_errstring(ldb, + "dsdb_access: Access check failed on %s", + ldb_dn_get_linearized(dn)); return LDB_ERR_INSUFFICIENT_ACCESS_RIGHTS; } return LDB_SUCCESS; |