mirror of
https://github.com/reactos/reactos.git
synced 2025-01-07 06:45:24 +00:00
[SAMSRV]
SamrDeleteUser: Prepare the removal of a user from groups and aliases. svn path=/trunk/; revision=61005
This commit is contained in:
parent
c028f53dc7
commit
13edc1476d
3 changed files with 25 additions and 2 deletions
|
@ -5427,9 +5427,21 @@ SamrDeleteUser(IN OUT SAMPR_HANDLE *UserHandle)
|
|||
goto done;
|
||||
}
|
||||
|
||||
/* FIXME: Remove the user from all groups */
|
||||
/* Remove the user from all groups */
|
||||
Status = SampRemoveUserFromAllGroups(UserObject);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
TRACE("SampRemoveUserFromAllGroups() failed (Status 0x%08lx)\n", Status);
|
||||
goto done;
|
||||
}
|
||||
|
||||
/* FIXME: Remove the user from all aliases */
|
||||
/* Remove the user from all aliases */
|
||||
Status = SampRemoveUserFromAllAliases(UserObject);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
TRACE("SampRemoveUserFromAllAliases() failed (Status 0x%08lx)\n", Status);
|
||||
goto done;
|
||||
}
|
||||
|
||||
/* Delete the user from the database */
|
||||
Status = SampDeleteAccountDbObject(UserObject);
|
||||
|
|
|
@ -383,6 +383,9 @@ SampSetUserGroupAttributes(IN PSAM_DB_OBJECT DomainObject,
|
|||
NTSTATUS
|
||||
SampRemoveUserFromAllGroups(IN PSAM_DB_OBJECT UserObject);
|
||||
|
||||
NTSTATUS
|
||||
SampRemoveUserFromAllAliases(IN PSAM_DB_OBJECT UserObject);
|
||||
|
||||
NTSTATUS
|
||||
SampSetUserPassword(IN PSAM_DB_OBJECT UserObject,
|
||||
IN PENCRYPTED_NT_OWF_PASSWORD NtPassword,
|
||||
|
|
|
@ -383,6 +383,14 @@ done:
|
|||
}
|
||||
|
||||
|
||||
NTSTATUS
|
||||
SampRemoveUserFromAllAliases(IN PSAM_DB_OBJECT UserObject)
|
||||
{
|
||||
FIXME("(%p)\n", UserObject);
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
NTSTATUS
|
||||
SampSetUserPassword(IN PSAM_DB_OBJECT UserObject,
|
||||
IN PENCRYPTED_NT_OWF_PASSWORD NtPassword,
|
||||
|
|
Loading…
Reference in a new issue