To authenticate the username and the password through Active Directory Follow the bellow steps
Add an Active Directory SSL certificate
Configure AD server details through the KnowHOW user interface, detailed documents can be found Here
Upload AD host SSL certificate on the KnowHOW server at "/tmp/<certificateName>.cer", replace <certificateName> with your name of the uploaded certificate using the following commands
Copy the certificate to the customAPI container using the below command
Code Block sudo docker cp /tmp/<certificateName>.cer customapi:/app/certs
Run the below command to add the SSL certificate to Java keystore
Code Block sudo docker exec -t customapi /bin/sh -c "keytool -noprompt -importcert -alias <AD-DNS> -keystore /usr/local/openjdk-8/lib/security/cacerts -storepass changeit -file certs/<certificateName>.cer"
Run the below command to restart the customAPI container
Code Block sudo docker restart customapi