diff --git a/install/share/bootstrap-template.ldif b/install/share/bootstrap-template.ldif index a9b8b3d93..a767a3917 100644 --- a/install/share/bootstrap-template.ldif +++ b/install/share/bootstrap-template.ldif @@ -191,7 +191,7 @@ ipaSearchRecordsLimit: 100 ipaHomesRootDir: /home ipaDefaultLoginShell: /bin/sh ipaDefaultPrimaryGroup: ipausers -ipaMaxUsernameLength: 8 +ipaMaxUsernameLength: 32 ipaPwdExpAdvNotify: 4 ipaGroupObjectClasses: top ipaGroupObjectClasses: groupofnames diff --git a/ipalib/plugins/group.py b/ipalib/plugins/group.py index aec5ce057..1994c010f 100644 --- a/ipalib/plugins/group.py +++ b/ipalib/plugins/group.py @@ -98,9 +98,9 @@ class group(LDAPObject): takes_params = ( Str('cn', - pattern='^[a-zA-Z0-9_.][a-zA-Z0-9_.-]{0,30}[a-zA-Z0-9_.$-]?$', + pattern='^[a-zA-Z0-9_.][a-zA-Z0-9_.-]{0,252}[a-zA-Z0-9_.$-]?$', pattern_errmsg='may only include letters, numbers, _, -, . and $', - maxlength=33, + maxlength=255, cli_name='name', label=_('Group name'), primary_key=True, diff --git a/ipalib/plugins/user.py b/ipalib/plugins/user.py index 726177c7f..405543bbd 100644 --- a/ipalib/plugins/user.py +++ b/ipalib/plugins/user.py @@ -78,9 +78,9 @@ class user(LDAPObject): takes_params = ( Str('uid', - pattern='^[a-zA-Z0-9_.][a-zA-Z0-9_.-]{0,30}[a-zA-Z0-9_.$-]?$', + pattern='^[a-zA-Z0-9_.][a-zA-Z0-9_.-]{0,252}[a-zA-Z0-9_.$-]?$', pattern_errmsg='may only include letters, numbers, _, -, . and $', - maxlength=33, + maxlength=255, cli_name='login', label=_('User login'), primary_key=True,