Author: ekohl
Date: Sat Apr 13 17:59:40 2013
New Revision: 58740
URL:
http://svn.reactos.org/svn/reactos?rev=58740&view=rev
Log:
[SAMSRV]
SamrCreateUserInDomain: Set default logon hours.
Modified:
trunk/reactos/dll/win32/samsrv/samrpc.c
Modified: trunk/reactos/dll/win32/samsrv/samrpc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/samsrv/samrpc.c?…
==============================================================================
--- trunk/reactos/dll/win32/samsrv/samrpc.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/samsrv/samrpc.c [iso-8859-1] Sat Apr 13 17:59:40 2013
@@ -2096,6 +2096,7 @@
SAM_USER_FIXED_DATA FixedUserData;
PSAM_DB_OBJECT DomainObject;
PSAM_DB_OBJECT UserObject;
+ UCHAR LogonHours[23];
ULONG ulSize;
ULONG ulRid;
WCHAR szRid[9];
@@ -2350,11 +2351,14 @@
}
/* Set LogonHours attribute*/
+ *((PUSHORT)LogonHours) = 168;
+ memset(&(LogonHours[2]), 0xff, 21);
+
Status = SampSetObjectAttribute(UserObject,
L"LogonHours",
REG_BINARY,
- NULL,
- 0);
+ &LogonHours,
+ sizeof(LogonHours));
if (!NT_SUCCESS(Status))
{
TRACE("failed with status 0x%08lx\n", Status);