summaryrefslogtreecommitdiff
path: root/auth-passwd.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth-passwd.c')
-rw-r--r--auth-passwd.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/auth-passwd.c b/auth-passwd.c
index b893165bf..9a94c373f 100644
--- a/auth-passwd.c
+++ b/auth-passwd.c
@@ -144,22 +144,24 @@ auth_password(Authctxt *authctxt, const char *password)
144 HANDLE hToken = cygwin_logon_user(pw, password); 144 HANDLE hToken = cygwin_logon_user(pw, password);
145 145
146 if (hToken == INVALID_HANDLE_VALUE) 146 if (hToken == INVALID_HANDLE_VALUE)
147 return 0; 147 return (0);
148 cygwin_set_impersonation_token(hToken); 148 cygwin_set_impersonation_token(hToken);
149 return 1; 149 return (1);
150 } 150 }
151# endif 151# endif
152# ifdef WITH_AIXAUTHENTICATE 152# ifdef WITH_AIXAUTHENTICATE
153 authsuccess = (authenticate(pw->pw_name,password,&reenter,&authmsg) == 0); 153 authsuccess = (authenticate(pw->pw_name,password,&reenter,&authmsg) == 0);
154 154
155 if (authsuccess) 155 if (authsuccess) {
156 /* We don't have a pty yet, so just label the line as "ssh" */ 156 /* We don't have a pty yet, so just label the line as "ssh" */
157 if (loginsuccess(authctxt->user, 157 if (loginsuccess(authctxt->user,
158 get_canonical_hostname(options.verify_reverse_mapping), 158 get_canonical_hostname(options.use_dns),
159 "ssh", &aixloginmsg) < 0) 159 "ssh", &aixloginmsg) < 0) {
160 aixloginmsg = NULL; 160 aixloginmsg = NULL;
161 }
162 }
161 163
162 return(authsuccess); 164 return (authsuccess);
163# endif 165# endif
164# ifdef KRB4 166# ifdef KRB4
165 if (options.kerberos_authentication == 1) { 167 if (options.kerberos_authentication == 1) {