Commit 0cfbc03a authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fixes #4196 Restricted possible role names

Showing with 5 additions and 4 deletions
+5 -4
...@@ -56,15 +56,16 @@ class roleGeneric extends simplePlugin ...@@ -56,15 +56,16 @@ class roleGeneric extends simplePlugin
'section1' => array( 'section1' => array(
'name' => _('Informations'), 'name' => _('Informations'),
'attrs' => array( 'attrs' => array(
new StringAttribute ( new BaseSelectorAttribute (get_ou('roleRDN')),
_('Name'), _('Name of the role'), new StringAttribute(
'cn', TRUE _('Name'), _('Name of this group'),
'cn', TRUE,
'', '', (strict_uid_mode() ? '/^[a-z0-9_-]+$/' : '/^[a-z0-9_.-]+$/')
), ),
new StringAttribute ( new StringAttribute (
_('Description'), _('Description of the role'), _('Description'), _('Description of the role'),
'description' 'description'
), ),
new BaseSelectorAttribute (get_ou('roleRDN')),
new StringAttribute ( new StringAttribute (
_('Phone number'), _('Phone number'), _('Phone number'), _('Phone number'),
'telephoneNumber' 'telephoneNumber'
......
  • bmortier @bmortier

    mentioned in issue #1382 (closed)

    By bmortier on 2017-09-02T15:24:45 (imported from GitLab)

    ·

    mentioned in issue #1382 (closed)

    By bmortier on 2017-09-02T15:24:45 (imported from GitLab)

    Toggle commit list
Supports Markdown
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