diff options
-rw-r--r-- | source3/lib/util.c | 2 | ||||
-rw-r--r-- | source3/passdb/passdb.c | 5 | ||||
-rw-r--r-- | source3/passdb/sampassdb.c | 5 |
3 files changed, 9 insertions, 3 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c index 9266e988d8..8a9452ee00 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -2498,7 +2498,7 @@ turn a user name into a uid ********************************************************************/ BOOL nametouid(const char *name, uid_t *uid) { - const struct passwd *pass = Get_Pwnam((char *)name, False); + const struct passwd *pass = Get_Pwnam(name, False); if (pass) { *uid = pass->pw_uid; diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c index 39caef2f85..5b1ff38d2c 100644 --- a/source3/passdb/passdb.c +++ b/source3/passdb/passdb.c @@ -266,7 +266,10 @@ 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\n")); + 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) { diff --git a/source3/passdb/sampassdb.c b/source3/passdb/sampassdb.c index 497ea344d1..dbfd2aab80 100644 --- a/source3/passdb/sampassdb.c +++ b/source3/passdb/sampassdb.c @@ -614,7 +614,10 @@ 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\n")); + 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 |