openfrontier / docker-gerrit

Build a Docker image with the Gerrit code review system
Apache License 2.0
197 stars 116 forks source link

LDAP authentication failed #110

Closed ShonInDim closed 6 years ago

ShonInDim commented 6 years ago

Hi ! I trying to run docker-gerrit with LDAP capability this way :

docker run --name gerrit1 -e IGNORE_VERSIONCHECK=1 \

and get error :

[HTTP-81] ERROR com.google.gerrit.httpd.auth.ldap.LdapLoginServlet : LDAP authentication failed java.lang.IllegalArgumentException: No variables in ldap.accountPattern

may be would you give me advice how can I resolve it ?

p.s. I tried to find solution at google gerrit groups and whole of that's options not a valid for me.

ShonInDim commented 6 years ago

I try to add some parameters like : -e LDAP_GROUPMEMBERPATTERN="(sAMAccountName=${username})"
and get another error, seems like it some contradiction on the gerrit side :

[HTTP-82] ERROR com.google.gerrit.server.auth.ldap.LdapRealm : LDAP backend doesn't support: ldap.groupMemberPattern [2018-11-09 15:24:52,124] [HTTP-82] ERROR com.google.gerrit.httpd.auth.ldap.LdapLoginServlet : LDAP authentication failed java.lang.IllegalArgumentException: LDAP backend doesn't support: ldap.groupMemberPattern

So, actually it's not issue of your docker image but rather a question. Might be you already faced some similar ?

thinkernel commented 6 years ago

Hi @ShonInDim Unfortunately, I'v never used AD as the ldap backend. However, I think there are lots of stuffs about this topic on the internet.

ShonInDim commented 6 years ago

However, I think there are lots of stuffs about this topic on the internet.

Sure, even more then I can handle. Anyways, thank you.