Add an administrative domain to the passwd/group cache key for

AIX which can have different name <-> ID mappings depending
on whether the database is local, LDAP, etc.
This commit is contained in:
Todd C. Miller
2016-02-01 11:08:58 -07:00
parent 9b19ea440c
commit 6cbba7d665
10 changed files with 147 additions and 50 deletions

View File

@@ -803,7 +803,7 @@ command_info_to_details(char * const info[], struct command_details *details)
details->egid = details->gid;
#ifdef HAVE_SETAUTHDB
aix_setauthdb(IDtouser(details->euid));
aix_setauthdb(IDtouser(details->euid), NULL);
#endif
details->pw = getpwuid(details->euid);
if (details->pw != NULL && (details->pw = pw_dup(details->pw)) == NULL)