Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 1 | = LocalUsernamesToLowerCase |
Edwin Kempin | b3b0d29 | 2011-09-14 14:17:34 +0200 | [diff] [blame] | 2 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 3 | == NAME |
Edwin Kempin | b3b0d29 | 2011-09-14 14:17:34 +0200 | [diff] [blame] | 4 | LocalUsernamesToLowerCase - Convert the local username of every |
| 5 | account to lower case |
| 6 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 7 | == SYNOPSIS |
Michael Ochmann | a843461 | 2016-07-08 10:58:27 +0200 | [diff] [blame] | 8 | [verse] |
Yuxuan 'fishy' Wang | d85b687 | 2013-11-15 11:47:46 -0800 | [diff] [blame] | 9 | -- |
Paladox none | a368980 | 2017-09-07 14:03:03 +0000 | [diff] [blame] | 10 | _java_ -jar gerrit.war _LocalUsernamesToLowerCase_ |
Michael Ochmann | a843461 | 2016-07-08 10:58:27 +0200 | [diff] [blame] | 11 | -d <SITE_PATH> |
Yuxuan 'fishy' Wang | d85b687 | 2013-11-15 11:47:46 -0800 | [diff] [blame] | 12 | -- |
Edwin Kempin | b3b0d29 | 2011-09-14 14:17:34 +0200 | [diff] [blame] | 13 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 14 | == DESCRIPTION |
Edwin Kempin | b3b0d29 | 2011-09-14 14:17:34 +0200 | [diff] [blame] | 15 | Converts the local username for every account to lower case. The |
| 16 | local username is the username that is used to login into the Gerrit |
Edwin Kempin | e7ae45c | 2018-09-20 09:57:15 +0200 | [diff] [blame] | 17 | Web UI. The local username is stored a external ID with scheme |
| 18 | `gerrit`. |
| 19 | |
| 20 | [IMPORTANT] |
| 21 | This program does not modify usernames in the `username` scheme. |
Edwin Kempin | b3b0d29 | 2011-09-14 14:17:34 +0200 | [diff] [blame] | 22 | |
| 23 | This task is only intended to be run if the configuration parameter |
| 24 | link:config-gerrit.html#ldap.localUsernameToLowerCase[ldap.localUsernameToLowerCase] |
| 25 | was set to true to achieve case insensitive LDAP login to the Gerrit |
David Pursehouse | a1d633b | 2014-05-02 17:21:02 +0900 | [diff] [blame] | 26 | Web UI. |
Edwin Kempin | b3b0d29 | 2011-09-14 14:17:34 +0200 | [diff] [blame] | 27 | |
| 28 | Please be aware that the conversion of the local usernames to lower |
| 29 | case can't be undone. |
| 30 | |
| 31 | The program will produce errors if there are accounts that have the |
| 32 | same local username, but with different case. In this case the local |
| 33 | username for these accounts is not converted to lower case. |
| 34 | |
Edwin Kempin | 8803103 | 2017-07-04 11:46:19 +0200 | [diff] [blame] | 35 | After all usernames have been migrated, the link:pgm-reindex.html[ |
| 36 | reindex] program is automatically invoked to reindex all accounts. |
| 37 | |
| 38 | This task cannot run in the background concurrently to the server; |
| 39 | it must be run by itself. |
Edwin Kempin | b3b0d29 | 2011-09-14 14:17:34 +0200 | [diff] [blame] | 40 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 41 | == OPTIONS |
Edwin Kempin | b3b0d29 | 2011-09-14 14:17:34 +0200 | [diff] [blame] | 42 | |
| 43 | -d:: |
Yuxuan 'fishy' Wang | 77e1508 | 2013-12-09 15:43:25 -0800 | [diff] [blame] | 44 | --site-path:: |
Edwin Kempin | b3b0d29 | 2011-09-14 14:17:34 +0200 | [diff] [blame] | 45 | Location of the gerrit.config file, and all other per-site |
| 46 | configuration data, supporting libraries and log files. |
| 47 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 48 | == CONTEXT |
Edwin Kempin | b3b0d29 | 2011-09-14 14:17:34 +0200 | [diff] [blame] | 49 | This command can only be run on a server which has direct |
| 50 | connectivity to the metadata database. |
| 51 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 52 | == EXAMPLES |
Edwin Kempin | b3b0d29 | 2011-09-14 14:17:34 +0200 | [diff] [blame] | 53 | To convert the local username of every account to lower case: |
| 54 | |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 55 | ---- |
Edwin Kempin | b3b0d29 | 2011-09-14 14:17:34 +0200 | [diff] [blame] | 56 | $ java -jar gerrit.war LocalUsernamesToLowerCase -d site_path |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 57 | ---- |
Edwin Kempin | b3b0d29 | 2011-09-14 14:17:34 +0200 | [diff] [blame] | 58 | |
Fredrik Luthander | a6bb951 | 2014-03-24 18:59:45 -0700 | [diff] [blame] | 59 | == SEE ALSO |
Edwin Kempin | b3b0d29 | 2011-09-14 14:17:34 +0200 | [diff] [blame] | 60 | |
| 61 | * Configuration parameter link:config-gerrit.html#ldap.localUsernameToLowerCase[ldap.localUsernameToLowerCase] |
| 62 | |
| 63 | GERRIT |
| 64 | ------ |
| 65 | Part of link:index.html[Gerrit Code Review] |
Yuxuan 'fishy' Wang | 99cb68d | 2013-10-31 17:26:00 -0700 | [diff] [blame] | 66 | |
| 67 | SEARCHBOX |
| 68 | --------- |