An Ansible Playbook to deploy OpenLDAP and FusionDirectory
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
946B

  1. dn: olcDatabase={1}mdb,cn=config
  2. changetype: modify
  3. delete: olcAccess
  4. -
  5. add: olcAccess
  6. olcAccess: {0}to dn.subtree="{{ base_dn }}" attrs=userPassword
  7. by self write
  8. by dn.base="cn=admin,{{ base_dn }}" write
  9. by dn.children="ou=dsa,{{ base_dn }}" write
  10. by anonymous auth
  11. by * none
  12. -
  13. add: olcAccess
  14. olcAccess: {1}to dn.subtree="ou=people,{{ base_dn }}"
  15. by self read
  16. by dn.base="uid=test.user,ou=people,{{ base_dn }}" write
  17. by dn.base="cn=admin,{{ base_dn }}" write
  18. by dn.children="ou=dsa,{{ base_dn }}" read
  19. by anonymous auth
  20. by * none
  21. -
  22. add: olcAccess
  23. olcAccess: {2}to attrs=userPassword,shadowLastChange
  24. by self write
  25. by anonymous auth
  26. by dn="cn=admin,{{ base_dn }}" write
  27. by * none
  28. -
  29. add: olcAccess
  30. olcAccess: {3}to dn.subtree="{{ base_dn }}"
  31. by self read
  32. by dn.base="cn=admin,{{ base_dn }}" write
  33. by dn.children="ou=dsa,{{ base_dn }}" write
  34. by * none
  35. -
  36. add: olcAccess
  37. olcAccess: {4}to dn.base=""
  38. by * none