From 2b5ee3491aa4cdd44c40720d4d4ca2d36d2e16c7 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sat, 21 Apr 2012 10:22:35 +1000 Subject: s3-passdb: Add extra debug on ID mapping failures Signed-off-by: Michael Adam Autobuild-User: Michael Adam Autobuild-Date: Wed May 2 15:34:13 CEST 2012 on sn-devel-104 --- source3/passdb/pdb_interface.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source3/passdb/pdb_interface.c') diff --git a/source3/passdb/pdb_interface.c b/source3/passdb/pdb_interface.c index b7c9bace2a..6945a4210c 100644 --- a/source3/passdb/pdb_interface.c +++ b/source3/passdb/pdb_interface.c @@ -1473,7 +1473,14 @@ static bool pdb_default_sid_to_id(struct pdb_methods *methods, id->type = ID_TYPE_UID; id->id = uid; break; + default: + DEBUG(5, ("SID %s is our domain, but is not mapped to a user or group (got %d)\n", + sid_string_dbg(sid), type)); + ret = false; } + } else { + DEBUG(5, ("SID %s is or domain, but is unmapped\n", + sid_string_dbg(sid))); } goto done; } -- cgit