summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-06-25 00:11:38 +0000
committerJeremy Allison <jra@samba.org>2003-06-25 00:11:38 +0000
commitdba0005a9d1ff2cf2528533a5557c36936fc8edf (patch)
treee7398ac908cbbc3adcb3235228bbcb9cecc1655f /source3
parentb5e2d8db28e65808bd2e13ae440a2f35a722f56e (diff)
downloadsamba-dba0005a9d1ff2cf2528533a5557c36936fc8edf.tar.gz
samba-dba0005a9d1ff2cf2528533a5557c36936fc8edf.tar.bz2
samba-dba0005a9d1ff2cf2528533a5557c36936fc8edf.zip
More instrumentation tracking down this bug...
Jeremy. (This used to be commit 705915d9f71504f8ae04444352c80811c5a6f1ac)
Diffstat (limited to 'source3')
-rw-r--r--source3/sam/idmap_tdb.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/sam/idmap_tdb.c b/source3/sam/idmap_tdb.c
index 0a793d31b4..8fb9cfd36c 100644
--- a/source3/sam/idmap_tdb.c
+++ b/source3/sam/idmap_tdb.c
@@ -227,6 +227,8 @@ static NTSTATUS db_get_sid_from_id(DOM_SID *sid, unid_t id, int id_type_in)
unid_t id_tmp = id;
int id_type_tmp = id_type;
+ DEBUG(10,("db_get_sid_from_id: id_type_in = 0x%x\n", id_type_in));
+
ret = internal_get_sid_from_id(sid, id, id_type);
if (!NT_STATUS_IS_OK(ret)) {
return ret;
@@ -329,7 +331,7 @@ static NTSTATUS db_set_mapping(const DOM_SID *sid, unid_t id, int id_type)
fstring ksidstr;
fstring kidstr;
- DEBUG(10,("db_set_mapping\n"));
+ DEBUG(10,("db_set_mapping: id_type = 0x%x\n", id_type));
if (!sid)
return NT_STATUS_INVALID_PARAMETER;
@@ -353,6 +355,8 @@ static NTSTATUS db_set_mapping(const DOM_SID *sid, unid_t id, int id_type)
/* *DELETE* prevoius mappings if any.
* This is done both SID and [U|G]ID passed in */
+ DEBUG(10,("db_set_mapping: fetching %s\n", ksid.dptr));
+
data = tdb_fetch(idmap_tdb, ksid);
if (data.dptr) {
DEBUG(10,("db_set_mapping: deleting %s and %s\n", data.dptr, ksid.dptr ));