search for: have_auth_hostok

Displaying 1 result from an estimated 1 matches for "have_auth_hostok".

2022 Nov 05
1
[PATCH] Class-imposed login restrictions
...| 18 ++++++++++++++++++ configure.ac | 2 ++ 2 files changed, 20 insertions(+) diff --git a/auth.c b/auth.c index 13e8d7998..da0af66d4 100644 --- a/auth.c +++ b/auth.c @@ -465,6 +465,9 @@ getpwnamallow(struct ssh *ssh, const char *user) { #ifdef HAVE_LOGIN_CAP extern login_cap_t *lc; +#ifdef HAVE_AUTH_HOSTOK + const char *from_host, *from_ip; +#endif #ifdef BSD_AUTH auth_session_t *as; #endif @@ -510,6 +513,21 @@ getpwnamallow(struct ssh *ssh, const char *user) debug("unable to get login class: %s", user); return (NULL); } +#ifdef HAVE_AUTH_HOSTOK + from_host = auth_get_canonical_...