Bugzilla – Attachment 280 Details for
Bug 543
sshd does not use AIX's setauthdb
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Update patch to use record_failed_login (largely untested)
openssh-aixauthdb2.patch (text/plain), 2.31 KB, created by
Darren Tucker
on 2003-05-03 10:33:39 AEST
(
hide
)
Description:
Update patch to use record_failed_login (largely untested)
Filename:
MIME Type:
Creator:
Darren Tucker
Created:
2003-05-03 10:33:39 AEST
Size:
2.31 KB
patch
obsolete
>Index: configure.ac >=================================================================== >RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/configure.ac,v >retrieving revision 1.115 >diff -u -r1.115 configure.ac >--- configure.ac 2 May 2003 10:48:21 -0000 1.115 >+++ configure.ac 3 May 2003 00:36:12 -0000 >@@ -81,6 +81,7 @@ > LIBS="$LIBS -ls" > ]) > ]) >+ AC_CHECK_FUNCS(setauthdb) > AC_DEFINE(BROKEN_GETADDRINFO) > AC_DEFINE(BROKEN_REALPATH) > dnl AIX handles lastlog as part of its login message >Index: session.c >=================================================================== >RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/session.c,v >retrieving revision 1.233 >diff -u -r1.233 session.c >--- session.c 9 Apr 2003 10:59:50 -0000 1.233 >+++ session.c 16 Apr 2003 03:59:04 -0000 >@@ -1212,7 +1212,7 @@ > { > > #ifdef HAVE_SETPCRED >- setpcred(pw->pw_name); >+ setpcred(pw->pw_name, (char **)""); > #endif /* HAVE_SETPCRED */ > #ifdef HAVE_LOGIN_CAP > # ifdef __bsdi__ >Index: openbsd-compat/port-aix.c >=================================================================== >RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/openbsd-compat/port-aix.c,v >retrieving revision 1.7 >diff -u -r1.7 port-aix.c >--- openbsd-compat/port-aix.c 2 May 2003 13:42:25 -0000 1.7 >+++ openbsd-compat/port-aix.c 3 May 2003 00:41:23 -0000 >@@ -64,6 +64,15 @@ > void > record_failed_login(const char *user, const char *ttyname) > { >+#ifdef HAVE_SETAUTHDB >+ char *registry, *oldauthdb; >+ >+ setuserdb(S_READ); >+ if (getuserattr(authctxt->user, S_REGISTRY, ®istry, SEC_CHAR) == 0) >+ setauthdb(registry, oldauthdb); >+ enduserdb(); >+#endif /* HAVE_SETAUTHDB */ >+ > loginfailed(user, > get_canonical_hostname(options.verify_reverse_mapping), ttyname); > } >Index: openbsd-compat/port-aix.h >=================================================================== >RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/openbsd-compat/port-aix.h,v >retrieving revision 1.8 >diff -u -r1.8 port-aix.h >--- openbsd-compat/port-aix.h 2 May 2003 13:42:25 -0000 1.8 >+++ openbsd-compat/port-aix.h 3 May 2003 00:31:51 -0000 >@@ -26,6 +26,10 @@ > > #ifdef _AIX > >+#ifdef WITH_AIXAUTHENTICATE >+# include <usersec.h> >+#endif >+ > /* AIX 4.2.x doesn't have nanosleep but does have nsleep which is equivalent */ > #if !defined(HAVE_NANOSLEEP) && defined(HAVE_NSLEEP) > # define nanosleep(a,b) nsleep(a,b)
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 543
:
269
|
270
|
280
|
356