If someone has a space in its login (e.g. I login with "john doe") the gerrit integration doesn't work.
This is because Gerrit need hacks to support this config.
Alternatives: use "accountsSshUserName = mail.localpart" in gerrit ldap config.
for provisionning, we might need to create users directly in db:
insert into ACCOUNTS(REGISTERED_ON, FULL_NAME, PREFERRED_EMAIL, INACTIVE, ACCOUNT_ID, MAXIMUM_PAGE_SIZE)
select '2013-05-23 05:56:27.815', 'Joey Star', '
joey.star@cro.enalean.com', 'N', MAX(ACCOUNT_ID)+1, 25
from ACCOUNTS
insert into ACCOUNT_EXTERNAL_IDS (ACCOUNT_ID, EMAIL_ADDRESS, EXTERNAL_ID) values (1000021, '
joey.star@cro.enalean.com', 'gerrit:joey star');
insert into ACCOUNT_EXTERNAL_IDS (ACCOUNT_ID, EXTERNAL_ID) values (1000021, 'username:joey.star');