* ldap.cc (rediscover_thread): Give argument a useful name.
* miscfuncs.cc (NT_readline::init): It's a really bad idea trying to print a pointer to a PUNICODE_STRING as PUNICODE_STRING. Fix it. * uinfo.cc (cygheap_domain_info::init): Print status codes as hex values in debug output.
This commit is contained in:
parent
7fa5cbbfcd
commit
f8efc42f66
@ -1,3 +1,11 @@
|
|||||||
|
2014-02-11 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* ldap.cc (rediscover_thread): Give argument a useful name.
|
||||||
|
* miscfuncs.cc (NT_readline::init): It's a really bad idea trying to
|
||||||
|
print a pointer to a PUNICODE_STRING as PUNICODE_STRING. Fix it.
|
||||||
|
* uinfo.cc (cygheap_domain_info::init): Print status codes as hex
|
||||||
|
values in debug output.
|
||||||
|
|
||||||
2014-02-11 Corinna Vinschen <corinna@vinschen.de>
|
2014-02-11 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* autoload.cc (NetLocalGroupGetInfo): Replace NetGroupGetInfo.
|
* autoload.cc (NetLocalGroupGetInfo): Replace NetGroupGetInfo.
|
||||||
|
@ -73,15 +73,15 @@ PWCHAR rfc2307_gid_attr[] =
|
|||||||
};
|
};
|
||||||
|
|
||||||
DWORD WINAPI
|
DWORD WINAPI
|
||||||
rediscover_thread (LPVOID dummy)
|
rediscover_thread (LPVOID domain)
|
||||||
{
|
{
|
||||||
PDOMAIN_CONTROLLER_INFOW pdci;
|
PDOMAIN_CONTROLLER_INFOW pdci;
|
||||||
DWORD ret = DsGetDcNameW (NULL, (PWCHAR) dummy, NULL, NULL,
|
DWORD ret = DsGetDcNameW (NULL, (PWCHAR) domain, NULL, NULL,
|
||||||
DS_FORCE_REDISCOVERY | DS_ONLY_LDAP_NEEDED, &pdci);
|
DS_FORCE_REDISCOVERY | DS_ONLY_LDAP_NEEDED, &pdci);
|
||||||
if (ret == ERROR_SUCCESS)
|
if (ret == ERROR_SUCCESS)
|
||||||
NetApiBufferFree (pdci);
|
NetApiBufferFree (pdci);
|
||||||
else
|
else
|
||||||
debug_printf ("DsGetDcNameW(%W) failed with error %u", dummy, ret);
|
debug_printf ("DsGetDcNameW(%W) failed with error %u", domain, ret);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -397,7 +397,7 @@ NT_readline::init (POBJECT_ATTRIBUTES attr, PCHAR in_buf, ULONG in_buflen)
|
|||||||
if (!NT_SUCCESS (status))
|
if (!NT_SUCCESS (status))
|
||||||
{
|
{
|
||||||
paranoid_printf ("NtOpenFile(%S) failed, status %y",
|
paranoid_printf ("NtOpenFile(%S) failed, status %y",
|
||||||
&attr->ObjectName, status);
|
attr->ObjectName, status);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
buf = in_buf;
|
buf = in_buf;
|
||||||
|
@ -726,7 +726,7 @@ cygheap_domain_info::init ()
|
|||||||
(PVOID *) &pdom);
|
(PVOID *) &pdom);
|
||||||
if (status != STATUS_SUCCESS)
|
if (status != STATUS_SUCCESS)
|
||||||
{
|
{
|
||||||
system_printf ("LsaQueryInformationPolicy(Primary) %u", status);
|
system_printf ("LsaQueryInformationPolicy(Primary) %y", status);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
/* Copy primary domain info to cygheap. */
|
/* Copy primary domain info to cygheap. */
|
||||||
@ -740,7 +740,7 @@ cygheap_domain_info::init ()
|
|||||||
(PVOID *) &adom);
|
(PVOID *) &adom);
|
||||||
if (status != STATUS_SUCCESS)
|
if (status != STATUS_SUCCESS)
|
||||||
{
|
{
|
||||||
system_printf ("LsaQueryInformationPolicy(Account) %u", status);
|
system_printf ("LsaQueryInformationPolicy(Account) %y", status);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
/* Copy account domain info to cygheap. If we're running on a DC the account
|
/* Copy account domain info to cygheap. If we're running on a DC the account
|
||||||
|
Loading…
x
Reference in New Issue
Block a user