mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 21:13:52 +00:00
[SAMSRV]
- SamrCreateUser2InDomain2: Set the logon hours attribute. - Implement SamrConnect2. svn path=/trunk/; revision=59097
This commit is contained in:
parent
cd06cd0637
commit
bcb4136c3a
1 changed files with 22 additions and 3 deletions
|
@ -7638,6 +7638,7 @@ SamrCreateUser2InDomain(IN SAMPR_HANDLE DomainHandle,
|
|||
SAM_USER_FIXED_DATA FixedUserData;
|
||||
PSAM_DB_OBJECT DomainObject;
|
||||
PSAM_DB_OBJECT UserObject;
|
||||
UCHAR LogonHours[23];
|
||||
ULONG ulSize;
|
||||
ULONG ulRid;
|
||||
WCHAR szRid[9];
|
||||
|
@ -7898,7 +7899,21 @@ SamrCreateUser2InDomain(IN SAMPR_HANDLE DomainHandle,
|
|||
return Status;
|
||||
}
|
||||
|
||||
/* FIXME: Set LogonHours attribute*/
|
||||
/* Set LogonHours attribute*/
|
||||
*((PUSHORT)LogonHours) = 168;
|
||||
memset(&(LogonHours[2]), 0xff, 21);
|
||||
|
||||
Status = SampSetObjectAttribute(UserObject,
|
||||
L"LogonHours",
|
||||
REG_BINARY,
|
||||
&LogonHours,
|
||||
sizeof(LogonHours));
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
TRACE("failed with status 0x%08lx\n", Status);
|
||||
return Status;
|
||||
}
|
||||
|
||||
/* FIXME: Set Groups attribute*/
|
||||
|
||||
/* Set LMPwd attribute*/
|
||||
|
@ -8088,6 +8103,7 @@ SamrGetDomainPasswordInformation(IN handle_t BindingHandle,
|
|||
return STATUS_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
|
||||
/* Function 57 */
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
|
@ -8095,8 +8111,11 @@ SamrConnect2(IN PSAMPR_SERVER_NAME ServerName,
|
|||
OUT SAMPR_HANDLE *ServerHandle,
|
||||
IN ACCESS_MASK DesiredAccess)
|
||||
{
|
||||
UNIMPLEMENTED;
|
||||
return STATUS_NOT_IMPLEMENTED;
|
||||
TRACE("(%p %p %lx)\n", ServerName, ServerHandle, DesiredAccess);
|
||||
|
||||
return SamrConnect(ServerName,
|
||||
ServerHandle,
|
||||
DesiredAccess);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue