Commit 131de827 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fixes #4168 Using stricter rules for groups even in non-strict mode

parent 8be4786a
......@@ -57,9 +57,10 @@ class group extends simplePlugin
'name' => _('Properties'),
'attrs' => array(
new BaseSelectorAttribute(get_ou('groupRDN')),
new UidAttribute(
new StringAttribute(
_('Name'), _('Name of this group'),
'cn', TRUE
'cn', TRUE,
'', '', (strict_uid_mode() ? '/^[a-z0-9_-]+$/' : '/^[a-z0-9_.-]+$/')
),
new TextAreaAttribute(
_('Description'), _('Short description of this group'),
......
......@@ -181,9 +181,10 @@ class ogroup extends simplePlugin
'name' => _('Properties'),
'attrs' => array(
new BaseSelectorAttribute(get_ou('ogroupRDN')),
new UidAttribute(
new StringAttribute(
_('Name'), _('Name of this group'),
'cn', TRUE
'cn', TRUE,
'', '', (strict_uid_mode() ? '/^[a-z0-9_-]+$/' : '/^[a-z0-9_.-]+$/')
),
new TextAreaAttribute(
_('Description'), _('Short description of this group'),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment