1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-12 20:58:37 +03:00

fix pam_smbpass

typos
(This used to be commit 7e28ee1cf8db065f2518b4543f2e54da97cc19e2)
This commit is contained in:
Simo Sorce 2003-05-02 17:44:59 +00:00
parent c11e23227c
commit 7474488713
2 changed files with 3 additions and 3 deletions

View File

@ -298,8 +298,8 @@ int pam_sm_chauthtok(pam_handle_t *pamh, int flags,
uid_t uid; uid_t uid;
/* password updated */ /* password updated */
if (NT_STATUS_IS_ERR(sid_to_uid(sampass, &uid))) { 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", _log_err( LOG_NOTICE, "Unable to get uid for user %s",
pdb_get_username(sampass)); pdb_get_username(sampass));
_log_err( LOG_NOTICE, "password for (%s) changed by (%s/%d)", _log_err( LOG_NOTICE, "password for (%s) changed by (%s/%d)",
user, uidtoname(getuid()), getuid()); user, uidtoname(getuid()), getuid());

View File

@ -399,7 +399,7 @@ int _smb_verify_password( pam_handle_t * pamh, SAM_ACCOUNT *sampass,
service ? service : "**unknown**", name); service ? service : "**unknown**", name);
new->count = 1; 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, _log_err(LOG_NOTICE,
"failed auth request by %s for service %s as %s", "failed auth request by %s for service %s as %s",
uidtoname(getuid()), uidtoname(getuid()),