Skip to content
Snippets Groups Projects

Draft: Add LDAP to local docker compose for testing LDAP without binding upstream

Closed Martin Lowe requested to merge malowe/main/db-mig-prep into main
5 files
+ 106
5
Compare changes
  • Side-by-side
  • Inline
Files
5
+ 9
0
#!/bin/bash
echo """dn: olcDatabase={1}mdb,cn=config
changetype: modify
replace: olcAccess
olcAccess: to * by dn.exact=gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth manage by * break
olcAccess: to attrs=userPassword,shadowLastChange by self write by dn=\"cn=admin,dc=eclipse,dc=org\" write by anonymous auth by * none
olcAccess: to * by anonymous read by dn=\"cn=admin,dc=eclipse,dc=org\" write by * none""" > /tmp/anon-bind.ldif
echo "Modifying local LDAP to allow anonymous bind, will be prompted for the LDAP_CONFIG_PASSWORD."
ldapmodify -x -D "cn=admin,cn=config" -H ldap://localhost -f /tmp/anon-bind.ldif -W
\ No newline at end of file
Loading