diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | auth.c | 8 |
2 files changed, 13 insertions, 0 deletions
@@ -1,3 +1,8 @@ | |||
1 | 20100307 | ||
2 | - (dtucker) [auth.c] Bug #1710: call setauthdb on AIX before getpwuid so that | ||
3 | it gets the passwd struct from the LAM that knows about the user which is | ||
4 | not necessarily the default. Patch from Alexandre Letourneau. | ||
5 | |||
1 | 20100305 | 6 | 20100305 |
2 | - OpenBSD CVS Sync | 7 | - OpenBSD CVS Sync |
3 | - jmc@cvs.openbsd.org 2010/03/04 12:51:25 | 8 | - jmc@cvs.openbsd.org 2010/03/04 12:51:25 |
@@ -535,7 +535,15 @@ getpwnamallow(const char *user) | |||
535 | parse_server_match_config(&options, user, | 535 | parse_server_match_config(&options, user, |
536 | get_canonical_hostname(options.use_dns), get_remote_ipaddr()); | 536 | get_canonical_hostname(options.use_dns), get_remote_ipaddr()); |
537 | 537 | ||
538 | #if defined(_AIX) && defined(HAVE_SETAUTHDB) | ||
539 | aix_setauthdb(user); | ||
540 | #endif | ||
541 | |||
538 | pw = getpwnam(user); | 542 | pw = getpwnam(user); |
543 | |||
544 | #if defined(_AIX) && defined(HAVE_SETAUTHDB) | ||
545 | aix_restoreauthdb(); | ||
546 | #endif | ||
539 | #ifdef HAVE_CYGWIN | 547 | #ifdef HAVE_CYGWIN |
540 | /* | 548 | /* |
541 | * Windows usernames are case-insensitive. To avoid later problems | 549 | * Windows usernames are case-insensitive. To avoid later problems |