summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-10-02 20:00:08 +1000
committerAndrew Tridgell <tridge@samba.org>2009-10-02 20:00:08 +1000
commit48e5e215c93e1834bdacaa5a0f6dfde7788a0472 (patch)
tree3d10b2e4c60a8d6cd574d6faece5ca1e07b31cfb /source4/dsdb/samdb/ldb_modules
parent860dad260508067ee970d7a55303f5d1fa15d6e9 (diff)
downloadsamba-48e5e215c93e1834bdacaa5a0f6dfde7788a0472.tar.gz
samba-48e5e215c93e1834bdacaa5a0f6dfde7788a0472.tar.bz2
samba-48e5e215c93e1834bdacaa5a0f6dfde7788a0472.zip
s4-samdb: added some debugging
This helped track down the samba3sam.py failures
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules')
-rw-r--r--source4/dsdb/samdb/ldb_modules/samldb.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/samldb.c b/source4/dsdb/samdb/ldb_modules/samldb.c
index e59b5dd1ce..2d87a017fd 100644
--- a/source4/dsdb/samdb/ldb_modules/samldb.c
+++ b/source4/dsdb/samdb/ldb_modules/samldb.c
@@ -699,8 +699,14 @@ static int samldb_check_primaryGroupID_1(struct samldb_ctx *ac)
static int samldb_check_primaryGroupID_2(struct samldb_ctx *ac)
{
- if (ac->res_dn == NULL)
+ if (ac->res_dn == NULL) {
+ struct ldb_context *ldb;
+ ldb = ldb_module_get_ctx(ac->module);
+ ldb_asprintf_errstring(ldb,
+ "Failed to find group sid %s",
+ dom_sid_string(ac->sid, ac->sid));
return LDB_ERR_UNWILLING_TO_PERFORM;
+ }
return samldb_next_step(ac);
}
@@ -1866,7 +1872,7 @@ static int samldb_add(struct ldb_module *module, struct ldb_request *req)
int ret;
ldb = ldb_module_get_ctx(module);
- ldb_debug(ldb, LDB_DEBUG_TRACE, "samldb_add_record\n");
+ ldb_debug(ldb, LDB_DEBUG_TRACE, "samldb_add\n");
/* do not manipulate our control entries */
if (ldb_dn_is_special(req->op.add.message->dn)) {