From 0118f6b41757897dc087f79da53d3fe2f4f42e7e Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 25 Jun 2003 19:01:17 +0000 Subject: Ensure idmap backends are added in the correct order (DLIST_ADD puts things at the *front* of the list). Add more debug. Still broken.. :-(. Jeremy. (This used to be commit dd9251e6f51f229ca1fab23d9b06f5bb68644fab) --- source3/sam/idmap_tdb.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'source3/sam/idmap_tdb.c') diff --git a/source3/sam/idmap_tdb.c b/source3/sam/idmap_tdb.c index f7f9f02003..7fca658792 100644 --- a/source3/sam/idmap_tdb.c +++ b/source3/sam/idmap_tdb.c @@ -173,11 +173,15 @@ static NTSTATUS internal_get_id_from_sid(unid_t *id, int *id_type, const DOM_SID key.dptr = keystr; key.dsize = strlen(keystr) + 1; - DEBUG(10,("internal_get_id_from_sid: fetching record %s\n", keystr )); + DEBUG(10,("internal_get_id_from_sid: fetching record %s of type 0x%x\n", keystr, type )); data = tdb_fetch(idmap_tdb, key); - if (!data.dptr) + if (!data.dptr) { + DEBUG(10,("internal_get_id_from_sid: record %s not found\n", keystr )); return ret; + } else { + DEBUG(10,("internal_get_id_from_sid: record %s -> %s\n", keystr, data.dptr )); + } if (type == ID_EMPTY || type == ID_USERID) { fstring scanstr; -- cgit