version 1.19, 2001/03/08 18:47:12 |
version 1.20, 2001/03/20 18:57:04 |
|
|
#ifdef KRB4 |
#ifdef KRB4 |
(!options.kerberos_authentication || options.kerberos_or_local_passwd) && |
(!options.kerberos_authentication || options.kerberos_or_local_passwd) && |
#endif |
#endif |
auth_password(pw, "")) { |
auth_password(authctxt, "")) { |
auth_log(authctxt, 1, "without authentication", ""); |
auth_log(authctxt, 1, "without authentication", ""); |
return; |
return; |
} |
} |
|
|
packet_integrity_check(plen, 4 + dlen, type); |
packet_integrity_check(plen, 4 + dlen, type); |
|
|
/* Try authentication with the password. */ |
/* Try authentication with the password. */ |
authenticated = auth_password(pw, password); |
authenticated = auth_password(authctxt, password); |
|
|
memset(password, 0, strlen(password)); |
memset(password, 0, strlen(password)); |
xfree(password); |
xfree(password); |
|
|
log("Unknown message during authentication: type %d", type); |
log("Unknown message during authentication: type %d", type); |
break; |
break; |
} |
} |
|
#ifdef BSD_AUTH |
|
if (authctxt->as) { |
|
auth_close(authctxt->as); |
|
authctxt->as = NULL; |
|
} |
|
#endif |
if (!authctxt->valid && authenticated) |
if (!authctxt->valid && authenticated) |
fatal("INTERNAL ERROR: authenticated invalid user %s", |
fatal("INTERNAL ERROR: authenticated invalid user %s", |
authctxt->user); |
authctxt->user); |