diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2014-03-06 00:58:33 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2014-03-06 00:58:33 +0400 |
commit | 5e6b3cafa24a57dd13460acf09705eabef9258df (patch) | |
tree | 06301d9c374040e43d94d6de4d5e5d633c95f0b6 /winsup/cygwin/passwd.cc | |
parent | 512ecab4a8e54ca21e65c69ea71c5c226275e290 (diff) |
* ldap.cc (rediscover_thread): Remove.
(cyg_ldap::open): Remove code to rediscover DC. It just won't do the
right thing.
(cyg_ldap::enumerate_ad_accounts): Change to be self-sufficient (no
explicit open call required). Enumerate on a DC of the domain itself
instead of relying on delegation. Remove ill-advised code trying to
generate rootdse from domain name.
* passwd.cc (pg_ent::enumerate_ad): Drop explicit call to
cyg_ldap::open.
Diffstat (limited to 'winsup/cygwin/passwd.cc')
-rw-r--r-- | winsup/cygwin/passwd.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/winsup/cygwin/passwd.cc b/winsup/cygwin/passwd.cc index d27f424b1..70759086f 100644 --- a/winsup/cygwin/passwd.cc +++ b/winsup/cygwin/passwd.cc @@ -566,8 +566,6 @@ pg_ent::enumerate_ad () if (!resume) { - if (!cldap.open (NULL)) - return NULL; ++resume; if (!nss_db_enum_primary () || !cldap.enumerate_ad_accounts (NULL, group)) |