components/openssh/patches/015-pam_conversation_fix.patch
changeset 6931 f6f7269f85a9
parent 6930 31ef2580c45d
equal deleted inserted replaced
6930:31ef2580c45d 6931:f6f7269f85a9
    59 @@ -1225,6 +1242,15 @@
    59 @@ -1225,6 +1242,15 @@
    60  	    options.permit_root_login != PERMIT_YES))
    60  	    options.permit_root_login != PERMIT_YES))
    61  		sshpam_password = fake = fake_password(password);
    61  		sshpam_password = fake = fake_password(password);
    62  
    62  
    63 +#ifdef PAM_BUGFIX
    63 +#ifdef PAM_BUGFIX
    64 +        sshpam_err = pam_set_item(sshpam_handle, PAM_AUTHTOK, password);
    64 +        sshpam_err = pam_set_item(sshpam_handle, PAM_AUTHTOK, sshpam_password);
    65 +        if (sshpam_err != PAM_SUCCESS) {
    65 +        if (sshpam_err != PAM_SUCCESS) {
    66 +                debug("PAM: %s: failed to set PAM_AUTHTOK: %s", __func__,
    66 +                debug("PAM: %s: failed to set PAM_AUTHTOK: %s", __func__,
    67 +                    pam_strerror(sshpam_handle, sshpam_err));
    67 +                    pam_strerror(sshpam_handle, sshpam_err));
    68 +                return 0;
    68 +                return 0;
    69 +        }
    69 +        }