This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
cfdt/poc-2/ldapsaisie-conf/conf/LSobjects/config.LSobjects.cfdtApplic...

134 lines
3.2 KiB
PHP

<?php
$GLOBALS['LSobjects']['cfdtApplication'] = array (
'objectclass' => array(
'cfdtApplication'
),
'rdn' => 'cn',
'container_dn' => 'ou=applications,ou=groupes',
'label' => 'Application',
'display_name_format' => '%{cn}',
'displayAttrName' => true,
'LSform' => array (
'layout' => array(
'role' => array(
'label' => 'Rôle',
'args' => array(
'cn',
'description',
'labeledURI',
'cfdtAuthorizedRole',
)
)
)
), // fin LSform
// LSsearch
'LSsearch' => array (
'attrs' => array(
'cn',
)
), // fin LSsearch
// Attributs
'attrs' => array (
/* ----------- start -----------*/
'cn' => array (
'label' => 'Identifiant',
'ldap_type' => 'ascii',
'html_type' => 'text',
'required' => 1,
'validation' => array (
array (
'filter' => 'cn=%{val}',
'result' => 0,
'msg' => 'Cet identifiant est déjà utilisé.'
)
),
'rights' => array(
'self' => 'r',
'admin' => 'w'
),
'view' => 1,
'form' => array (
'modify' => 1,
'create' => 1
),
),
/* ----------- end -----------*/
/* ----------- start -----------*/
'description' => array (
'label' => 'Description/Commentaire',
'ldap_type' => 'ascii',
'html_type' => 'textarea',
'required' => 1,
'multiple' => 1,
'rights' => array(
'self' => 'r',
'admin' => 'w'
),
'view' => 1,
'form' => array (
'modify' => 1,
'create' => 1
)
),
/* ----------- end -----------*/
/* ----------- start -----------*/
'labeledURI' => array (
'label' => 'URL',
'ldap_type' => 'ascii',
'html_type' => 'url',
'required' => 1,
'multiple' => 1,
'rights' => array(
'self' => 'r',
'admin' => 'w'
),
'view' => 1,
'form' => array (
'modify' => 1,
'create' => 1
)
),
/* ----------- end -----------*/
/* ----------- start -----------*/
'cfdtAuthorizedRole' => array (
'label' => 'Membres',
'ldap_type' => 'ascii',
'html_type' => 'select_object',
'html_options' => array(
'selectable_object' => array(
'object_type' => 'cfdtRole', // Nom de l'objet à lister
'display_name_format' => '%{cn}', // Spécifie le attributs à lister pour le choix,
// si non définie => utilisation du 'display_name_format'
// de la définition de l'objet
'value_attribute' => 'dn', // Spécifie le attributs dont la valeur sera retournée par
)
),
'required' => 0,
'multiple' => 1,
'required' => 1,
'validation' => array (
array (
'basedn' => '%{val}',
'result' => 1
)
),
'view' => 1,
'rights' => array(
'admin' => 'w',
),
'form' => array (
'modify' => 1,
'create' => 1
)
),
/* ----------- end -----------*/
)
);