ldap.conf 798 B

123456789101112131415161718192021222324252627282930
  1. #
  2. # LDAP related stuff (Salt managed)
  3. #
  4. apply Service "ldaps" {
  5. import "generic-service"
  6. check_command = "ldap"
  7. vars.ldap_address = host.vars.ldap_fqdn
  8. vars.ldap_base = "dc=ffho,dc=net"
  9. vars.ldap_ssl = true
  10. vars.ldap_v3 = true
  11. assign where host.vars.ldap_fqdn && "ldap-master" in host.vars.roles
  12. assign where host.vars.ldap_fqdn && "ldap-replica" in host.vars.roles
  13. }
  14. apply Service "ldap_replication" {
  15. import "generic-service"
  16. check_command = "ldap_replication"
  17. vars.ldap_master = "ldaps://ldap-master.srv.in.ffho.net"
  18. vars.ldap_mirror = "ldaps://" + host.vars.ldap_fqdn
  19. vars.ldap_sync_base = "ou=sync-check,dc=ffho,dc=net"
  20. vars.ldap_bind_dn = "uid=sync-check,ou=accounts,dc=ffho,dc=net"
  21. assign where host.vars.ldap_fqdn && "ldap-replica" in host.vars.roles
  22. }