Join this online user group to communicate across Security product users and IBM experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.
The approach is to centralize user account management, which entails having a single database that houses all user account information. There are various ways to do this, but the Lightweight Directory Access Protocol (LDAP) in one of its many variations is likely the most popular today.
To allow users to log in to IBM Cloud Pak for Security one of the identity provider authentication must be configured:
Linux systems keep a local registry of all their users by default. The /etc/passwd file is the registry. There is a line for each registered user in this file. So, in order to access a computer, we must first create a user account. This is fine if we only have a few computers, but if we have tens or hundreds, creating new users or modifying passwords on all of them could be a nightmare.
#loging to CP4S cluster oc login <openshift_url> -u <username> -p <password> -n <namespace> #or use below command, use your token command you got from your OCP web console oc login --token=<token> --server=<openshift_url> #Change Project to CP4S Namespace you provided during CP4S installation #e.g. oc project cp4s oc project <namespace> #Retrive cptl utility POD=$(oc get pod --no-headers -lrun=cp-serviceability | cut -d' ' -f1) #Copy Utility to your local computer oc cp $POD:/opt/bin/linux/cpctl ./cpctl && chmod +x ./cpctl #add utility to your globa PATH install -vm 0755 -o root ./cpctl /usr/local/bin/cpctl #Load cpctl utility cpctl load
Important: The OpenLDAP deployment is intended to be used only for demonstration purposes in a test environment and is not supported for use in a production environment.
# To run the deploy_openldap action, enter the following command. cpctl tools deploy_openldap --token <admin_token> --operation <action_operation> --ldap_usernames <users_list> --ldap_password <openldap_password> #e.g. cpctl tools deploy_openldap --token $(oc whoami -t) --ldap_usernames 'adminuser@example.com,user1,user2,user3' --ldap_password myCustomPassword #Note: Here adminuser@example.com is is an example of adminUser
"Enterprise LDAP"
System Administrator
Account Management
Edit Account settings
CP4SLDAP
user1
admin
user2
User Management
To Uninstall use the following.
#To uninstall OpenLDAP, run the command: cpctl tools deploy_openldap --token $(oc whoami -t) --operation uninstall
Important
Copy
Please note that OpenLDAP should never be deployed on production systems