... | ... | @@ -31,3 +31,39 @@ On the next login attempt the email address will be added as value to `"identity |
|
|
This operation can obviously only be executed by a member of the Administrators group. The necessary values for `Cookie` and `X-Gerrit-Auth` can be found by logging in in the Gerrit Web Frontend and inspecting the `PUT` when modifying the own user preferences.
|
|
|
|
|
|
The error only ocurrs for users which had an account a long time ago (before LDAP), not used it for a long time and try logging in now.
|
|
|
|
|
|
|
|
|
## Additional steps if `"identity": "gerrit:[username]"` is missing
|
|
|
|
|
|
|
|
|
```
|
|
|
git clone /opt/docker/review.typo3.org/volumes/git/All-Users.git
|
|
|
cd All-Users
|
|
|
git fetch origin refs/meta/external-ids:refs/remotes/origin/meta/external-ids
|
|
|
git checkout FETCH_HEAD
|
|
|
|
|
|
grep -Rl --exclude-dir=.git ':stiffes"' .
|
|
|
grep -Rl --exclude-dir=.git ':grossberndts"' .
|
|
|
|
|
|
echo -n 'gerrit:stiffes' | sha1sum
|
|
|
2063416e9c63983fd72e2c282feac3e5e1bde2a7
|
|
|
|
|
|
nano ./20/63416e9c63983fd72e2c282feac3e5e1bde2a7
|
|
|
```
|
|
|
|
|
|
Content for ./20/63416e9c63983fd72e2c282feac3e5e1bde2a7
|
|
|
```
|
|
|
[externalId "gerrit:stiffes"]
|
|
|
accountId = 49788
|
|
|
email = johannes.schlier@b13.com
|
|
|
```
|
|
|
|
|
|
```
|
|
|
git add ./20/63416e9c63983fd72e2c282feac3e5e1bde2a7
|
|
|
|
|
|
git commit -m 'Insert externalId for user stiffes'
|
|
|
git push origin HEAD:refs/meta/external-ids
|
|
|
cd /opt/docker/review.typo3.org/volumes/git/All-Users.git
|
|
|
find . -not -user mstucki
|
|
|
chown mstucki: .
|
|
|
``` |
|
|
\ No newline at end of file |