NetUserSetInfo: Use the proper access rights to open the domain object.

svn path=/trunk/; revision=59812
This commit is contained in:
Eric Kohl 2013-08-24 20:22:05 +00:00
parent 47f00dba5f
commit 4c96bd997e

View file

@ -3644,7 +3644,7 @@ NetUserSetInfo(LPCWSTR servername,
/* Open the Account Domain */
Status = OpenAccountDomain(ServerHandle,
(servername != NULL) ? &ServerName : NULL,
DOMAIN_LIST_ACCOUNTS | DOMAIN_LOOKUP,
DOMAIN_LIST_ACCOUNTS | DOMAIN_LOOKUP | DOMAIN_READ_PASSWORD_PARAMETERS,
&AccountDomainHandle);
if (!NT_SUCCESS(Status))
{