mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 10:01:43 +00:00
[SAMSRV/SYSSETUP]
Use proper access rights in calls to LsaOpenPolicy. svn path=/trunk/; revision=57338
This commit is contained in:
parent
0d1d3df33b
commit
83277ebd13
2 changed files with 2 additions and 2 deletions
|
@ -471,7 +471,7 @@ SampGetAccountDomainInfo(PPOLICY_ACCOUNT_DOMAIN_INFO *AccountDomainInfo)
|
|||
|
||||
Status = LsaOpenPolicy(NULL,
|
||||
&ObjectAttributes,
|
||||
POLICY_TRUST_ADMIN,
|
||||
POLICY_VIEW_LOCAL_INFORMATION,
|
||||
&PolicyHandle);
|
||||
if (Status != STATUS_SUCCESS)
|
||||
{
|
||||
|
|
|
@ -38,7 +38,7 @@ SetAccountDomain(LPCWSTR DomainName,
|
|||
|
||||
Status = LsaOpenPolicy(NULL,
|
||||
&ObjectAttributes,
|
||||
POLICY_TRUST_ADMIN,
|
||||
POLICY_VIEW_LOCAL_INFORMATION | POLICY_TRUST_ADMIN,
|
||||
&PolicyHandle);
|
||||
if (Status != STATUS_SUCCESS)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue