FreeBSD Bugzilla – Attachment 13210 Details for
Bug 25263
openssh and /etc/login.access does not work with IP addr
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.36 KB, created by
Arjan.deVet
on 2001-02-21 21:30:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Arjan.deVet
Created:
2001-02-21 21:30:01 UTC
Size:
1.36 KB
patch
obsolete
>Index: auth1.c >=================================================================== >RCS file: /home/freebsd/CVS/src/crypto/openssh/auth1.c,v >retrieving revision 1.3.2.4 >diff -u -r1.3.2.4 auth1.c >--- auth1.c 2001/01/12 04:25:55 1.3.2.4 >+++ auth1.c 2001/02/21 20:59:04 >@@ -458,7 +458,8 @@ > } > #endif /* HAVE_LOGIN_CAP */ > #ifdef LOGIN_ACCESS >- if (pw != NULL && !login_access(pw->pw_name, from_host)) { >+ if (pw != NULL && !login_access(pw->pw_name, from_host) >+ && !login_access(pw->pw_name, from_ip)) { > log("Denied connection for %.200s from %.200s [%.200s].", > pw->pw_name, from_host, from_ip); > packet_disconnect("Sorry, you are not allowed to connect."); >Index: auth2.c >=================================================================== >RCS file: /home/freebsd/CVS/src/crypto/openssh/auth2.c,v >retrieving revision 1.2.2.4 >diff -u -r1.2.2.4 auth2.c >--- auth2.c 2001/01/12 04:25:55 1.2.2.4 >+++ auth2.c 2001/02/21 20:59:35 >@@ -248,7 +248,8 @@ > #endif /* HAVE_LOGIN_CAP */ > #ifdef LOGIN_ACCESS > if (authctxt->pw != NULL && >- !login_access(authctxt->pw->pw_name, from_host)) { >+ !login_access(authctxt->pw->pw_name, from_host) && >+ !login_access(authctxt->pw->pw_name, from_ip)) { > log("Denied connection for %.200s from %.200s [%.200s].", > authctxt->pw->pw_name, from_host, from_ip); > packet_disconnect("Sorry, you are not allowed to connect.");
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 25263
: 13210