Return proper status codes, indicating no available AD, for most trusted domain functions. 

svn path=/trunk/; revision=73495
This commit is contained in:
Eric Kohl 2017-01-01 14:10:02 +00:00
parent 7cec4c47db
commit 754b0a7362

View file

@ -1089,8 +1089,8 @@ NTSTATUS WINAPI LsarCreateTrustedDomain(
ACCESS_MASK DesiredAccess,
LSAPR_HANDLE *TrustedDomainHandle)
{
UNIMPLEMENTED;
return STATUS_NOT_IMPLEMENTED;
/* FIXME: We are not running an AD yet */
return STATUS_DIRECTORY_SERVICE_REQUIRED;
}
@ -1101,8 +1101,10 @@ NTSTATUS WINAPI LsarEnumerateTrustedDomains(
PLSAPR_TRUSTED_ENUM_BUFFER EnumerationBuffer,
DWORD PreferedMaximumLength)
{
UNIMPLEMENTED;
return STATUS_NOT_IMPLEMENTED;
/* FIXME: We are not running an AD yet */
EnumerationBuffer->EntriesRead = 0;
EnumerationBuffer->Information = NULL;
return STATUS_NO_MORE_ENTRIES;
}
@ -3277,8 +3279,8 @@ NTSTATUS WINAPI LsarQueryTrustedDomainInfo(
TRUSTED_INFORMATION_CLASS InformationClass,
PLSAPR_TRUSTED_DOMAIN_INFO *TrustedDomainInformation)
{
UNIMPLEMENTED;
return STATUS_NOT_IMPLEMENTED;
/* FIXME: We are not running an AD yet */
return STATUS_DIRECTORY_SERVICE_REQUIRED;
}
@ -3289,8 +3291,8 @@ NTSTATUS WINAPI LsarSetTrustedDomainInfo(
TRUSTED_INFORMATION_CLASS InformationClass,
PLSAPR_TRUSTED_DOMAIN_INFO TrustedDomainInformation)
{
UNIMPLEMENTED;
return STATUS_NOT_IMPLEMENTED;
/* FIXME: We are not running an AD yet */
return STATUS_DIRECTORY_SERVICE_REQUIRED;
}
@ -3299,8 +3301,8 @@ NTSTATUS WINAPI LsarDeleteTrustedDomain(
LSAPR_HANDLE PolicyHandle,
PRPC_SID TrustedDomainSid)
{
UNIMPLEMENTED;
return STATUS_NOT_IMPLEMENTED;
/* FIXME: We are not running an AD yet */
return STATUS_DIRECTORY_SERVICE_REQUIRED;
}
@ -3617,8 +3619,8 @@ NTSTATUS WINAPI LsarQueryTrustedDomainInfoByName(
POLICY_INFORMATION_CLASS InformationClass,
PLSAPR_TRUSTED_DOMAIN_INFO *PolicyInformation)
{
UNIMPLEMENTED;
return STATUS_NOT_IMPLEMENTED;
/* FIXME: We are not running an AD yet */
return STATUS_OBJECT_NAME_NOT_FOUND;
}
@ -3629,8 +3631,8 @@ NTSTATUS WINAPI LsarSetTrustedDomainInfoByName(
POLICY_INFORMATION_CLASS InformationClass,
PLSAPR_TRUSTED_DOMAIN_INFO PolicyInformation)
{
UNIMPLEMENTED;
return STATUS_NOT_IMPLEMENTED;
/* FIXME: We are not running an AD yet */
return STATUS_OBJECT_NAME_NOT_FOUND;
}
@ -3641,8 +3643,10 @@ NTSTATUS WINAPI LsarEnumerateTrustedDomainsEx(
PLSAPR_TRUSTED_ENUM_BUFFER_EX EnumerationBuffer,
DWORD PreferedMaximumLength)
{
UNIMPLEMENTED;
return STATUS_NOT_IMPLEMENTED;
/* FIXME: We are not running an AD yet */
EnumerationBuffer->EntriesRead = 0;
EnumerationBuffer->EnumerationBuffer = NULL;
return STATUS_NO_MORE_ENTRIES;
}
@ -3654,8 +3658,8 @@ NTSTATUS WINAPI LsarCreateTrustedDomainEx(
ACCESS_MASK DesiredAccess,
LSAPR_HANDLE *TrustedDomainHandle)
{
UNIMPLEMENTED;
return STATUS_NOT_IMPLEMENTED;
/* FIXME: We are not running an AD yet */
return STATUS_DIRECTORY_SERVICE_REQUIRED;
}
@ -3697,8 +3701,8 @@ NTSTATUS WINAPI LsarOpenTrustedDomainByName(
ACCESS_MASK DesiredAccess,
LSAPR_HANDLE *TrustedDomainHandle)
{
UNIMPLEMENTED;
return STATUS_NOT_IMPLEMENTED;
/* FIXME: We are not running an AD yet */
return STATUS_OBJECT_NAME_NOT_FOUND;
}
@ -3819,8 +3823,8 @@ NTSTATUS WINAPI LsarCreateTrustedDomainEx2(
ACCESS_MASK DesiredAccess,
LSAPR_HANDLE *TrustedDomainHandle)
{
UNIMPLEMENTED;
return STATUS_NOT_IMPLEMENTED;
/* FIXME: We are not running an AD yet */
return STATUS_DIRECTORY_SERVICE_REQUIRED;
}