Advertisement
Guest User

Untitled

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