[SAMLIB]
authorEric Kohl <eric.kohl@reactos.org>
Sat, 24 Aug 2013 20:22:05 +0000 (20:22 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Sat, 24 Aug 2013 20:22:05 +0000 (20:22 +0000)
NetUserSetInfo: Use the proper access rights to open the domain object.

svn path=/trunk/; revision=59812

reactos/dll/win32/netapi32/user.c

index 3840b68..7213b86 100644 (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))
     {