setting up gitlab LDAP-authentication without special gitlab user

前端 未结 3 496
清酒与你
清酒与你 2020-12-28 09:22

I want to set up Gitlab with our company\'s LDAP as a demo. But unfortunately I have to put in an admin password in gitlab.yml to make gitlab access the LDAP service. The pr

3条回答
  •  无人及你
    2020-12-28 09:31

    I haven't tried it yet, but from the things I've build so far authenticating against LDAP and the informations from the config-file this user-account seems only to be needed when your LDAP does not support anonymous binding and searching.

    So I would leave the two entries bind_dn and password commented out and try whether it works or not.

    UPDATE

    I've implemented LDAP-Autehntication in Gitlab and it's fairly easy.

    In the gitlab.yml-file there is a section called ldap.

    There you have to provide the informations to connect to your LDAP. It seems that all fields have to be given, there seems to be no fallback default! If you want to use anonymous binding for retrieval of the users DN supply an empty string for bind_dn and password. Commenting them out seems not to work! At least I got a 501 Error message.

    More information can be found at https://github.com/patthoyts/gitlabhq/wiki/Setting-up-ldap-auth and (more outdated but still helpful) https://github.com/intridea/omniauth-ldap

提交回复
热议问题