fixes to ldap

This commit is contained in:
coltoneshaw
2024-03-29 10:36:58 -04:00
parent b037ac469e
commit adde7255cb
3 changed files with 98 additions and 62 deletions

View File

@@ -3,6 +3,7 @@
This is a basic reproduction that includes various components preconfigured like SAML, LDAP, advanced logging, prometheus, grafana, and elasticsearch.
- [LDAP](#ldap)
- [MMCTL](#mmctl)
## Making Changes
@@ -195,4 +196,23 @@ docker exec -it cs-repro-openldap ldapmodify \
-f /ldap/addUniqueID.ldif
```
A few notes, when adding this attribute you must add the `customPerson` objectclass to the person before you can assign the attribute. See the `ldapadd.ldif` file for help.
A few notes, when adding this attribute you must add the `customPerson` objectclass to the person before you can assign the attribute. See the `ldapadd.ldif` file for help.
Now that you've added the Id to the environment, you have to add it to the users.
```bash
docker exec -it cs-repro-openldap ldapmodify \
-x \
-H ldap://openldap:10389 \
-D "cn=admin,dc=planetexpress,dc=com" \
-w GoodNewsEveryone \
-f /ldap/addUniqueIdToUsers.ldif
```
## MMCTL
To use `mmctl` it's already setup for local, just run the below docker command.
```bash
docker exec -it cs-repro-mattermost mmctl config get SqlSettings.DataSource
```