summaryrefslogtreecommitdiff
path: root/source3/sam/idmap_tdb.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-06-25 19:01:17 +0000
committerJeremy Allison <jra@samba.org>2003-06-25 19:01:17 +0000
commit0118f6b41757897dc087f79da53d3fe2f4f42e7e (patch)
treed8461e275fe5c70e222f4f2cd8936cadd562cf6a /source3/sam/idmap_tdb.c
parent72876b79c9b3f0ab3cda6de42d5c8995aadd687e (diff)
downloadsamba-0118f6b41757897dc087f79da53d3fe2f4f42e7e.tar.gz
samba-0118f6b41757897dc087f79da53d3fe2f4f42e7e.tar.bz2
samba-0118f6b41757897dc087f79da53d3fe2f4f42e7e.zip
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)
Diffstat (limited to 'source3/sam/idmap_tdb.c')
-rw-r--r--source3/sam/idmap_tdb.c8
1 files changed, 6 insertions, 2 deletions
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;