LSsupannPerson: ajout du support pour l'attribut pslBadgeCSN

This commit is contained in:
Benjamin Dauvergne 2018-04-27 14:30:28 +02:00
parent 8994881251
commit 8727cca3ea
1 changed files with 32 additions and 2 deletions

View File

@ -47,7 +47,8 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
'objectclass' => array(
'inetOrgPerson',
'eduPerson',
'supannPerson'
'supannPerson',
'pslPerson',
),
'rdn' => 'uid',
'container_dn' => 'ou=people',
@ -155,6 +156,7 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
'postalAddress',
'physicalDeliveryOfficeName',
'supannListeRouge',
'pslBadgeCSN',
)
),
), // fin Layout & fin array_merge
@ -168,7 +170,8 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
'uid',
'mail',
'displayName',
'supannMailPerso'
'supannMailPerso',
'pslBadgeCSN',
),
'params' => array (
'sortBy' => 'displayName',
@ -1327,6 +1330,33 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
),
/* ----------- end -----------*/
/* ----------- start -----------*/
'pslBadgeCSN' => array (
'label' => 'Badge CSN',
'help_info' => 'CSN du badge Mifare du membre PSL',
'ldap_type' => 'ascii',
'html_type' => 'text',
'check_data' => array (
'regex' => array(
'msg' => "Entrez un code CSN valide (chiffres et lettres majuscules).",
'params' => array(
'regex' => '/^[0-9A-F]{8,14}$/',
),
),
),
'multiple' => 0,
'rights' => array(
'self' => 'r',
'admin' => 'w'
),
'view' => 1,
'form' => array (
'modify' => 1,
'create' => 1
)
),
/* ----------- end -----------*/
) // Fin args
);
?>