From dba0005a9d1ff2cf2528533a5557c36936fc8edf Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 25 Jun 2003 00:11:38 +0000 Subject: More instrumentation tracking down this bug... Jeremy. (This used to be commit 705915d9f71504f8ae04444352c80811c5a6f1ac) --- source3/sam/idmap_tdb.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source3/sam') 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 )); -- cgit