xianghua
2011/2/2 Xianghua Xiao <xiaoxi...@gmail.com>:
> --
> To unsubscribe, email repo-discuss...@googlegroups.com
> More info at http://groups.google.com/group/repo-discuss?hl=en
>
As Active Directory disallows anonymous binding by default, I had to
use one account to bind to the ldap server in gerrit.config, only
after that others can authenticate via Gerrit's login button using
their own username.
There might be someone in more than one accountBase though.
Xianghua
Yup, that's somewhat normal. Gerrit needs to be able to login and
lookup group membership for someone else in order to evaluate that
other person's current permission set. This happens when a change gets
submitted, for example, Gerrit double checks that the reviewer's
approvals are still valid at submit time. Doing that requires having a
way to query the LDAP directory without depending upon a user logging
in. Hence Gerrit needs its own account.
> There might be someone in more than one accountBase though.
This will be a problem for you. The server refuses to allow such a
duplicated user to login because it doesn't know which DN it should
use to construct group membership. I might be able to be convinced
that a new ldap configuration option to union the DNs and thus the
group membership is reasonable here, but that may be playing with
fire. If an organization has two different accountBases because there
are two ActiveDirectory domains, and each domain has created their own
"bob" user (because each domain has a "Bob" working there and that's
their login) you will be in a world of trouble when both want to use
Gerrit. :-(