mirror of
https://github.com/samba-team/samba.git
synced 2025-08-05 12:22:11 +03:00
added debug reporting to pwdb_sam_map_names() and pwdb_smb_map_names()
(This used to be commit baab308152
)
This commit is contained in:
@ -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;
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user