freeipa/ipatests
Florence Blanc-Renaud 7830ab96cc user or group name: explain the supported format
The commands ipa user-add or ipa group-add validate the
format of the user/group name and display the following
message when it does not conform to the expectations:
invalid 'login': may only include letters, numbers, _, -, . and $

The format is more complex, for instance '1234567' is an invalid
user name but the failure is inconsistent with the error message.
Modify the error message to point to ipa help user/group and add
more details in the help message.

Same change for idoverrideuser and idoverridegroup:
The user/group name must follow these rules:
- cannot contain only numbers
- must start with a letter, a number, _ or .
- may contain letters, numbers, _, ., or -
- may end with a letter, a number, _, ., - or $

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2150217

Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Rafael Guterres Jeffman <rjeffman@redhat.com>
Reviewed-By: Alexander Bokovoy <abbra@users.noreply.github.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
2023-05-23 20:59:03 +02:00
..
azure azure tests: move to fedora 38 2023-05-16 14:37:21 -04:00
man Simplify ipa-run-tests script 2019-07-16 13:23:21 +03:00
prci_definitions Tests: test on f37 and f38 2023-05-11 13:47:46 +02:00
pytest_ipa ipatests: ipa-adtrust-install command test scenarios 2023-04-29 13:55:57 +02:00
test_cmdline pylint: Fix used-before-assignment 2023-01-10 10:11:45 +01:00
test_custodia pylint: disable comparison-of-constants 2023-01-10 10:11:45 +01:00
test_install Unify access to FQDN 2020-10-26 17:11:19 +11:00
test_integration ipatests: wait for sssd-kcm to settle after date change 2023-05-22 08:02:30 +02:00
test_ipaclient ipaclient: do not set TLS CA options in ldap.conf anymore 2022-10-11 09:03:13 +02:00
test_ipalib pylint: Fix unnecessary-lambda-assignment 2023-01-10 10:11:45 +01:00
test_ipaplatform ipatests/test_ipaplatform: Skip test_ipa_version on Debian 2021-11-25 21:02:56 -05:00
test_ipapython tests: Configure DNSResolver as platform agnostic resolver 2023-02-02 07:31:15 +01:00
test_ipaserver pylint: Fix useless-object-inheritance 2023-01-10 10:11:45 +01:00
test_ipatests_plugins ipatests: Don't turn Pytest IPA deprecation warnings into errors 2020-07-29 15:10:00 -04:00
test_webui ipatest: loginscreen: do not use hardcoded password 2023-04-20 12:57:32 +02:00
test_xmlrpc user or group name: explain the supported format 2023-05-23 20:59:03 +02:00
__init__.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
conftest.py pylint: Fix useless-suppression 2022-03-11 13:37:08 -05:00
create_external_ca.py Test external CA with DNS name constraints 2019-08-06 12:39:46 +02:00
data.py Fix more bytes/unicode issues 2015-10-22 18:34:46 +02:00
i18n.py pylint: Fix useless-suppression 2022-03-11 13:37:08 -05:00
ipa-run-tests ipatests: Specify shell implementation 2020-04-21 13:24:50 +02:00
ipa-test-config Rename pytest_plugins to ipatests.pytest_ipa 2018-08-02 17:07:43 +02:00
ipa-test-task ipatests: Fetch sudo rules without time offset 2021-06-03 09:21:45 +03:00
Makefile.am Build: fix distribution of static files for web UI 2016-11-09 13:08:32 +01:00
setup.cfg Port all setup.py to setuptools 2016-10-20 18:43:37 +02:00
setup.py Add Custodia tests 2021-06-16 10:28:17 -04:00
test_util.py pylint: Fix unnecessary-lambda-assignment 2023-01-10 10:11:45 +01:00
util.py pylint: remove unneeded disable=unused-private-member 2023-01-10 10:11:45 +01:00