- (djm) Fix Tru64 SIA problems reported by John P Speno <speno@isc.upenn.edu>

This commit is contained in:
Damien Miller 2000-07-01 12:56:09 +10:00
parent b8c656e744
commit d8cfda6bf6
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,6 @@
20000701
- (djm) Fix Tru64 SIA problems reported by John P Speno <speno@isc.upenn.edu>
20000628 20000628
- (djm) Fixes to lastlog code for Irix - (djm) Fixes to lastlog code for Irix
- (djm) Use atomicio in loginrec - (djm) Use atomicio in loginrec

View File

@ -310,7 +310,6 @@ do_authloop(struct passwd * pw)
authenticated = auth_pam_password(pw, password); authenticated = auth_pam_password(pw, password);
#elif defined(HAVE_OSF_SIA) #elif defined(HAVE_OSF_SIA)
/* Do SIA auth with password */ /* Do SIA auth with password */
host = get_canonical_hostname();
if (sia_validate_user(NULL, saved_argc, saved_argv, if (sia_validate_user(NULL, saved_argc, saved_argv,
get_canonical_hostname(), pw->pw_name, NULL, 0, get_canonical_hostname(), pw->pw_name, NULL, 0,
NULL, password) == SIASUCCESS) { NULL, password) == SIASUCCESS) {
@ -505,7 +504,11 @@ do_authentication()
#endif /* KRB4 */ #endif /* KRB4 */
#ifdef USE_PAM #ifdef USE_PAM
auth_pam_password(pw, "")) { auth_pam_password(pw, "")) {
#else /* USE_PAM */ #elif defined(HAVE_OSF_SIA)
(sia_validate_user(NULL, saved_argc, saved_argv,
get_canonical_hostname(), pw->pw_name, NULL, 0, NULL,
"") == SIASUCCESS)) {
#else /* !HAVE_OSF_SIA && !USE_PAM */
auth_password(pw, "")) { auth_password(pw, "")) {
#endif /* USE_PAM */ #endif /* USE_PAM */
/* Authentication with empty password succeeded. */ /* Authentication with empty password succeeded. */