Currently on AIX, sshd does something like this: setauthdb([whatever]); aix_auth_functions(); [ much other stuff ] setpcred(); In some cases, (eg if the password registry is NIS) the setpcred call fails. (This is possibly a bug in the AIX NIS module, this behaviour has been reported on AIX 5.1 ML4 and AIX 5.2 ML2.) sshd should probably restore the previous authdb setting after calling the AIX auth functions.
Also reported as not working: AIX 5.1 ML5 with NIS and AFS password registries.
Created attachment 536 [details] Restore old authdb setting after aix auth calls. Note: the patch will probably only apply to a recent snapshot: ftp://ftp.ca.openbsd.org/pub/OpenBSD/OpenSSH/portable/snapshot/
The patch has been applied, closing. - (dtucker) [openbsd-compat/port-aix.c openbsd-compat/port-aix.h] Bug #796: Restore previous authdb setting after auth calls. Fixes problems with setpcred failing on accounts that use AFS or NIS password registries.
Mass change of RESOLVED bugs to CLOSED