summaryrefslogtreecommitdiff
path: root/auth1.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth1.c')
-rw-r--r--auth1.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/auth1.c b/auth1.c
index 0d440e521..8f2c5a804 100644
--- a/auth1.c
+++ b/auth1.c
@@ -310,7 +310,6 @@ do_authloop(struct passwd * pw)
310 authenticated = auth_pam_password(pw, password); 310 authenticated = auth_pam_password(pw, password);
311#elif defined(HAVE_OSF_SIA) 311#elif defined(HAVE_OSF_SIA)
312 /* Do SIA auth with password */ 312 /* Do SIA auth with password */
313 host = get_canonical_hostname();
314 if (sia_validate_user(NULL, saved_argc, saved_argv, 313 if (sia_validate_user(NULL, saved_argc, saved_argv,
315 get_canonical_hostname(), pw->pw_name, NULL, 0, 314 get_canonical_hostname(), pw->pw_name, NULL, 0,
316 NULL, password) == SIASUCCESS) { 315 NULL, password) == SIASUCCESS) {
@@ -505,7 +504,11 @@ do_authentication()
505#endif /* KRB4 */ 504#endif /* KRB4 */
506#ifdef USE_PAM 505#ifdef USE_PAM
507 auth_pam_password(pw, "")) { 506 auth_pam_password(pw, "")) {
508#else /* USE_PAM */ 507#elif defined(HAVE_OSF_SIA)
508 (sia_validate_user(NULL, saved_argc, saved_argv,
509 get_canonical_hostname(), pw->pw_name, NULL, 0, NULL,
510 "") == SIASUCCESS)) {
511#else /* !HAVE_OSF_SIA && !USE_PAM */
509 auth_password(pw, "")) { 512 auth_password(pw, "")) {
510#endif /* USE_PAM */ 513#endif /* USE_PAM */
511 /* Authentication with empty password succeeded. */ 514 /* Authentication with empty password succeeded. */