summaryrefslogtreecommitdiff
path: root/net/tac_plus4/files/patch-choose_authen.c
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2002-12-08 20:33:48 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2002-12-08 20:33:48 +0000
commit92df255ffd8bc680f966aa2e9c79c33252dad646 (patch)
tree3381d1fcf976813a929ad5c8536219cb8a332d60 /net/tac_plus4/files/patch-choose_authen.c
parent- regression test on panther successfull (diff)
Fix build on -CURRENT by conditionalizing S/Key support and adding OPIE
support. Reported by: bento
Notes
Notes: svn path=/head/; revision=71433
Diffstat (limited to 'net/tac_plus4/files/patch-choose_authen.c')
-rw-r--r--net/tac_plus4/files/patch-choose_authen.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/net/tac_plus4/files/patch-choose_authen.c b/net/tac_plus4/files/patch-choose_authen.c
new file mode 100644
index 000000000000..b3cd95631cb9
--- /dev/null
+++ b/net/tac_plus4/files/patch-choose_authen.c
@@ -0,0 +1,32 @@
+--- choose_authen.c.orig Sun Jun 18 13:26:53 2000
++++ choose_authen.c Sun Dec 8 15:26:08 2002
+@@ -118,10 +118,27 @@
+ #else /* SKEY */
+ report(LOG_ERR,
+ "%s %s: user %s s/key support has not been compiled in",
+- name ? name : "<unknown>",
+- session.peer, session.port);
++ session.peer, session.port,
++ name ? name : "<unknown>");
+ return(CHOOSE_FAILED);
+ #endif /* SKEY */
++ }
++
++ if (cfg_passwd && STREQ(cfg_passwd, "opie")) {
++ if (debug & DEBUG_PASSWD_FLAG)
++ report(LOG_DEBUG, "%s %s: user %s requires opie",
++ session.peer, session.port, name);
++#ifdef OPIE
++ type->authen_func = opie_fn;
++ strcpy(type->authen_name, "opie_fn");
++ return (CHOOSE_OK);
++#else /* OPIE */
++ report(LOG_ERR,
++ "%s %s: user %s opie support has not been compiled in",
++ session.peer, session.port,
++ name ? name : "<unknown>");
++ return(CHOOSE_FAILED);
++#endif /* OPIE */
+ }
+
+ /* Not an skey user. Must be none, des, cleartext or file password */