gitolite with http acces via LDAP does not pass the username

后端 未结 1 933
梦如初夏
梦如初夏 2020-12-07 00:00

I\'m trying to setup a git server with:

  • http-access to be able to clone repositories like this:

    git clone http://mygitserver/repository

相关标签:
1条回答
  • 2020-12-07 00:29

    The two solutions are:

    1/ Apache + ldap, calling gitolite-shell (gitolie V3)

     ScriptAlias /hgit/ @H@/sbin/gitolite-shell/
        SetEnv GIT_HTTP_BACKEND "@H@/usr/local/apps/git/libexec/git-core/git-http-backend"
        <FilesMatch "\.(cgi|shtml|phtml|php)$">
          SSLOptions +StdEnvVars
        </FilesMatch>
        <Location /hgit>
            SSLOptions +StdEnvVars
            Options +ExecCGI +FollowSymLinks +SymLinksIfOwnerMatch
            #AllowOverride All
            order allow,deny
            Allow from all
            AuthName "LDAP authentication for ITSVC Smart HTTP Git repositories"
            AuthType Basic
            AuthBasicProvider myldap companyldap
    

    2/ Or GitLab, which had LDAP authentication: "setting up gitlab LDAP-authentication without special gitlab user"
    See the config gitlab.yml ldap section.

    0 讨论(0)
提交回复
热议问题