Advertisement
Guest User

Untitled

a guest
Apr 26th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. ## Authorizations
  2. # Uncomment out the merging for each environment that you'd like to include.
  3. # You can also just copy and paste the tree (do not include the "authorizations") to each
  4. # environment if you need something different per enviornment.
  5. authorizations: &AUTHORIZATIONS
  6. allow_unauthenticated_bind: false
  7. group_base: ou=groups,dc=test,dc=com
  8. ## Requires config.ldap_check_group_membership in devise.rb be true
  9. # Can have multiple values, must match all to be authorized
  10. required_groups:
  11. # If only a group name is given, membership will be checked against "uniqueMember"
  12. - cn=admins,ou=groups,dc=test,dc=com
  13. - cn=users,ou=groups,dc=test,dc=com
  14. # If an array is given, the first element will be the attribute to check against, the second the group name
  15. - ["moreMembers", "cn=users,ou=groups,dc=test,dc=com"]
  16. ## Requires config.ldap_check_attributes in devise.rb to be true
  17. ## Can have multiple attributes and values, must match all to be authorized
  18. require_attribute:
  19. objectClass: inetOrgPerson
  20. authorizationRole: postsAdmin
  21.  
  22. ## Environment
  23.  
  24. development:
  25. host: localhost
  26. port: 389
  27. attribute: cn
  28. base: ou=people,dc=test,dc=com
  29. admin_user: cn=admin,dc=test,dc=com
  30. admin_password: admin_password
  31. ssl: false
  32. # <<: *AUTHORIZATIONS
  33.  
  34. test:
  35. host: localhost
  36. port: 3389
  37. attribute: cn
  38. base: ou=people,dc=test,dc=com
  39. admin_user: cn=admin,dc=test,dc=com
  40. admin_password: admin_password
  41. ssl: simple_tls
  42. # <<: *AUTHORIZATIONS
  43.  
  44. production:
  45. host: localhost
  46. port: 636
  47. attribute: cn
  48. base: ou=people,dc=test,dc=com
  49. admin_user: cn=admin,dc=test,dc=com
  50. admin_password: admin_password
  51. ssl: start_tls
  52. # <<: *AUTHORIZATIONS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement