QA: OpenDesk ldapmodify

OpenDesk ldapmodify

Question

Can I execute ldapmodify on OpenDesk Environments

Answer

Yes, the process is as follows (adjust configmaps, secret names, pod names if the defaults have been changed):

NAMESPACE=opendeskenv
kubectl cp current.ldif ${NAMESPACE?}/ums-ldap-server-primary-0:/dev/shm/current.ldif
kubectl exec -n ${NAMESPACE?} ums-ldap-server-primary-0 -- ldapmodify -x -D "$(kubectl get -n ${NAMESPACE?} configmaps ums-ldap-server-primary -o json | jq -r '.data.ADMIN_DN')" -w "$(kubectl get -n ${NAMESPACE?} secret ums-ldap-server-credentials -o
json | jq -r '.data.adminPassword' | base64 -d)" -f /dev/shm/current.ldif

This topic was automatically closed after 24 hours. New replies are no longer allowed.