freeipa/ipaserver/plugins
Florence Blanc-Renaud 7b0ad59fea 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-22 20:22:59 +02:00
..
__init__.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
aci.py pylint: Fix unused-variable 2022-03-11 13:37:08 -05:00
automember.py pylint: Fix consider-using-in 2022-03-11 13:37:08 -05:00
automount.py pylint: fix duplicate-value 2023-01-10 08:30:58 +01:00
baseldap.py ipaserver: deepcopy objectclasses list from IPA config 2023-03-23 10:12:44 +01:00
baseuser.py user or group name: explain the supported format 2023-05-22 20:22:59 +02:00
batch.py pylint: Fix useless-suppression 2022-03-11 13:37:08 -05:00
ca.py Add support for Random Serial Numbers v3 2022-06-09 08:35:15 +02:00
caacl.py ipaldap: fix conversion from boolean OID to Python 2022-06-10 09:25:27 +02:00
cert.py cert_find: fix call with --all 2023-04-28 10:12:46 -04:00
certmap.py ipaldap: fix conversion from boolean OID to Python 2022-06-10 09:25:27 +02:00
certprofile.py Change FreeIPA references to IPA and Identity Management 2021-01-21 13:51:45 +01:00
config.py external-idp: add support to manage external IdP objects 2022-05-10 15:52:41 +03:00
delegation.py Fix errors found by Pylint-2.4.3 2019-10-21 18:01:32 +11:00
dns.py Set 'idnssoaserial' to deprecated 2022-09-29 14:23:44 +02:00
dnsserver.py dnsserver.py: dnsserver-find no longer returns internal server error 2017-06-15 13:51:06 +02:00
dogtag.py Return the <Message> value cert-find failures from the CA 2023-05-16 13:09:56 +02:00
domainlevel.py Use api.env.container_masters 2019-03-28 00:21:00 +01:00
group.py user or group name: explain the supported format 2023-05-22 20:22:59 +02:00
hbac.py ipalib: move server-side plugins to ipaserver 2016-06-03 09:00:34 +02:00
hbacrule.py ipaldap: fix conversion from boolean OID to Python 2022-06-10 09:25:27 +02:00
hbacsvc.py remove trailing newlines form python modules 2016-10-12 10:38:52 +02:00
hbacsvcgroup.py remove trailing newlines form python modules 2016-10-12 10:38:52 +02:00
hbactest.py pylint: Fix useless-suppression 2022-03-11 13:37:08 -05:00
host.py IPA API changes to support RBCD 2023-04-05 14:55:22 -04:00
hostgroup.py Allow rename of a host group 2020-03-31 09:21:37 +03:00
idp.py external-idp: change idp server name to reference name 2023-03-03 05:08:02 +01:00
idrange.py pylint: Fix unnecessary-lambda-assignment 2023-01-10 08:30:58 +01:00
idviews.py user or group name: explain the supported format 2023-05-22 20:22:59 +02:00
internal.py automember-rebuild: add a notice about high CPU usage 2023-02-02 07:33:36 +01:00
join.py Delay import of psutil to avoid AVC 2020-09-23 14:49:15 +02:00
krbtpolicy.py external-idp: add support to manage external IdP objects 2022-05-10 15:52:41 +03:00
ldap2.py Add switch for LDAP cache debug output 2022-06-14 15:56:21 +03:00
location.py Fix div-by-zero when svc weight is 0 for all masters in location 2020-02-26 13:42:10 -05:00
migration.py ipaldap: fix conversion from boolean OID to Python 2022-06-10 09:25:27 +02:00
misc.py Make env and plugins commands local again 2016-12-02 13:00:06 +01:00
netgroup.py LGTM: raise handle_not_found() 2018-01-09 07:53:28 +01:00
otp.py ipalib: move server-side plugins to ipaserver 2016-06-03 09:00:34 +02:00
otpconfig.py ipalib: move server-side plugins to ipaserver 2016-06-03 09:00:34 +02:00
otptoken.py Change FreeIPA references to IPA and Identity Management 2021-01-21 13:51:45 +01:00
passwd.py ipa passwd: make help for --otp option clearer 2021-03-29 10:07:38 +03:00
permission.py Warn for permissions with read/write/search/compare and no attrs 2022-07-15 16:59:15 +02:00
ping.py ipalib: move server-side plugins to ipaserver 2016-06-03 09:00:34 +02:00
pkinit.py Don't fail if config-show does not return servers 2019-03-28 17:57:58 +01:00
privilege.py pylint: Fix useless-suppression 2022-03-11 13:37:08 -05:00
pwpolicy.py Fix upper bound of password policy grace limit 2022-09-20 14:51:56 -04:00
rabase.py CRL generation master: new utility to enable|disable 2019-03-14 09:39:55 +01:00
radiusproxy.py radiusproxy: add permission for reading radius proxy servers 2018-11-13 12:40:44 +01:00
realmdomains.py Fix pylint 2.0 return-related violations 2018-07-11 10:11:38 +02:00
role.py Support adding user ID overrides as group and role members 2020-06-08 12:39:34 -04:00
schema.py pylint: Fix modified-iterating-list 2023-01-10 08:30:58 +01:00
selfservice.py Fix errors found by Pylint-2.4.3 2019-10-21 18:01:32 +11:00
selinuxusermap.py ipaldap: fix conversion from boolean OID to Python 2022-06-10 09:25:27 +02:00
server.py Remove duplicate _() in the error path 2021-11-23 10:27:45 +01:00
serverrole.py servrole: takes_params must be a tuple 2020-04-27 10:15:58 +02:00
serverroles.py Improve config-show to show hidden servers 2019-03-28 17:57:58 +01:00
service.py IPA API changes to support RBCD 2023-04-05 14:55:22 -04:00
servicedelegation.py service delegation: allow to add and remove host principals 2020-05-14 21:47:17 +03:00
session.py Fix some untranslatable commands in Web UI API Browser 2018-06-21 18:42:05 +02:00
stageuser.py user or group name: explain the supported format 2023-05-22 20:22:59 +02:00
subid.py subid: subid-match: display the owner's ID not DN 2021-09-02 20:51:56 +02:00
sudo.py ipalib: move server-side plugins to ipaserver 2016-06-03 09:00:34 +02:00
sudocmd.py sudocmd: ensure command doesn't contain trailing dot before adding it 2021-02-15 09:59:41 +02:00
sudocmdgroup.py remove trailing newlines form python modules 2016-10-12 10:38:52 +02:00
sudorule.py pylint: fix duplicate-value 2023-01-10 08:30:58 +01:00
topology.py domainlevel-get: fix various issues when running as non-admin 2019-03-25 09:48:31 +01:00
trust.py trust-add: handle missing msSFU30MaxGidNumber 2023-01-25 15:23:29 +01:00
user.py user or group name: explain the supported format 2023-05-22 20:22:59 +02:00
vault.py Vault: fix interoperability issues with older RHEL systems 2022-11-21 10:41:10 -05:00
virtual.py extract virtual operation access check subroutine 2020-06-30 11:47:29 +02:00
whoami.py whoami.py: Type error when running tests 2017-07-07 14:44:42 +02:00
xmlserver.py Add endpoint for serving i18n requests 2018-07-17 15:32:28 -04:00