Advertisement
Guest User

Untitled

a guest
Feb 2nd, 2016
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.96 KB | None | 0 0
  1. ## For setting up LDAP
  2. ## see https://gitlab.com/gitlab-org/omnibus-gitlab/blob/629def0a7a26e7c2326566f0758d4a27857b52a3/README.md#setting-up-ldap-sign-in
  3. ## Be careful not to break the identation in the ldap_servers block. It is in
  4. ## yaml format and the spaces must be retained. Using tabs will not work.
  5.  
  6.  gitlab_rails['ldap_enabled'] = true
  7.  gitlab_rails['ldap_servers'] = YAML.load <<-'EOS' # remember to close this block with 'EOS' below
  8.    main: # 'main' is the GitLab 'provider ID' of this LDAP server
  9.      label: 'LDAP'
  10.      host: 'sys.ace.lan'
  11.      port: 389
  12.      uid: 'sAMAccountName'
  13.      method: 'plain' # "tls" or "ssl" or "plain"
  14.      bind_dn: 'cn=manager,ou=Internal,dc=ace,dc=lan'
  15.      password: 'gSHuTNDQwQ4XJDN4'
  16.      active_directory: false
  17. #     allow_username_or_email_login: false
  18. #     block_auto_created_users: false
  19.      base: ''
  20.      user_filter: ''
  21.      attributes:
  22.        username: ['uid', 'userid', 'sAMAccountName']
  23.        email:    ['mail', 'email', 'userPrincipalName']
  24.        name:       'cn'
  25.        first_name: 'givenName'
  26.        last_name:  'sn'
  27. #     ## EE only
  28. #     group_base: ''
  29. #     admin_group: ''
  30. #     sync_ssh_keys: false
  31. #
  32. #   secondary: # 'secondary' is the GitLab 'provider ID' of second LDAP server
  33. #     label: 'LDAP'
  34. #     host: '_your_ldap_server'
  35. #     port: 389
  36. #     uid: 'sAMAccountName'
  37. #     method: 'plain' # "tls" or "ssl" or "plain"
  38. #     bind_dn: '_the_full_dn_of_the_user_you_will_bind_with'
  39. #     password: '_the_password_of_the_bind_user'
  40. #     active_directory: true
  41. #     allow_username_or_email_login: false
  42. #     block_auto_created_users: false
  43. #     base: ''
  44. #     user_filter: ''
  45. #     attributes:
  46. #       username: ['uid', 'userid', 'sAMAccountName']
  47. #       email:    ['mail', 'email', 'userPrincipalName']
  48. #       name:       'cn'
  49. #       first_name: 'givenName'
  50. #       last_name:  'sn'
  51. #     ## EE only
  52. #     group_base: ''
  53. #     admin_group: ''
  54. #     sync_ssh_keys: false
  55.  EOS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement