Chris Cowan via FreeIPA-users wrote:
> Would it be possible to loosen the restrictions on group names to allow a
> forward slash?
>
> We are migrating a large OpenLDAP directory, and they adopted a
> pseudo-hierarchical group naming standard using "/". Alphanumerics, and
> [-_.] were allowed between forward slashes. This was inherited from an older
> system based upon DCE (yeah, I know old stuff ;)
>
> For Plan B, I'm experimenting with different approaches like use '.' instead
> of slash. But, wondering if this would be a simple tweak.
Allowing a / is not POSIX-compliant.
Our regex is based on shadow-utils/libmisc/chkname.c::is_valid_name()
/*
* User/group names must match gnu e-regex:
* [a-zA-Z0-9_.][a-zA-Z0-9_.-]{0,30}[a-zA-Z0-9_.$-]?
*
* as a non-POSIX, extension, allow "$" as the last char for
* sake of Samba 3.x "add machine script"
*
* Also do not allow fully numeric names or just "." or "..".
*/
Unfortunately the only way to change this would be manually update the
IPA code on each server (and future servers) to include slash in the regex.
rob
_______________________________________________
FreeIPA-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedorahosted.org/archives/list/[email protected]
Do not reply to spam, report it:
https://pagure.io/fedora-infrastructure/new_issue