1 May 2012 12:48
Re: Feature request: virtual servers
Darren Tucker <dtucker <at> zip.com.au>
2012-05-01 10:48:52 GMT
2012-05-01 10:48:52 GMT
On Thu, Apr 26, 2012 at 08:34:32AM +0200, Philipp Marek wrote: > Could you put that in OpenSSH, so that -portable and the distributions can > pick that up sometime? We're looking at it. In the mean time, here's an updated patch that: - fixes a problem with the "Match Port" code - fixes the regress tests and adds a couple more - some minor cleanups - applies to openssh-6.0p1 Index: auth.c =================================================================== RCS file: /usr/local/src/security/openssh/cvs/openssh/auth.c,v retrieving revision 1.149 diff -u -p -r1.149 auth.c --- auth.c 29 May 2011 11:40:42 -0000 1.149 +++ auth.c 1 May 2012 10:36:24 -0000 <at> <at> -544,9 +544,14 <at> <at> getpwnamallow(const char *user) #endif #endif struct passwd *pw; + ConnectionInfo connection_info; - parse_server_match_config(&options, user, - get_canonical_hostname(options.use_dns), get_remote_ipaddr()); + connection_info.user = user; + connection_info.host = get_canonical_hostname(options.use_dns); + connection_info.address = get_remote_ipaddr();(Continue reading)
RSS Feed