From 7a42bec472536c5586d737b582e767ddb74ac1c2 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Mon, 5 Sep 2016 11:43:38 +0200 Subject: [PATCH] =?UTF-8?q?corrige=20les=20droits=20d'=C3=A9dition=20pour?= =?UTF-8?q?=20self,=20ainsi=20que=20le=20caract=C3=A8re=20requis=20des=20c?= =?UTF-8?q?hamps=20de=20cfdtApplication?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../config.LSobjects.cfdtApplication.php | 3 ++ .../config.LSobjects.cfdtUtilisateur.php | 33 ++++++++++--------- poc-2/ldapsaisie-conf/conf/config.inc.php | 2 +- 3 files changed, 21 insertions(+), 17 deletions(-) diff --git a/poc-2/ldapsaisie-conf/conf/LSobjects/config.LSobjects.cfdtApplication.php b/poc-2/ldapsaisie-conf/conf/LSobjects/config.LSobjects.cfdtApplication.php index 9746941..7045788 100644 --- a/poc-2/ldapsaisie-conf/conf/LSobjects/config.LSobjects.cfdtApplication.php +++ b/poc-2/ldapsaisie-conf/conf/LSobjects/config.LSobjects.cfdtApplication.php @@ -62,6 +62,7 @@ $GLOBALS['LSobjects']['cfdtApplication'] = array ( 'label' => 'Description/Commentaire', 'ldap_type' => 'ascii', 'html_type' => 'textarea', + 'required' => 1, 'multiple' => 1, 'rights' => array( 'self' => 'r', @@ -79,6 +80,7 @@ $GLOBALS['LSobjects']['cfdtApplication'] = array ( 'label' => 'URL', 'ldap_type' => 'ascii', 'html_type' => 'url', + 'required' => 1, 'multiple' => 1, 'rights' => array( 'self' => 'r', @@ -108,6 +110,7 @@ $GLOBALS['LSobjects']['cfdtApplication'] = array ( ), 'required' => 0, 'multiple' => 1, + 'required' => 1, 'validation' => array ( array ( 'basedn' => '%{val}', diff --git a/poc-2/ldapsaisie-conf/conf/LSobjects/config.LSobjects.cfdtUtilisateur.php b/poc-2/ldapsaisie-conf/conf/LSobjects/config.LSobjects.cfdtUtilisateur.php index 2e64027..4cb502c 100644 --- a/poc-2/ldapsaisie-conf/conf/LSobjects/config.LSobjects.cfdtUtilisateur.php +++ b/poc-2/ldapsaisie-conf/conf/LSobjects/config.LSobjects.cfdtUtilisateur.php @@ -21,7 +21,8 @@ $GLOBALS['LSobjects']['cfdtUtilisateur'] = array ( 'cfdtNPA', 'mail', 'cfdtEmail', - 'cfdtIdentifiantCompteMDM', + 'userPassword', + 'cfdtIdentifiantCompteMDM', 'cfdtUserPasswordHistorique', 'description', 'cfdtDateDeCreation', @@ -46,7 +47,7 @@ $GLOBALS['LSobjects']['cfdtUtilisateur'] = array ( 'canEdit_function' => 'canEditGroupRelation', 'canEdit_attribute' => 'member', 'rights' => array( - 'self' => 'r', + 'self' => 'w', 'admin' => 'w', ) ), @@ -62,7 +63,7 @@ $GLOBALS['LSobjects']['cfdtUtilisateur'] = array ( 'canEdit_function' => 'canEditGroupRelation', 'canEdit_attribute' => 'member', 'rights' => array( - 'self' => 'r', + 'self' => 'w', 'admin' => 'w', ) ), @@ -78,7 +79,7 @@ $GLOBALS['LSobjects']['cfdtUtilisateur'] = array ( 'canEdit_function' => 'canEditGroupRelation', 'canEdit_attribute' => 'member', 'rights' => array( - 'self' => 'r', + 'self' => 'w', 'admin' => 'w', ) ), @@ -122,7 +123,7 @@ $GLOBALS['LSobjects']['cfdtUtilisateur'] = array ( ) ), 'rights' => array( - 'self' => 'r', + 'self' => 'w', 'admin' => 'w' ), 'view' => 1, @@ -134,7 +135,7 @@ $GLOBALS['LSobjects']['cfdtUtilisateur'] = array ( /* ----------- end -----------*/ /* ----------- start -----------*/ 'userPassword' => array ( - 'label' => 'Password', + 'label' => 'Mot de passe', 'help_info' => 'Le mot de passe doit faire plus de 8 caractères.', 'ldap_type' => 'password', 'html_type' => 'password', @@ -176,7 +177,7 @@ $GLOBALS['LSobjects']['cfdtUtilisateur'] = array ( 'ldap_type' => 'ascii', 'html_type' => 'text', 'rights' => array( - 'self' => 'r', + 'self' => 'w', 'admin' => 'w', ), 'view' => 1, @@ -194,7 +195,7 @@ $GLOBALS['LSobjects']['cfdtUtilisateur'] = array ( 'html_type' => 'text', 'required' => 1, 'rights' => array( - 'self' => 'r', + 'self' => 'w', 'admin' => 'w' ), 'view' => 1, @@ -211,7 +212,7 @@ $GLOBALS['LSobjects']['cfdtUtilisateur'] = array ( 'html_type' => 'text', 'required' => 1, 'rights' => array( - 'self' => 'r', + 'self' => 'w', 'admin' => 'w' ), 'view' => 1, @@ -232,7 +233,7 @@ $GLOBALS['LSobjects']['cfdtUtilisateur'] = array ( ), ), 'rights' => array( - 'self' => 'r', + 'self' => 'w', 'admin' => 'w' ), 'view' => 1, @@ -253,7 +254,7 @@ $GLOBALS['LSobjects']['cfdtUtilisateur'] = array ( ), ), 'rights' => array( - 'self' => 'r', + 'self' => 'w', 'admin' => 'w' ), 'view' => 1, @@ -270,7 +271,7 @@ $GLOBALS['LSobjects']['cfdtUtilisateur'] = array ( 'html_type' => 'text', 'required' => 1, 'rights' => array( - 'self' => 'r', + 'self' => 'w', 'admin' => 'w' ), 'view' => 1, @@ -287,7 +288,7 @@ $GLOBALS['LSobjects']['cfdtUtilisateur'] = array ( 'html_type' => 'textarea', 'multiple' => 1, 'rights' => array( - 'self' => 'r', + 'self' => 'w', 'admin' => 'w' ), 'view' => 1, @@ -304,7 +305,7 @@ $GLOBALS['LSobjects']['cfdtUtilisateur'] = array ( 'html_type' => 'date', 'multiple' => 1, 'rights' => array( - 'self' => 'r', + 'self' => 'w', 'admin' => 'w' ), 'view' => 1, @@ -321,7 +322,7 @@ $GLOBALS['LSobjects']['cfdtUtilisateur'] = array ( 'html_type' => 'date', 'multiple' => 1, 'rights' => array( - 'self' => 'r', + 'self' => 'w', 'admin' => 'w' ), 'view' => 1, @@ -345,7 +346,7 @@ $GLOBALS['LSobjects']['cfdtUtilisateur'] = array ( ), 'multiple' => 1, 'rights' => array( - 'self' => 'r', + 'self' => 'w', 'admin' => 'w' ), 'view' => 1, diff --git a/poc-2/ldapsaisie-conf/conf/config.inc.php b/poc-2/ldapsaisie-conf/conf/config.inc.php index 54f39d2..8fb4749 100644 --- a/poc-2/ldapsaisie-conf/conf/config.inc.php +++ b/poc-2/ldapsaisie-conf/conf/config.inc.php @@ -39,7 +39,7 @@ $GLOBALS['LSconfig'] = array( 'version' => 3, 'starttls' => false, 'binddn' => 'cn=admin,dc=cfdt,dc=fr', - 'bindpw' => 'FIXME', + 'bindpw' => 'admin', 'basedn' => 'dc=cfdt,dc=fr', 'options' => array(), 'filter' => '(objectClass=*)',