From bb86f284f8abea6fbd77e8cc861da68a5d2dfc9d Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Fri, 4 May 2018 14:33:10 +0200 Subject: [PATCH] ajout du support de eduPersonScopedAffiliation (fixes #23600) --- .../config.LSobjects.LSsupannPerson.php | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/local/conf/LSobjects/config.LSobjects.LSsupannPerson.php b/local/conf/LSobjects/config.LSobjects.LSsupannPerson.php index 79874f8..d9cf19e 100644 --- a/local/conf/LSobjects/config.LSobjects.LSsupannPerson.php +++ b/local/conf/LSobjects/config.LSobjects.LSsupannPerson.php @@ -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",