search for: from_host

Displaying 4 results from an estimated 4 matches for "from_host".

2022 Nov 05
1
[PATCH] Class-imposed login restrictions
...ure.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_hostname(ssh, options.us...
2000 Feb 27
0
[PATCH] Fix login.conf, expiration, BSD compatibility in OpenSSH
...>= pw->pw_expire) return 0; } +#endif /* !__FreeBSD__ */ /* We found no reason not to let this user try to log on... */ return 1; } @@ -1268,6 +1269,12 @@ struct passwd *pw, pwcopy; int plen, ulen; char *user; +#ifdef LOGIN_CAP + login_cap_t *lc; + char *hosts; + const char *from_host, *from_ip; + int denied; +#endif /* LOGIN_CAP */ /* Get the name of the user that we wish to log in as. */ packet_read_expect(&plen, SSH_CMSG_USER); @@ -1338,6 +1345,38 @@ packet_disconnect("ROOT LOGIN REFUSED FROM %.200s", get_canonical_hostname()); } + +#ifdef LO...
2013 Mar 03
0
Krad Pipe
...ecast / KR streams. Its the simplest minimal program possible at 300 lines~, and there is no dependencies. Its an extraction from Krad Transponder, I pulled this out into a little command line program as I thought it might be immediately useful. https://gist.github.com/oneman/5074107 krad_pipe [from_host] [from_port] [from_mount] [to_host] [to_port] [to_mount] [to_password] *If either side gets disconnected the program exits, so for a continual relay you can wrap in your favorite scripting lauguage:* * * *hammer_time = 10* *while hammer_time* * krad_pipe [args]* * sleep hammer_time* *end* * * *Che...
2013 Mar 03
0
Krad Pipe
...ecast / KR streams. Its the simplest minimal program possible at 300 lines~, and there is no dependencies. Its an extraction from Krad Transponder, I pulled this out into a little command line program as I thought it might be immediately useful. https://gist.github.com/oneman/5074107 krad_pipe [from_host] [from_port] [from_mount] [to_host] [to_port] [to_mount] [to_password] *If either side gets disconnected the program exits, so for a continual relay you can wrap in your favorite scripting lauguage:* * * *hammer_time = 10* *while hammer_time* * krad_pipe [args]* * sleep hammer_time* *end* * * *Che...