The unified diff between revisions [fb7080ca..] and [295b1131..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'svr-authpam.c'
#
#
# patch "svr-authpam.c"
# from [f2afec7b54253236f53a65cd79e302f28a14945c]
# to [7317b23f5900a7be17f5fbc8221550092663e1f7]
#
============================================================
--- svr-authpam.c f2afec7b54253236f53a65cd79e302f28a14945c
+++ svr-authpam.c 7317b23f5900a7be17f5fbc8221550092663e1f7
@@ -195,7 +195,7 @@ void svr_auth_pam() {
/* used to pass data to the PAM conversation function - don't bother with
* strdup() etc since these are touched only by our own conversation
* function (above) which takes care of it */
- userData.user = ses.authstate.printableuser;
+ userData.user = ses.authstate.pw_name;
userData.passwd = password;
/* Init pam */
@@ -221,7 +221,7 @@ void svr_auth_pam() {
rc, pam_strerror(pamHandlep, rc));
dropbear_log(LOG_WARNING,
"bad PAM password attempt for '%s' from %s",
- ses.authstate.printableuser,
+ ses.authstate.pw_name,
svr_ses.addrstring);
send_msg_userauth_failure(0, 1);
goto cleanup;
@@ -232,7 +232,7 @@ void svr_auth_pam() {
rc, pam_strerror(pamHandlep, rc));
dropbear_log(LOG_WARNING,
"bad PAM password attempt for '%s' from %s",
- ses.authstate.printableuser,
+ ses.authstate.pw_name,
svr_ses.addrstring);
send_msg_userauth_failure(0, 1);
goto cleanup;
@@ -240,7 +240,7 @@ void svr_auth_pam() {
/* successful authentication */
dropbear_log(LOG_NOTICE, "PAM password auth succeeded for '%s' from %s",
- ses.authstate.printableuser,
+ ses.authstate.pw_name,
svr_ses.addrstring);
send_msg_userauth_success();