diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2015-02-17 21:08:01 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2015-02-17 21:08:01 +0000 |
commit | c6d22dd3b0ef0d779015e7dc11ef7adaf46524de (patch) | |
tree | 72e38d6862b119e351fc26efacd66ad535ad91ae /winsup/cygwin/ldap.h | |
parent | 8d98f956cc398d086794e19051c3380d599022da (diff) | |
download | cygnal-c6d22dd3b0ef0d779015e7dc11ef7adaf46524de.tar.gz cygnal-c6d22dd3b0ef0d779015e7dc11ef7adaf46524de.tar.bz2 cygnal-c6d22dd3b0ef0d779015e7dc11ef7adaf46524de.zip |
* ldap.h (class cyg_ldap): Rename rootdse to def_context. Change
throughout.
* ldap.cc (cyg_ldap::open): Fix debug output.
(cyg_ldap::fetch_ad_account): Rename rdse to base. Restrict LDAP
query to users and groups only.
(cyg_ldap::enumerate_ad_accounts): Rearrange filter expression for
user accounts.
(SYSTEM_CONTAINER): New macro.
(cyg_ldap::fetch_posix_offset_for_domain): Set base in LDAP search
to the "System" container in the default naming context to restrict
the search scope.
(cyg_ldap::fetch_unix_sid_from_ad): Add objectCategory=Person to
search filter for users.
Diffstat (limited to 'winsup/cygwin/ldap.h')
-rw-r--r-- | winsup/cygwin/ldap.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/ldap.h b/winsup/cygwin/ldap.h index 4a85ece20..fb4bebf7d 100644 --- a/winsup/cygwin/ldap.h +++ b/winsup/cygwin/ldap.h @@ -25,7 +25,7 @@ details. */ class cyg_ldap { PLDAP lh; - PWCHAR rootdse; + PWCHAR def_context; PLDAPMessage msg, entry; PWCHAR *val; PWCHAR *attr; @@ -45,8 +45,8 @@ class cyg_ldap { uint32_t get_num_attribute (int idx); public: - cyg_ldap () : lh (NULL), rootdse (NULL), msg (NULL), entry (NULL), val (NULL), - isAD (false), srch_id (NULL), srch_msg (NULL), + cyg_ldap () : lh (NULL), def_context (NULL), msg (NULL), entry (NULL), + val (NULL), isAD (false), srch_id (NULL), srch_msg (NULL), srch_entry (NULL), last_fetched_sid (NO_SID) {} ~cyg_ldap () { close (); } |