Bugzilla – Attachment 270 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]
Untested patch containing discussed changes.
openssh-aixauthdb.patch (text/plain), 985 bytes, created by
Darren Tucker
on 2003-04-16 14:28:52 AEST
(
hide
)
Description:
Untested patch containing discussed changes.
Filename:
MIME Type:
Creator:
Darren Tucker
Created:
2003-04-16 14:28:52 AEST
Size:
985 bytes
patch
obsolete
>Index: auth.c >=================================================================== >RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/auth.c,v >retrieving revision 1.69 >diff -u -r1.69 auth.c >--- auth.c 9 Apr 2003 11:12:00 -0000 1.69 >+++ auth.c 16 Apr 2003 04:32:59 -0000 >@@ -269,10 +269,21 @@ > info); > > #ifdef WITH_AIXAUTHENTICATE >- if (authenticated == 0 && strcmp(method, "password") == 0) >- loginfailed(authctxt->user, >- get_canonical_hostname(options.verify_reverse_mapping), >- "ssh"); >+ if (authenticated == 0 && strcmp(method, "password") == 0){ >+#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(authctxt->user, >+ get_canonical_hostname(options.verify_reverse_mapping), >+ "ssh"); >+ } > #endif /* WITH_AIXAUTHENTICATE */ > > }
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