mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 02:25:17 +00:00
[MSV1_0] Implement LsaApCallPackageUntrusted()
An untrusted client is only allowed to change passwords
This commit is contained in:
parent
95dd1c6705
commit
ba43d1e839
1 changed files with 25 additions and 2 deletions
|
@ -1014,7 +1014,7 @@ LsaApCallPackagePassthrough(IN PLSA_CLIENT_REQUEST ClientRequest,
|
|||
|
||||
|
||||
/*
|
||||
* @unimplemented
|
||||
* @implemented
|
||||
*/
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
|
@ -1026,8 +1026,31 @@ LsaApCallPackageUntrusted(IN PLSA_CLIENT_REQUEST ClientRequest,
|
|||
OUT PULONG ReturnBufferLength,
|
||||
OUT PNTSTATUS ProtocolStatus)
|
||||
{
|
||||
ULONG MessageType;
|
||||
NTSTATUS Status;
|
||||
|
||||
TRACE("LsaApCallPackageUntrusted()\n");
|
||||
return STATUS_NOT_IMPLEMENTED;
|
||||
|
||||
if (SubmitBufferLength < sizeof(MSV1_0_PROTOCOL_MESSAGE_TYPE))
|
||||
return STATUS_INVALID_PARAMETER;
|
||||
|
||||
MessageType = (ULONG)*((PMSV1_0_PROTOCOL_MESSAGE_TYPE)ProtocolSubmitBuffer);
|
||||
|
||||
*ProtocolReturnBuffer = NULL;
|
||||
*ReturnBufferLength = 0;
|
||||
|
||||
if (MessageType == MsV1_0ChangePassword)
|
||||
Status = MsvpChangePassword(ClientRequest,
|
||||
ProtocolSubmitBuffer,
|
||||
ClientBufferBase,
|
||||
SubmitBufferLength,
|
||||
ProtocolReturnBuffer,
|
||||
ReturnBufferLength,
|
||||
ProtocolStatus);
|
||||
else
|
||||
Status = STATUS_ACCESS_DENIED;
|
||||
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue