summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-11-30 23:00:19 +0100
committerMichael Adam <obnox@samba.org>2008-12-01 04:37:23 +0100
commitaf6f1b4085d82e44277b2505875f667065586eb6 (patch)
tree9253dbfe5a3667d43c628301b62e0e9cf615b63f
parent09d05bcffe9553d28876daed86ea0761f2506997 (diff)
downloadsamba-af6f1b4085d82e44277b2505875f667065586eb6.tar.gz
samba-af6f1b4085d82e44277b2505875f667065586eb6.tar.bz2
samba-af6f1b4085d82e44277b2505875f667065586eb6.zip
s3:winbindd_cache: add debugging to get_nss_info_cached()
Michael
-rw-r--r--source3/winbindd/winbindd_cache.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c
index 360e915bc4..2f4a6ffe56 100644
--- a/source3/winbindd/winbindd_cache.c
+++ b/source3/winbindd/winbindd_cache.c
@@ -4222,7 +4222,14 @@ do_query:
nt_status = nss_get_info( domain->name, user_sid, ctx, ads, msg,
homedir, shell, gecos, p_gid );
+ DEBUG(10, ("nss_get_info returned %s\n", nt_errstr(nt_status)));
+
if ( NT_STATUS_IS_OK(nt_status) ) {
+ DEBUG(10, ("result:\n\thomedir = '%s'\n", *homedir));
+ DEBUGADD(10, ("\tshell = '%s'\n", *shell));
+ DEBUGADD(10, ("\tgecos = '%s'\n", *gecos));
+ DEBUGADD(10, ("\tgid = '%u'\n", *p_gid));
+
wcache_save_user_pwinfo( domain, nt_status, user_sid,
*homedir, *shell, *gecos, *p_gid );
}