- Regenerate patches to make portlint happy - Other minor changes to Makefile for portlint happiness - Updates the description to reflect a bit more the current state: - The original FTP site from Cisco isn't reachable anymore, nor is 2.x in the ports tree these days. - Update/add the URL, though the one from Cisco still works, but this is the version from Shrubbery Networks. (there are others around) - Add a pkg-message PR: 204683 Submitted by: Mathieu Simon <freebsd@simweb.ch>
34 lines
1.1 KiB
C
34 lines
1.1 KiB
C
--- choose_authen.c.orig 2012-04-16 21:42:55 UTC
|
|
+++ choose_authen.c
|
|
@@ -130,12 +130,29 @@ choose_login(struct authen_data *data, s
|
|
#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 */
|
|
+ }
|
|
+
|
|
/* Does this user require aceclnt */
|
|
cfg_passwd = cfg_get_login_secret(name, TAC_PLUS_RECURSE);
|
|
if (cfg_passwd && STREQ(cfg_passwd, "aceclnt")) {
|