summaryrefslogtreecommitdiffstats
path: root/crypto/openssh/auth-passwd.c
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2000-02-28 19:03:50 +0000
committermarkm <markm@FreeBSD.org>2000-02-28 19:03:50 +0000
commit37dce23afc624dfc2ebae4614ddd17d5e376a901 (patch)
tree08c26b6a05650dd5c73e020a82c50440e973043e /crypto/openssh/auth-passwd.c
parent39a8b7149f0ab399cdd6a6d5f254c70ba2cf6fa6 (diff)
downloadFreeBSD-src-37dce23afc624dfc2ebae4614ddd17d5e376a901.zip
FreeBSD-src-37dce23afc624dfc2ebae4614ddd17d5e376a901.tar.gz
1) Add kerberos5 functionality.
by Daniel Kouril <kouril@informatics.muni.cz> 2) Add full LOGIN_CAP capability by Andrey Chernov
Diffstat (limited to 'crypto/openssh/auth-passwd.c')
-rw-r--r--crypto/openssh/auth-passwd.c12
1 files changed, 11 insertions, 1 deletions
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;
OpenPOWER on IntegriCloud