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
| Function | Purpose | Arguments | Output |
|---|---|---|---|
_admg_run_action | Forward an Active Directory management action to its management executable. | — | — |
_admg_validate | Forward the validate action to the AD management script. | — | — |
_admg_status | Forward the status action to the AD management script. | — | — |
_admg_list_users | Forward the user-list action to the AD management script. | — | — |
_admg_show_user | Forward the user-show action to the AD management script. | — | — |
_admg_create_user | Forward the user-create action to the AD management script. | — | — |
_admg_toggle_user | Forward the user-toggle action to the AD management script. | — | — |
_admg_reset_user_password | Forward the user-password action to the AD management script. | — | — |
_admg_set_user_password_noexpiry | Forward the user-noexpiry action to the AD management script. | — | — |
_admg_user_add_groups | Forward the user-addgroups action to the AD management script. | — | — |
_admg_user_remove_groups | Forward the user-removegroups action to the AD management script. | — | — |
_admg_delete_user | Forward the user-delete action to the AD management script. | — | — |
_admg_list_groups | Forward the group-list action to the AD management script. | — | — |
_admg_show_group | Forward the group-show action to the AD management script. | — | — |
_admg_create_group | Forward the group-create action to the AD management script. | — | — |
_admg_group_add_users | Forward the group-addusers action to the AD management script. | — | — |
_admg_group_remove_members | Forward the group-removemembers action to the AD management script. | — | — |
_admg_delete_group | Forward the group-delete action to the AD management script. | — | — |
_admg_list_computers | Forward the computer-list action to the AD management script. | — | — |
_admg_show_computer | Forward the computer-show action to the AD management script. | — | — |
_admg_delete_computer | Forward 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
