My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 1096: LDAP account with email address results to Gerrit profile with no email address and no notifications
6 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by hannu.ko...@vincit.fi, Aug 16, 2011
Affected Version: 2.2.1

What steps will reproduce the problem?
1. Configure a new Gerrit installation and have it authenticate using LDAP from Windows Server 2003 active directory (I'd _guess_ that any other LDAP server could be used just as well but I haven't tested)
2. Using Active Directory Users and Computers, add an account to the active directory if there isn't a suitable one already. Make it a member of some group.
3. Set E-Mail field of the account to a valid email address
4. Sign in to Gerrit using the account
5. Open Settings and look at Profile, Identities and Contact Information
6. Through Admin / Projects, create a new group which is an external LDAP group the mentioned account is a member of
6. Create a new project where owner is the created group
7. Through Settings / Watched Projects, enable all email notifications for the created project
8. Configure another account to AD and Gerrit and using that, submit changes to be reviewed

What is the expected output? What do you see instead?
* Expected: account created in step 2 gets email about new changes submitted in step 8.
Actual result: no email is sent

* Expected: in step 5, you see the email address configured in step 3 in Profile, Contact Information and Identities
Actual result: in step 5, you see the email address configured in step 3 in Contact Information and Identities BUT not in Profile. That is, Gerrit can clearly get the email address via LDAP but appears to not set it to profile. And apparently it needs to be there for notifications to work.

To work around this problem, I tried to register the email address that was already Preferred Email in Contact Information as a new email address. That resulted to a profile with the correct email address but no full name. Full name could not be changed in Contact Information. I don't have records about what I did after that but somehow I managed to achieve the proper end result: all information looks correct and notifications work.

Please provide any additional information below.

Gerrit is running in Ubuntu 11.04 x86_64.
Postgresql 8.4.8-0ubuntu0.11.04 is used as the database.
Java is Sun Java 6.26-1natty1
Gerrit is using its built-in servlet container.
Sign in to add a comment

Powered by Google Project Hosting