Hi Luciano,
I'm trying to migrate from OpenID to LDAP, but i'm unable the old users are unable to login with ldap because they use the same username, so gerrit when i try to login with an old username give me this error:
ERROR com.google.gerrit.server.account.AccountManager : Cannot assign user name
org.h2.jdbc.JdbcBatchUpdateException: Unique index or primary key violation: "PRIMARY_KEY_1 ON PUBLIC.ACCOUNT_EXTERNAL_IDS(EXTERNAL_ID) VALUES ( /* 26 */ 'username:fabiopo' )"; SQL statement:
Any ideas how to solve this problem?
I don't know which is possible to do, maybe one of these changes:
- rename old accounts
- rename accounts with ldap
- use in some way the same account for both openid and ldap accounts
Best regards
Fabio Porcedda