refda21

Untitled

Sep 26th, 2021
952
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 environment.
  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.   ## Requires config.ldap_check_attributes_presence in devise.rb to be true
  22.   ## Can have multiple attributes set to true or false to check presence, all must match all to be authorized
  23.   require_attribute_presence:
  24.     mail: true
  25.     telephoneNumber: true
  26.     serviceAccount: false
  27.  
  28. ## Environment
  29.  
  30. #development:
  31. #  host: localhost
  32. #  port: 389
  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.   development:
  41.   host: 192.168.60.159
  42.   port: 389
  43.   attribute: cn
  44.   base: ou=people, dc=pgn-solution, dc=co, dc=id
  45.   admin_user: cn=admin, dc=pgn-solution, dc=co, dc=id
  46.   admin_password: 4lh4mdul1ll4h
  47.   ssl: false
  48.   # <<: *AUTHORIZATIONS
  49.  
  50. #test:
  51. #  host: localhost
  52. #  port: 3389
  53. #  attribute: cn
  54. #  base: ou=people,dc=test,dc=com
  55. #  admin_user: cn=admin,dc=test,dc=com
  56. #  admin_password: admin_password
  57. #  ssl: simple_tls
  58.   # <<: *AUTHORIZATIONS
  59.  
  60. #production:
  61. #  host: localhost
  62. #  port: 636
  63. #  attribute: cn
  64. #  base: ou=people,dc=test,dc=com
  65. #  admin_user: cn=admin,dc=test,dc=com
  66. #  admin_password: admin_password
  67. #  ssl: start_tls
  68.   # <<: *AUTHORIZATIONS
  69.  
RAW Paste Data