Bug 796

Summary: sshd should restore previous authdb setting
Product: Portable OpenSSH Reporter: Darren Tucker <dtucker>
Component: sshdAssignee: OpenSSH Bugzilla mailing list <openssh-bugs>
Status: CLOSED FIXED    
Severity: normal    
Priority: P2    
Version: -current   
Hardware: PPC   
OS: AIX   
Bug Depends on:    
Bug Blocks: 793    
Attachments:
Description Flags
Restore old authdb setting after aix auth calls. none

Description Darren Tucker 2004-01-25 17:53:11 AEDT
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.
Comment 1 Darren Tucker 2004-01-27 17:20:14 AEDT
Also reported as not working: AIX 5.1 ML5 with NIS and AFS password registries. 
Comment 2 Darren Tucker 2004-01-27 18:35:27 AEDT
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/
Comment 3 Darren Tucker 2004-02-06 16:19:33 AEDT
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.
Comment 4 Damien Miller 2004-04-14 12:24:20 AEST
Mass change of RESOLVED bugs to CLOSED