Author: ekohl
Date: Sun Jan 1 14:10:02 2017
New Revision: 73495
URL:
http://svn.reactos.org/svn/reactos?rev=73495&view=rev
Log:
[LSASRV]
Return proper status codes, indicating no available AD, for most trusted domain functions.
Modified:
trunk/reactos/dll/win32/lsasrv/lsarpc.c
Modified: trunk/reactos/dll/win32/lsasrv/lsarpc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/lsasrv/lsarpc.c?…
==============================================================================
--- trunk/reactos/dll/win32/lsasrv/lsarpc.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/lsasrv/lsarpc.c [iso-8859-1] Sun Jan 1 14:10:02 2017
@@ -1089,8 +1089,8 @@
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 @@
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 @@
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 @@
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 @@
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 @@
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 @@
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 @@
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 @@
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 @@
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 @@
ACCESS_MASK DesiredAccess,
LSAPR_HANDLE *TrustedDomainHandle)
{
- UNIMPLEMENTED;
- return STATUS_NOT_IMPLEMENTED;
+ /* FIXME: We are not running an AD yet */
+ return STATUS_DIRECTORY_SERVICE_REQUIRED;
}