Active Directory Management

SolidGroundUX DocumentationSolidGroundUX
NL

Register Active Directory object-management actions

Source: target-root/usr/local/libexec/solidgroundux/console-modules/27-active-directory-management.sh

Register Active Directory object-management actions

Public functions

Internal functions
FunctionPurposeArgumentsOutput
_sgnd_lib_guardEnsure the file is sourced as a library and marked as loaded.—(globals)
_admg_run_actionForward an Active Directory management action to its management executable.——
_admg_validateForward the validate action to the AD management script.——
_admg_statusForward the status action to the AD management script.——
_admg_list_usersForward the user-list action to the AD management script.——
_admg_show_userForward the user-show action to the AD management script.——
_admg_create_userForward the user-create action to the AD management script.——
_admg_toggle_userForward the user-toggle action to the AD management script.——
_admg_reset_user_passwordForward the user-password action to the AD management script.——
_admg_set_user_password_noexpiryForward the user-noexpiry action to the AD management script.——
_admg_user_add_groupsForward the user-addgroups action to the AD management script.——
_admg_user_remove_groupsForward the user-removegroups action to the AD management script.——
_admg_delete_userForward the user-delete action to the AD management script.——
_admg_list_groupsForward the group-list action to the AD management script.——
_admg_show_groupForward the group-show action to the AD management script.——
_admg_create_groupForward the group-create action to the AD management script.——
_admg_group_add_usersForward the group-addusers action to the AD management script.——
_admg_group_remove_membersForward the group-removemembers action to the AD management script.——
_admg_delete_groupForward the group-delete action to the AD management script.——
_admg_list_computersForward the computer-list action to the AD management script.——
_admg_show_computerForward the computer-show action to the AD management script.——
_admg_delete_computerForward the computer-delete action to the AD management script.——

Description

Registers day-to-day Active Directory administration actions with the SolidGround Management Console. Persistent object management is implemented by manage-active-directory.sh.

Module validation contract

Return codes: 0 = Passed 1 = Failed 2 = Warning 3 = Skipped / not applicable

Every validator sets SGND_MODULE_VALIDATION_MESSAGE to a concise result summary. Detailed diagnostic output may be written by the validator or delegated action.

Console registration

Provides day-to-day Active Directory object management after a domain has been provisioned. The module exposes directory status plus focused user, group, and computer-account administration without replacing full directory tooling.

Directory

! Show directory status

Show realm, controller state, and directory object counts. Handler: _admg_status

! Validate directory management

Validate controller state and directory object enumeration. Handler: _admg_validate

Users

! List users

List Active Directory users. Handler: _admg_list_users

! Show user

Show user details and direct group memberships. Handler: _admg_show_user

! Create user

Create an Active Directory user. Handler: _admg_create_user

! Enable / disable user

Toggle the selected user account state. Handler: _admg_toggle_user

! Reset user password

Reset the selected user's password. Handler: _admg_reset_user_password

! Set password never expires

Disable password expiry for the selected user. Handler: _admg_set_user_password_noexpiry

! Add user to groups

Add a selected user to one or more groups. Handler: _admg_user_add_groups

! Remove user from groups

Remove selected direct group memberships. Handler: _admg_user_remove_groups

! Delete user

Delete a selected non-protected user account. Handler: _admg_delete_user

Groups

! List groups

List Active Directory groups. Handler: _admg_list_groups

! Show group

Show group details and direct members. Handler: _admg_show_group

! Create group

Create an Active Directory group. Handler: _admg_create_group

! Add users to group

Add one or more users to a selected group. Handler: _admg_group_add_users

! Remove group members

Remove one or more direct members from a selected group. Handler: _admg_group_remove_members

! Delete group

Delete a selected non-protected group. Handler: _admg_delete_group

Computers

! List computers

List Active Directory computer accounts. Handler: _admg_list_computers

! Show computer

Show the selected computer account. Handler: _admg_show_computer

! Delete computer

Delete a selected stale computer account. Handler: _admg_delete_computer