On Mon, Feb 25, 2013 at 4:16 PM, Brian S <
brian...@gmail.com> wrote:
>
>
> On Monday, February 25, 2013 6:42:40 PM UTC-5, Brandon Casey wrote:
>>
>> On Mon, Feb 25, 2013 at 3:29 PM, Brian S <
brian...@gmail.com> wrote:
>> > On Monday, February 25, 2013 5:24:18 PM UTC-5, Brandon Casey wrote:
>>
>> >> One thing to think about is that the config file parsing consumes one
>> >> level of backslashes. So if the name of the account is
>> >> "domain\username", you need to use two backslashes like
>> >> "domain\\username".
>> >>
>> >> e.g.
>> >>
>> >> [ldap]
>> >> username = domain\\username
>> >>
>>
>> > BindUser has domain\BindUser in my config file.
>>
>> So, are you saying your gerrit.config file looks like this:
>>
>> [ldap]
>> username = domain\BindUser
>>
>> or like this:
>>
>> [ldap]
>> username = domain\\BindUser
>>
>> ?
>>
>> -Brandon
>
>
> My gerrit.config file looks like this
<snip>
> and if I use
> [ldap]
> username = domain\\BindUser
This one is correct.
> I get error 52e as follows:
>
> [2013-02-25 19:08:27,510] ERROR com.google.gerrit.server.auth.ldap.LdapRealm
> : Cannot query LDAP to autenticate user
> javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308:
> LdapErr: DSID-0C090334, comment: AcceptSecurityContext error, data 52e,
> vece]
I would again suspect that this is related to the username/password
used to bind to the LDAP server, not to the user that is
authenticating through the web ui. I'd double-check the value
assigned to ldap.password in your gerrit.config or secure.config.
Not necessarily related to the above (*yet*), but your account base
looks funny to me:
cn=Users,dc=company,dc=corp
I've more commonly seen that look like:
ou=Users,dc=company,dc=corp
So, additionally, you may want to check that your accountBase setting
has the same elements that exist on the dn (or distinguishedName) line
returned by your ldapsearch query.
-Brandon