mirror of
https://github.com/reactos/reactos.git
synced 2025-06-05 01:10:26 +00:00
[SAMSRV]
Add LogonHours attribute to new user accounts. svn path=/trunk/; revision=58617
This commit is contained in:
parent
b36c9a582f
commit
686d9ba24f
1 changed files with 12 additions and 1 deletions
|
@ -229,6 +229,7 @@ SampCreateUserAccount(HKEY hDomainKey,
|
||||||
ULONG UserAccountControl)
|
ULONG UserAccountControl)
|
||||||
{
|
{
|
||||||
SAM_USER_FIXED_DATA FixedUserData;
|
SAM_USER_FIXED_DATA FixedUserData;
|
||||||
|
UCHAR LogonHours[23];
|
||||||
LPWSTR lpEmptyString = L"";
|
LPWSTR lpEmptyString = L"";
|
||||||
DWORD dwDisposition;
|
DWORD dwDisposition;
|
||||||
WCHAR szAccountKeyName[32];
|
WCHAR szAccountKeyName[32];
|
||||||
|
@ -343,7 +344,17 @@ SampCreateUserAccount(HKEY hDomainKey,
|
||||||
(LPVOID)lpEmptyString,
|
(LPVOID)lpEmptyString,
|
||||||
sizeof(WCHAR));
|
sizeof(WCHAR));
|
||||||
|
|
||||||
/* FIXME: Set LogonHours attribute*/
|
/* Set LogonHours attribute */
|
||||||
|
*((PUSHORT)LogonHours) = 168;
|
||||||
|
memset(&(LogonHours[2]), 0xff, 21);
|
||||||
|
|
||||||
|
RegSetValueEx(hAccountKey,
|
||||||
|
L"LogonHours",
|
||||||
|
0,
|
||||||
|
REG_BINARY,
|
||||||
|
(LPVOID)LogonHours,
|
||||||
|
sizeof(LogonHours));
|
||||||
|
|
||||||
/* FIXME: Set Groups attribute*/
|
/* FIXME: Set Groups attribute*/
|
||||||
|
|
||||||
/* Set LMPwd attribute*/
|
/* Set LMPwd attribute*/
|
||||||
|
|
Loading…
Reference in a new issue