Bugzilla – Attachment 269 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]
Add calls to AIX's setuserdb(), setauthdb() in auth.c
setauthdb_diff (text/plain), 1.85 KB, created by
Kevin Cawlfield
on 2003-04-16 07:26:27 AEST
(
hide
)
Description:
Add calls to AIX's setuserdb(), setauthdb() in auth.c
Filename:
MIME Type:
Creator:
Kevin Cawlfield
Created:
2003-04-16 07:26:27 AEST
Size:
1.85 KB
patch
obsolete
>*** ../new/openssh-3.6p1/auth.c Fri Jan 17 23:24:06 2003 >--- auth.c Tue Apr 15 16:21:24 2003 >*************** >*** 52,57 **** >--- 52,61 ---- > #include "bufaux.h" > #include "packet.h" > >+ #ifdef WITH_AIXAUTHENTICATE >+ #include <usersec.h> >+ #endif >+ > /* import */ > extern ServerOptions options; > >*************** >*** 245,252 **** > auth_log(Authctxt *authctxt, int authenticated, char *method, char *info) > { > void (*authlog) (const char *fmt,...) = verbose; >! char *authmsg; > > /* Raise logging level */ > if (authenticated == 1 || > !authctxt->valid || >--- 249,260 ---- > auth_log(Authctxt *authctxt, int authenticated, char *method, char *info) > { > void (*authlog) (const char *fmt,...) = verbose; >! char *authmsg; > >+ #ifdef WITH_AIXAUTHENTICATE >+ char *tmp, registry[16], oldauthdb[16]; >+ #endif >+ > /* Raise logging level */ > if (authenticated == 1 || > !authctxt->valid || >*************** >*** 269,278 **** > info); > > #ifdef WITH_AIXAUTHENTICATE >! if (authenticated == 0 && strcmp(method, "password") == 0) >! loginfailed(authctxt->user, >! get_canonical_hostname(options.verify_reverse_mapping), >! "ssh"); > #endif /* WITH_AIXAUTHENTICATE */ > > } >--- 277,297 ---- > info); > > #ifdef WITH_AIXAUTHENTICATE >! >! if (authenticated == 0 && strcmp(method, "password") == 0){ >! setuserdb(S_READ); >! if(getuserattr(authctxt->user, S_REGISTRY, &tmp, SEC_CHAR)) >! tmp="files"; >! >! strncpy(registry, tmp, 16); >! registry[15]='\0'; >! setauthdb(registry, oldauthdb); >! >! loginfailed(authctxt->user, get_canonical_hostname(options.verify_reverse_mapping), "ssh"); >! >! enduserdb(); >! } >! > #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