mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 16:02:56 +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,
|
Status = LsaOpenPolicy(NULL,
|
||||||
&ObjectAttributes,
|
&ObjectAttributes,
|
||||||
POLICY_TRUST_ADMIN,
|
POLICY_VIEW_LOCAL_INFORMATION,
|
||||||
&PolicyHandle);
|
&PolicyHandle);
|
||||||
if (Status != STATUS_SUCCESS)
|
if (Status != STATUS_SUCCESS)
|
||||||
{
|
{
|
||||||
|
|
|
@ -38,7 +38,7 @@ SetAccountDomain(LPCWSTR DomainName,
|
||||||
|
|
||||||
Status = LsaOpenPolicy(NULL,
|
Status = LsaOpenPolicy(NULL,
|
||||||
&ObjectAttributes,
|
&ObjectAttributes,
|
||||||
POLICY_TRUST_ADMIN,
|
POLICY_VIEW_LOCAL_INFORMATION | POLICY_TRUST_ADMIN,
|
||||||
&PolicyHandle);
|
&PolicyHandle);
|
||||||
if (Status != STATUS_SUCCESS)
|
if (Status != STATUS_SUCCESS)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue