diff options
author | Simo Sorce <idra@samba.org> | 2003-05-02 17:44:59 +0000 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2003-05-02 17:44:59 +0000 |
commit | 7474488713843d59a7ddd3fca51a924f1a482393 (patch) | |
tree | 9b50d0c63ce4c9339f3b75db8548f49a4ec108d6 | |
parent | c11e23227c36007a65f1b7b81f280f21c4fba421 (diff) | |
download | samba-7474488713843d59a7ddd3fca51a924f1a482393.tar.gz samba-7474488713843d59a7ddd3fca51a924f1a482393.tar.xz samba-7474488713843d59a7ddd3fca51a924f1a482393.zip |
fix pam_smbpass
typos
(This used to be commit 7e28ee1cf8db065f2518b4543f2e54da97cc19e2)
-rw-r--r-- | source3/pam_smbpass/pam_smb_passwd.c | 4 | ||||
-rw-r--r-- | source3/pam_smbpass/support.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source3/pam_smbpass/pam_smb_passwd.c b/source3/pam_smbpass/pam_smb_passwd.c index 3d82927e168..78b89c60b76 100644 --- a/source3/pam_smbpass/pam_smb_passwd.c +++ b/source3/pam_smbpass/pam_smb_passwd.c @@ -298,8 +298,8 @@ int pam_sm_chauthtok(pam_handle_t *pamh, int flags, uid_t uid; /* password updated */ - if (NT_STATUS_IS_ERR(sid_to_uid(sampass, &uid))) { - _log_err( LOG_NOTICE "Unable to get uid for user %s", + if (NT_STATUS_IS_ERR(sid_to_uid(pdb_get_user_sid(sampass), &uid))) { + _log_err( LOG_NOTICE, "Unable to get uid for user %s", pdb_get_username(sampass)); _log_err( LOG_NOTICE, "password for (%s) changed by (%s/%d)", user, uidtoname(getuid()), getuid()); diff --git a/source3/pam_smbpass/support.c b/source3/pam_smbpass/support.c index 32aba7dd5be..62cc866fae0 100644 --- a/source3/pam_smbpass/support.c +++ b/source3/pam_smbpass/support.c @@ -399,7 +399,7 @@ int _smb_verify_password( pam_handle_t * pamh, SAM_ACCOUNT *sampass, service ? service : "**unknown**", name); new->count = 1; } - if (NT_STATUS_IS_ERR(sid_to_uid(pdb_get_user_sid(sampass, &(new->id), &type)))) { + if (NT_STATUS_IS_ERR(sid_to_uid(pdb_get_user_sid(sampass), &(new->id)))) { _log_err(LOG_NOTICE, "failed auth request by %s for service %s as %s", uidtoname(getuid()), |