* cygheap.h (class cygheap_domain_info): Remove lowest_tdo_posix_offset.
* ldap.cc (cyg_ldap::fetch_posix_offset_for_domain): Return UINT32_MAX in case of error. * security.h (PRIMARY_POSIX_OFFSET): Define. (NOACCESS_POSIX_OFFSET): Define. (UNUSABLE_POSIX_OFFSET): Define. * uinfo.cc (cygheap_domain_info::init): Drop initializing lowest_tdo_posix_offset. (pwdgrp::fetch_account_from_file): Set PosixOffset to either UNUSABLE_POSIX_OFFSET or NOACCESS_POSIX_OFFSET in case we don't get a sensible offset from AD. Explain why. Drop setting ch lowest_tdo_posix_offset. (pwdgrp::fetch_account_from_windows): Replace constant 0x100000 with PRIMARY_POSIX_OFFSET throughout.
This commit is contained in:
@@ -371,8 +371,6 @@ class cygheap_domain_info
|
||||
PWCHAR rfc2307_domain_buf;
|
||||
|
||||
public:
|
||||
ULONG lowest_tdo_posix_offset;
|
||||
|
||||
bool init ();
|
||||
|
||||
inline PCWSTR primary_flat_name () const { return pdom_name; }
|
||||
|
Reference in New Issue
Block a user