-
Notifications
You must be signed in to change notification settings - Fork 9
Service ID OpenLDAP
cintiadr edited this page Jun 16, 2019
·
55 revisions
- Production: ako/Jetstream
- Staging: ruiru/Jetstream
No license.
LDAP. To be accessed by the ID Dashboard and Crowd.
OpenLDAP is dockerized. It listens on 127.0.0.1:689. It's only accessible from ambam and baragoi machines.
cd /root/docker/ldap
docker-compose restart ldap
Via ansible/docker compose apps.
Check Backups-Strategy to understand how to download or upload backups files from/to AWS S3.
- Stop your OpenLDAP server (`docker-compose stop ldap`)
- Make a copy of LDAP config directory (`/data/docker/volumes/ldap_config`) and LDAP data directory (`/data/docker/volumes/ldap_database`) to your backup directory
- Start OpenLDAP server (`docker-compose start ldap`)
- Stop your OpenLDAP server (`docker-compose stop ldap`)
- Replace the contents of LDAP config directory (`/data/docker/volumes/ldap_config`) and LDAP data directory (`/data/docker/volumes/ldap_database`) with the contents extracted
- Start OpenLDAP server (`docker-compose start ldap`)
- Using slapcat/slapadd is not recommended and can lead to inconsistencies.
cd /root/docker/ldap
docker-compose logs -f
We know that we cannot restart our LDAP containers. https://issues.openmrs.org/browse/ITSM-4134
If you want to check if a user belongs to a group in LDAP, there's a bunch of way:
- Check formage as mongodb has a copy of users created since January/2019
- Crowd. It might timeout.
- JIRA or Wiki user management screen (if they've already logged in, as the groups are only loaded on those occasions)
- Straight in LDAP
ssh ldap.openmrs.org
sudo -i
docker exec -it ldap_ldap_1 bash
SEARCH_USER=<username>
ldapsearch -LLL -D "cn=admin,dc=openmrs,dc=org" -W -b "cn=jira-users,ou=groups,dc=openmrs,dc=org" | fgrep $SEARCH_USER
ldapsearch -LLL -D "cn=admin,dc=openmrs,dc=org" -W -b "cn=jira-trunk-developer,ou=groups,dc=openmrs,dc=org" | fgrep $SEARCH_USER
ldapsearch -LLL -D "cn=admin,dc=openmrs,dc=org" -W -b "cn=confluence-users,ou=groups,dc=openmrs,dc=org" | fgrep $SEARCH_USER
# creds in LP
Check Rename user docs.
Read this before updating this wiki.