Skip to content

Instantly share code, notes, and snippets.

@sscarduzio
Created January 17, 2020 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sscarduzio/ffb9d103e5db86775d41a414c0bfa85d to your computer and use it in GitHub Desktop.
Save sscarduzio/ffb9d103e5db86775d41a414c0bfa85d to your computer and use it in GitHub Desktop.
ROR ACL Exaples: authorization
readonlyrest:
access_control_rules:
- name: "LDAP users via basic auth"
ldap_auth:
name: "ldap1"
groups: ["ldap_group1"]
ldaps:
- name: ldap1
hosts:
- "ldaps://ldap1.foo.com:636"
- "ldaps://ldap2.foo.com:636"
ha: "ROUND_ROBIN"
search_user_base_DN: "ou=Staff,dc=foo,dc=com"
search_groups_base_DN: "ou=Groups,dc=foo,dc=com"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment