blob: 4b5096189348efdec13ab778ceecc9762b85577a [file] [log] [blame]
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08001= LocalUsernamesToLowerCase
Edwin Kempinb3b0d292011-09-14 14:17:34 +02002
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08003== NAME
Edwin Kempinb3b0d292011-09-14 14:17:34 +02004LocalUsernamesToLowerCase - Convert the local username of every
5account to lower case
6
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08007== SYNOPSIS
Michael Ochmanna8434612016-07-08 10:58:27 +02008[verse]
Yuxuan 'fishy' Wangd85b6872013-11-15 11:47:46 -08009--
Paladox nonea3689802017-09-07 14:03:03 +000010_java_ -jar gerrit.war _LocalUsernamesToLowerCase_
Michael Ochmanna8434612016-07-08 10:58:27 +020011 -d <SITE_PATH>
Yuxuan 'fishy' Wangd85b6872013-11-15 11:47:46 -080012--
Edwin Kempinb3b0d292011-09-14 14:17:34 +020013
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080014== DESCRIPTION
Edwin Kempinb3b0d292011-09-14 14:17:34 +020015Converts the local username for every account to lower case. The
16local username is the username that is used to login into the Gerrit
Edwin Kempine7ae45c2018-09-20 09:57:15 +020017Web UI. The local username is stored a external ID with scheme
18`gerrit`.
19
20[IMPORTANT]
21This program does not modify usernames in the `username` scheme.
Edwin Kempinb3b0d292011-09-14 14:17:34 +020022
23This task is only intended to be run if the configuration parameter
24link:config-gerrit.html#ldap.localUsernameToLowerCase[ldap.localUsernameToLowerCase]
25was set to true to achieve case insensitive LDAP login to the Gerrit
David Pursehousea1d633b2014-05-02 17:21:02 +090026Web UI.
Edwin Kempinb3b0d292011-09-14 14:17:34 +020027
28Please be aware that the conversion of the local usernames to lower
29case can't be undone.
30
31The program will produce errors if there are accounts that have the
32same local username, but with different case. In this case the local
33username for these accounts is not converted to lower case.
34
Edwin Kempin88031032017-07-04 11:46:19 +020035After all usernames have been migrated, the link:pgm-reindex.html[
36reindex] program is automatically invoked to reindex all accounts.
37
38This task cannot run in the background concurrently to the server;
39it must be run by itself.
Edwin Kempinb3b0d292011-09-14 14:17:34 +020040
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080041== OPTIONS
Edwin Kempinb3b0d292011-09-14 14:17:34 +020042
43-d::
Yuxuan 'fishy' Wang77e15082013-12-09 15:43:25 -080044--site-path::
Edwin Kempinb3b0d292011-09-14 14:17:34 +020045 Location of the gerrit.config file, and all other per-site
46 configuration data, supporting libraries and log files.
47
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080048== CONTEXT
Edwin Kempinb3b0d292011-09-14 14:17:34 +020049This command can only be run on a server which has direct
50connectivity to the metadata database.
51
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080052== EXAMPLES
Edwin Kempinb3b0d292011-09-14 14:17:34 +020053To convert the local username of every account to lower case:
54
Michael Ochmannb99feab2016-07-06 14:10:22 +020055----
Edwin Kempinb3b0d292011-09-14 14:17:34 +020056 $ java -jar gerrit.war LocalUsernamesToLowerCase -d site_path
Michael Ochmannb99feab2016-07-06 14:10:22 +020057----
Edwin Kempinb3b0d292011-09-14 14:17:34 +020058
Fredrik Luthandera6bb9512014-03-24 18:59:45 -070059== SEE ALSO
Edwin Kempinb3b0d292011-09-14 14:17:34 +020060
61* Configuration parameter link:config-gerrit.html#ldap.localUsernameToLowerCase[ldap.localUsernameToLowerCase]
62
63GERRIT
64------
65Part of link:index.html[Gerrit Code Review]
Yuxuan 'fishy' Wang99cb68d2013-10-31 17:26:00 -070066
67SEARCHBOX
68---------