summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-07-07 18:44:58 +0000
committerLuke Leighton <lkcl@samba.org>1999-07-07 18:44:58 +0000
commit264459d25a65eceb3b87debf4b448a9af625287d (patch)
tree993f9b4a82f8cdb2d813b114b97cc39d9b9d80d3
parent527820d30646f3954155a509752e2b08c96b1448 (diff)
downloadsamba-264459d25a65eceb3b87debf4b448a9af625287d.tar.gz
samba-264459d25a65eceb3b87debf4b448a9af625287d.tar.bz2
samba-264459d25a65eceb3b87debf4b448a9af625287d.zip
added debug reporting to pwdb_sam_map_names() and pwdb_smb_map_names()
(This used to be commit baab30815238a803badeafa1ed8f029d7782242f)
-rw-r--r--source3/lib/util.c2
-rw-r--r--source3/passdb/passdb.c5
-rw-r--r--source3/passdb/sampassdb.c5
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