Creating the Active Directory Configuration
To create the Active Directory configuration, use the activedirectory create command. For example:
vcli: admin> activedirectory create --machine-account-name co-vcluster --port 389 --binddn cn=admin,ou=users,dc=mycompanyad,dc=com --bindpw **** --method simple --use-tls --domain-name co-ad.com
An Active Directory configuration record is created.
When this step is completed well, no computer account is created in Active Directory. The next step (join operation) creates a new computer account in the Active Directory.
Joining Active Directory
After creating the Active Directory configuration, run
activedirectory listto get the ID of the Active Directory configuration record. In this example, the ID is 3.Run
activedirectory modifywith the Active Directory configuration record ID specified on the--idparameter. Add the--joinoption to join the Active Directory domain. Specify--admin-usernameand provide a user name of an Active Directory admin user with permission to join the Active Directory domain:vcli admin> activedirectory modify --id 3 --join --admin-username USER
Confirm that you wish to proceed:
Are you sure you want to modify the Active directory? [y/N] y
Enter the password for the Active Directory admin user when prompted:
Enter admin password: Password: Waiting ... [2022-03-31 10:18:39] waiting for active directory My_AD enabled state to change to True ... / Completed vcli: admin>
Run
activedirectory listagain and verify that the Active Directory configuration state is nowJOINED.