Hey tomz,
you can skip the --config
option, this is not meant to be the Mattermost server’s config.json
, but a local configuration file for mmctl
where you can store settings for it.
Can you share the output of:
# mmctl --local config get PasswordSettings
{
"MinimumLength": 8,
"Lowercase": false,
"Number": false,
"Uppercase": false,
"Symbol": false
}
And compare the rules there with the password you tried to set? I can reproduce this error message only when I break the configured rules for the new password (in my example below, it’s too short).
With regards to the error message being in German: This happens when the LocalizationSettings.DefaultClientLocale
is set to German. mmctl
is also just a client and when it establishes a session, it inherits the locale setting:
# mmctl --local config get LocalizationSettings
{
"DefaultServerLocale": "en",
"DefaultClientLocale": "de",
"AvailableLocales": ""
}
# mmctl --local user create --email asdf@asdf.com --username asdf --password asdf
Error: Unable to create user. Error: : Der Login schlug fehl, weil das Passwort ungültig ist., invalid password
A server restart is necessary after changing the DefaultClientLocale
, JFYI.