* security.cc (get_group_sidlist): Create group list from /etc files

even if DC is available but access fails.
This commit is contained in:
Corinna Vinschen 2002-07-23 14:34:27 +00:00
parent 15d0d6bd1e
commit fdb93cd2e1
2 changed files with 7 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2002-07-23 Corinna Vinschen <corinna@vinschen.de>
* security.cc (get_group_sidlist): Create group list from /etc files
even if DC is available but access fails.
2002-07-22 Christopher Faylor <cgf@redhat.com>
* fhandler_serial.cc: Fix formatting problems introduced by below

View File

@ -525,10 +525,8 @@ get_group_sidlist (cygsidlist &grp_list,
auth_pos = grp_list.count - 1;
}
extract_nt_dom_user (pw, domain, user);
/* Fail silently if DC is not reachable */
if (get_logon_server (domain, server, wserver) &&
!get_user_groups (wserver, grp_list, user, domain))
return FALSE;
if (get_logon_server (domain, server, wserver))
get_user_groups (wserver, grp_list, user, domain);
get_unix_group_sidlist (pw, grp_list);
if (!get_user_local_groups (grp_list, usersid))
return FALSE;