What does your Apache config look like?
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName gerrit.office.carallon.com
ProxyRequests Off
ProxyVia Off
ProxyPreserveHost On
<Proxy *>
Require all granted
</Proxy>
AllowEncodedSlashes On
ProxyPass / http://127.0.0.1:8081/r/ nocanon
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLProxyEngine on
SSLCertificateFile /etc/ssl/certs/office.carallon.com_2018.pem
SSLCertificateKeyFile /etc/ssl/private/office.carallon.com.key
SSLCACertificateFile /etc/ssl/certs/RapidSSL_CA_2018.pem
<Location /login/>
AuthBasicProvider ldap
AuthType Basic
AuthLDAPURL "*******" NONE
AuthLDAPBindDN "**********"
AuthLDAPBindPassword "*******"
Require valid-user
</Location>
</VirtualHost>
</IfModule>
Hey,
We’re using LDAP auth with multiple providers in apache. Config looks something like the attached… J Some things are for sure specific to our setup, I’ll leave it to you to filter that out :D
The sample.conf.template is the template for files included by the ‘IncludeOptional ${AUTH_CFGROOT}/*.conf’
With this config you will ALSO need this in gerrit.config:
[auth]
type = HTTP
cookieSecure = true
# when using LDAP on apache
httpHeader = X-LDAP-USER
httpEmailHeader = X-LDAP-MAIL
httpDisplaynameHeader = X-LDAP-CN
httpExternalIdHeader = X-LDAP-DN
Hope that helps J Some more hints are in the comments in the files.
Cheers,
Markus
--
--
To unsubscribe, email
repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
--
To unsubscribe, email repo-discus...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
So I couldn't get reverse proxy with apache working, sadly had to go back to just running direct from gerrit which will be fine for evaluation.
Anyone got any suggestions on how to configure this as it seems the gerrit docs don't include everything you need.
I think one issue could be the locations you configured. In our config we’re requesting proxy auth on /, whereas you hooked auth on /login as far as I saw.
--
--
To unsubscribe, email
repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.