manage-ldap
This command is used to configure and manage the LDAP / Active Directory configuration on the VM Squared cluster.
```
VMsquared:vmsquared\dashboard> manage-ldap
Configuration Creation
----------------------
1) Create new AD configuration with wizard
2) Create new AD configuration
3) Create new LDAP configuration
4) Quit
Please select [1-4]:
```
AD configuration with wizard
Active Directory is configured on VM Squared through the dashboard console. This guide illustrates the use of the AD configuration wizard to create and test the configuration file prior to it being applied to the VM Squared cluster.
-
SSH onto the VM Squared dashboard console and run the
manage-ldap
command -
Select option 1 to create a new AD configuration with the wizard, and hit enter.
-
Enter the hostname or IP address of a domain controller accessible by the dashboard.
-
Enter the username of the bind account that has permissions to read AD objects in the format of "username@domain", followed by its password.
-
Enter the base distinguished name to search for target users and groups, for the example above:
-
Enter the distinguished name of the security group you wish to use, for the example above: CN=normal-users,OU=Groups,OU=TEST-LABS,DC=TEST-LABS,DC=sa,DC=test,DC=com
-
Select the group in the dashboard (or create a new one) to which you wish to map the AD group
-
You may add additional mappings at this time if desired, but if you are only adding one group, select
n
and hit enter -
At this time, you can choose to test the configuration by selecting the
Test
option and entering the credentials of a user that exists in the security group selected previously.Configuration Management ------------------------ 1) Edit configuration 2) Delete configuration 3) Group Mappings ... 4) Test 5) Commit changes 6) Quit Please select [1-6]: 4 Enter the username: normal-user Enter the password: N0rmalUs3r! Trying LDAP server 'server1' 'normal-user' (CN=Normal%20User,OU=Users,OU=TEST-LABS,DC=TEST-LABS,DC=sa,DC=test,DC=com) => groups: 0 Success
-
Once the test is successful, commit the changes to save the configuration.
-
Once changes have been committed, select
Quit
.
At this point Active Directory has been enabled on the VM Squared cluster.
AD (configuration file)
-
Connect to the dashboard via SSH and run the manage-ldap command.
-
Select the "Create new AD configuration" option
-
A sample file will be opened in a text editor. Change the necessary values to reflect the AD domain and domain controller you wish to authenticate against.
-
Save your changes with
CTRL + S
, and then exit the editor withCTRL + Q
-
At the configuration management menu, select the option for Group Mappings, and either edit the existing
mapping.yaml
file or create your own new file.Configuration Management ------------------------ 1) Edit configuration 2) Delete configuration 3) Group Mappings ... 4) Test 5) Commit changes 6) Quit Please select [1-6]: 3 Group Mappings -------------- 1) Create new mapping file 2) Edit mapping.yaml 3) Delete mapping.yaml 4) Back ... 5) Quit Please select [1-5]: 2
-
Once you've added the mapping(s), save your changes with
CTRL + S
, and then exit the editor withCTRL + Q
-
At the Group Mappings menu, select the option to go Back, and then commit your changes at the Configuration Management Menu
Group Mappings -------------- 1) Create new mapping file 2) Edit mapping.yaml 3) Delete mapping.yaml 4) Back ... 5) Quit Please select [1-5]: 4 Configuration Management ------------------------ 1) Edit configuration 2) Delete configuration 3) Group Mappings ... 4) Test 5) Commit changes 6) Quit Please select [1-6]: 5 Committed
-
At this time, you can choose to test the configuration by selecting the Test option and entering the credentials of a user that exists in the security group selected previously.
Configuration Management
------------------------
1) Edit configuration
2) Delete configuration
3) Group Mappings ...
4) Test
5) Commit changes
6) Quit
Please select [1-6]: 4
Enter the username: normal-user
Enter the password: N0rmalUs3r!
Trying LDAP server 'server1'
'normal-user' (CN=Normal%20User,OU=Users,OU=TEST-LABS,DC=TEST-LABS,DC=sa,DC=test,DC=com) => groups: 0
Success
At this point Active Directory has been enabled on the VM Squared cluster.
LDAP (configuration file)
-
Connect to the dashboard via SSH and run the manage-ldap command.
-
Select the "Create new LDAP configuration" option
-
A sample file will be opened in a text editor. Change the necessary values to reflect the configuration and server you wish to authenticate against.
-
Save your changes with
CTRL + S
, and then exit the editor withCTRL + Q
-
At the configuration management menu, select the option for Group Mappings, and either edit the existing
mapping.yaml
file or create your own new file.Configuration Management ------------------------ 1) Edit configuration 2) Delete configuration 3) Group Mappings ... 4) Test 5) Commit changes 6) Quit Please select [1-6]: 3 Group Mappings -------------- 1) Create new mapping file 2) Edit mapping.yaml 3) Delete mapping.yaml 4) Back ... 5) Quit Please select [1-5]: 2
-
Once you've added the mapping(s), save your changes with
CTRL + S
, and then exit the editor withCTRL + Q
-
At the Group Mappings menu, select the option to go Back, and then commit your changes at the Configuration Management Menu
Group Mappings -------------- 1) Create new mapping file 2) Edit mapping.yaml 3) Delete mapping.yaml 4) Back ... 5) Quit Please select [1-5]: 4 Configuration Management ------------------------ 1) Edit configuration 2) Delete configuration 3) Group Mappings ... 4) Test 5) Commit changes 6) Quit Please select [1-6]: 5 Committed
-
At this time, you can choose to test the configuration by selecting the Test option and entering the credentials of a user that exists in the security group selected previously.
Configuration Management ------------------------ 1) Edit configuration 2) Delete configuration 3) Group Mappings ... 4) Test 5) Commit changes 6) Quit Please select [1-6]: 4 Enter the username: normal-user Enter the password: N0rmalUs3r! Trying LDAP server 'server1' 'normal-user' (CN=Normal%20User,OU=Users,OU=TEST-LABS,DC=TEST-LABS,DC=sa,DC=test,DC=com) => groups: 0 Success
At this point LDAP has been enabled on the VM Squared cluster.