* 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.
This commit is contained in:
Corinna Vinschen
2014-03-05 20:58:33 +00:00
parent 512ecab4a8
commit 5e6b3cafa2
3 changed files with 18 additions and 72 deletions

View File

@@ -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))