diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2014-05-22 14:50:24 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2014-05-22 14:50:24 +0000 |
commit | 03e3cf9846bece4a38aa587d6864412235b8045b (patch) | |
tree | 5e0887fa92a501387b22ed9b5dc42ae83d3c18a5 /winsup/cygwin/ldap.h | |
parent | ece6c8e3835be50c0d4807d6a4ab95135070e714 (diff) | |
download | cygnal-03e3cf9846bece4a38aa587d6864412235b8045b.tar.gz cygnal-03e3cf9846bece4a38aa587d6864412235b8045b.tar.bz2 cygnal-03e3cf9846bece4a38aa587d6864412235b8045b.zip |
* ldap.cc (cyg_ldap::fetch_ad_account): Take additional domain string
parameter. Convert into likely rootDSE string if not NULL, and use in
subsequent call to ldap_search_stW. Add comment to explain that this
is not the exactly correct solution.
* ldap.h (cyg_ldap::fetch_ad_account): Change prototype accordingly.
* uinfo.cc (pwdgrp::fetch_account_from_windows): Always use loc_ldap
in call to fetch_posix_offset to make sure we're fetchoinmg the posix
offsets from *our* domain controller. Only set domain variable to
non-NULL if the account is from a trusted domain. Use domain in call
to cyg_ldap::fetch_ad_account.
Diffstat (limited to 'winsup/cygwin/ldap.h')
-rw-r--r-- | winsup/cygwin/ldap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/ldap.h b/winsup/cygwin/ldap.h index 9d8a40346..a2bf0bde8 100644 --- a/winsup/cygwin/ldap.h +++ b/winsup/cygwin/ldap.h @@ -51,7 +51,7 @@ public: operator PLDAP () const { return lh; } bool open (PCWSTR in_domain); void close (); - bool fetch_ad_account (PSID sid, bool group); + bool fetch_ad_account (PSID sid, bool group, PCWSTR domain = NULL); bool enumerate_ad_accounts (PCWSTR domain, bool group); bool next_account (cygsid &sid); uint32_t fetch_posix_offset_for_domain (PCWSTR domain); |