Skip to content
Snippets Groups Projects

Add testing environment for profile API

Closed Martin Lowe requested to merge malowe/main/testing-env into main
16 files
+ 1443
18
Compare changes
  • Side-by-side
  • Inline
Files
16
+ 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