ajout du support de eduPersonScopedAffiliation (fixes #23600)

This commit is contained in:
Benjamin Dauvergne 2018-05-04 14:33:10 +02:00
parent 8727cca3ea
commit bb86f284f8
1 changed files with 27 additions and 0 deletions

View File

@ -105,6 +105,7 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
'userPassword',
'supannEtablissement',
'eduPersonAffiliation',
'eduPersonScopedAffiliation',
'eduPersonPrimaryAffiliation',
'description',
'supannParrainDN',
@ -819,6 +820,32 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
),
/* ----------- end -----------*/
/* ----------- start -----------*/
'eduPersonScopedAffiliation' => array (
'label' => 'Profils eduPerson scopés',
'ldap_type' => 'ascii',
'html_type' => 'text',
'check_data' => array (
'regex' => array(
'msg' => "De la forme affiliation@domaine.fr.",
'params' => array(
'regex' => '/^(student|faculty|staff|employee|member|affiliate|alum|researcher|retired|emeritus|teacher|registered-reader)@(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$/',
),
),
),
'multiple' => 1,
'rights' => array(
'self' => 'r',
'admin' => 'w'
),
'view' => 1,
'form' => array (
'modify' => 1,
'create' => 1
)
),
/* ----------- end -----------*/
/* ----------- start -----------*/
'labeledURI' => array (
'label' => "URL du site web personnel",