summaryrefslogtreecommitdiff
path: root/source3/pam_smbpass/pam_smb_passwd.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-04-30 13:56:02 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-04-30 13:56:02 +0000
commitd1607e1cdbf9386f5e6084eda4edd974006fc19f (patch)
treec1e5dadcc20679a3fb9d5f9a236936860628c527 /source3/pam_smbpass/pam_smb_passwd.c
parent09391fc57d39223e404b54684149dafa86d3d482 (diff)
downloadsamba-d1607e1cdbf9386f5e6084eda4edd974006fc19f.tar.gz
samba-d1607e1cdbf9386f5e6084eda4edd974006fc19f.tar.bz2
samba-d1607e1cdbf9386f5e6084eda4edd974006fc19f.zip
Get pam_smbpass to compile again (it probably won't link or run, but at least
it compiles and lets the build farm get on it's way) (This used to be commit 7498d69d9d69f70a4c7511b5032d7d5d2b9c846f)
Diffstat (limited to 'source3/pam_smbpass/pam_smb_passwd.c')
-rw-r--r--source3/pam_smbpass/pam_smb_passwd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/pam_smbpass/pam_smb_passwd.c b/source3/pam_smbpass/pam_smb_passwd.c
index 8fbef1fbf7..1d022af16c 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 (!sid_to_uid(sampass, &uid)) {
- _log_err( LOG_NOTICE "Unable to get uid for user %s",
+ if (!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());