diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/passdb/passdb.c | 11 | ||||
-rw-r--r-- | source3/passdb/sampassdb.c | 11 |
2 files changed, 12 insertions, 10 deletions
diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c index 3cb083bb76..6579d14351 100644 --- a/source3/passdb/passdb.c +++ b/source3/passdb/passdb.c @@ -276,16 +276,17 @@ struct smb_passwd *pwdb_smb_map_names(struct smb_passwd *smb) static fstring unix_name; static fstring nt_name; - DEBUG(10,("pwdb_smb_map_names: unix %s nt %s unix %d nt%d\n", - smb->unix_name != NULL ? smb->unix_name : "NULL", - smb->nt_name != NULL ? smb->nt_name : "NULL", - smb->unix_uid, smb->user_rid)); - if (smb == NULL) { + DEBUG(10,("pwdb_smb_map_names: NULL\n")); return NULL; } + DEBUG(10,("pwdb_smb_map_names: unix %s nt %s unix %d nt%d\n", + smb->unix_name != NULL ? smb->unix_name : "NULL", + smb->nt_name != NULL ? smb->nt_name : "NULL", + smb->unix_uid, smb->user_rid)); + if (smb->unix_name == NULL && smb->nt_name == NULL && smb->unix_uid == (uid_t)-1 && smb->user_rid == 0xffffffff) { diff --git a/source3/passdb/sampassdb.c b/source3/passdb/sampassdb.c index c784f786c5..3f1587e1ac 100644 --- a/source3/passdb/sampassdb.c +++ b/source3/passdb/sampassdb.c @@ -621,20 +621,21 @@ struct sam_passwd *pwdb_sam_map_names(struct sam_passwd *sam) static fstring unix_name; static fstring nt_name; - DEBUG(10,("pwdb_sam_map_names: unix %s nt %s unix %d nt%d\n", - sam->unix_name != NULL ? sam->unix_name : "NULL", - sam->nt_name != NULL ? sam->nt_name : "NULL", - sam->unix_uid, sam->user_rid)); - /* * name details */ if (sam == NULL) { + DEBUG(10,("pwdb_sam_map_names: NULL\n")); return NULL; } + DEBUG(10,("pwdb_sam_map_names: unix %s nt %s unix %d nt%d\n", + sam->unix_name != NULL ? sam->unix_name : "NULL", + sam->nt_name != NULL ? sam->nt_name : "NULL", + sam->unix_uid, sam->user_rid)); + if (!found && sam->unix_name != NULL) { found = lookupsmbpwnam(sam->unix_name, &gmep); |