Adding LDAP Groups to gerrit's groups

286 views
Skip to first unread message

ThorQue

unread,
Feb 9, 2011, 4:06:27 AM2/9/11
to Repo and Gerrit Discussion
Hello,

I am trying to add a LDAP group to Gerrit. There is one field in the
formular named "Selected External Group". What is the meaning of this?
I have tried to enter the name of the ldap group and the dn. But after
clicking at the search nothing happens. How I can map Gerrit groups
with LDAP groups?

Thorsten

Nicholas Mucci

unread,
Feb 9, 2011, 4:43:07 PM2/9/11
to Repo and Gerrit Discussion
I am assuming you configured your LDAP settings in etc/gerrit.config.

If you start typing the CN of the group you want in the Selected
External Group field and click "Search", Gerrit should find it in LDAP
and display the full DN of the group.

For example, if I type "Engineers" in the Selected External Group
textbox and click search, and Gerrit displays
"CN=Engineers,OU=Roles,OU=Groups,DC=ad,DC=foobar,DC=com" above the
textbox.

-Nick

ThorQue

unread,
Feb 11, 2011, 3:36:07 AM2/11/11
to Repo and Gerrit Discussion
Yes this works. But what is the intention of this feature. I have
added a group reviewer in ldap and add 2 people to it. Then I have
added a LDAP-group in gerrit. The external group points to the dn of
the ldap-group reviewer.

Now i log in with one of the both users (first time login). I have
expected that this user automatically member of this gerrit ldap
group. But it isn't.

Thorsten

Shawn Pearce

unread,
Feb 11, 2011, 11:14:39 PM2/11/11
to ThorQue, Repo and Gerrit Discussion
On Fri, Feb 11, 2011 at 03:36, ThorQue <thorste...@googlemail.com> wrote:
> Yes this works. But what is the intention of this feature. I have
> added a group reviewer in ldap and add 2 people to it. Then I have
> added a LDAP-group in gerrit. The external group points to the dn of
> the ldap-group reviewer.
>
> Now i log in with one of the both users (first time login). I have
> expected that this user automatically member of this gerrit ldap
> group. But it isn't.

It should be working.

Is your Gerrit group still pointing to the LDAP group DN? Is the
Gerrit group actually set to LDAP?

This is the first time I have heard of this feature not working for
someone. :-(

Reply all
Reply to author
Forward
0 new messages