ldap { settings('settings_name') { url 'ldap://myserver:myport/DC=sampledomain,DC=com' // mandatory userDnPattern 'uid={0},ou=People' emailAttribute 'mail' enabled true // default value - true autoCreateUser true // default value - true search { filter '(uid={0})' base 'OU=dev,DC=sampledomain,DC=com' searchSubTree true managerDn 'CN=admin,OU=ops,DC=sampledomain,DC=com' managerPassword 'password' } } }
However, when I go to "Update Instance" -> "Apply Scripts" and I am getting: "Required plugin(s) 'LDAP_SETTINGS' are not avaiable on instance. I can manually confiure LDAP setting on the target instance, but can't do it through MC.
After some investigation, turns out that when adding a new instance in Mission Control, you need to manually upload plugins to the new instance:
- After adding a new Artifactory instance the user has to "upload extension".
- In the Instance Browser, select the instance you want to connect to.
- From the Actions menu, click Upload Extensions.
After following these steps check the etc/plugins directory and there would be "ldapSettingsConfig.groovy" plugin which will handle these scripts.
Now you should be able to apply the LDAP configuration script.
No comments:
Post a Comment