fix pam_smbpass
authorSimo Sorce <idra@samba.org>
Fri, 2 May 2003 17:44:59 +0000 (17:44 +0000)
committerSimo Sorce <idra@samba.org>
Fri, 2 May 2003 17:44:59 +0000 (17:44 +0000)
typos
(This used to be commit 7e28ee1cf8db065f2518b4543f2e54da97cc19e2)

source3/pam_smbpass/pam_smb_passwd.c
source3/pam_smbpass/support.c

index 3d82927e168d4f5f4f83fcb0bf34e80c829b8227..78b89c60b76cb073895e10a04eb219b5705e0399 100644 (file)
@@ -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());
index 32aba7dd5be845bbfb9390b4e6352e107e965a0b..62cc866fae0792fad3d74e8c009d952711d8fe5d 100644 (file)
@@ -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()),