From 37dce23afc624dfc2ebae4614ddd17d5e376a901 Mon Sep 17 00:00:00 2001 From: markm Date: Mon, 28 Feb 2000 19:03:50 +0000 Subject: 1) Add kerberos5 functionality. by Daniel Kouril 2) Add full LOGIN_CAP capability by Andrey Chernov --- crypto/openssh/auth-passwd.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'crypto/openssh/auth-passwd.c') diff --git a/crypto/openssh/auth-passwd.c b/crypto/openssh/auth-passwd.c index de0f640..8622dbc 100644 --- a/crypto/openssh/auth-passwd.c +++ b/crypto/openssh/auth-passwd.c @@ -5,6 +5,8 @@ * Created: Sat Mar 18 05:11:38 1995 ylo * Password authentication. This file contains the functions to check whether * the password is valid for the user. + * + * $FreeBSD$ */ #include "includes.h" @@ -41,8 +43,16 @@ auth_password(struct passwd * pw, const char *password) /* Fall back to ordinary passwd authentication. */ } #endif +#ifdef KRB5 + if (options.krb5_authentication == 1) { + if (auth_krb5_password(pw, password)) + return 1; + /* Fall back to ordinary passwd authentication. */ + } + +#endif /* KRB5 */ #ifdef KRB4 - if (options.kerberos_authentication == 1) { + if (options.krb4_authentication == 1) { int ret = auth_krb4_password(pw, password); if (ret == 1 || ret == 0) return ret; -- cgit v1.1