2008-02-05 17:11:21 +01:00
|
|
|
<?php
|
|
|
|
/*******************************************************************************
|
|
|
|
* Copyright (C) 2007 Easter-eggs
|
2021-04-13 18:04:19 +02:00
|
|
|
* https://ldapsaisie.org
|
2008-02-05 17:11:21 +01:00
|
|
|
*
|
|
|
|
* Author: See AUTHORS file in top-level directory.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License version 2
|
|
|
|
* as published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
|
|
|
|
******************************************************************************/
|
|
|
|
|
2009-04-17 12:39:03 +02:00
|
|
|
$GLOBALS['LSobjects']['LScompany'] = array (
|
2008-02-05 17:11:21 +01:00
|
|
|
'objectclass' => array(
|
2008-08-06 19:04:03 +02:00
|
|
|
'top',
|
2020-11-25 15:59:36 +01:00
|
|
|
'lscompany',
|
2008-02-05 17:11:21 +01:00
|
|
|
),
|
2008-08-06 19:04:03 +02:00
|
|
|
'rdn' => 'ou',
|
2008-02-05 17:11:21 +01:00
|
|
|
'container_dn' => 'ou=companies',
|
2009-01-07 20:24:14 +01:00
|
|
|
'display_name_format' => '%{ou}',
|
2009-03-20 01:49:37 +01:00
|
|
|
'label' => 'Companies',
|
2020-04-29 15:54:21 +02:00
|
|
|
|
2020-09-21 15:47:07 +02:00
|
|
|
'customActions' => array (
|
|
|
|
'showTechInfo' => array (
|
|
|
|
'function' => 'showTechInfo',
|
|
|
|
'label' => 'Show technical information',
|
|
|
|
'hideLabel' => True,
|
|
|
|
'noConfirmation' => true,
|
|
|
|
'disableOnSuccessMsg' => true,
|
|
|
|
'icon' => 'tech_info',
|
|
|
|
'rights' => array (
|
2020-11-25 15:59:36 +01:00
|
|
|
'admin',
|
2020-09-21 15:47:07 +02:00
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
2008-02-05 17:11:21 +01:00
|
|
|
'attrs' => array (
|
2020-04-29 15:54:21 +02:00
|
|
|
|
2008-11-12 17:57:40 +01:00
|
|
|
/* ----------- start -----------*/
|
2008-08-06 19:04:03 +02:00
|
|
|
'ou' => array (
|
2009-03-19 18:42:51 +01:00
|
|
|
'label' => 'Name',
|
2008-02-05 17:11:21 +01:00
|
|
|
'ldap_type' => 'ascii',
|
|
|
|
'html_type' => 'text',
|
|
|
|
'required' => 1,
|
|
|
|
'check_data' => array (
|
2020-11-25 15:59:36 +01:00
|
|
|
'alphanumeric' => NULL,
|
2008-02-05 17:11:21 +01:00
|
|
|
),
|
2008-02-08 18:39:24 +01:00
|
|
|
'view' => 1,
|
|
|
|
'rights' => array(
|
|
|
|
'user' => 'r',
|
2020-11-25 15:59:36 +01:00
|
|
|
'admin' => 'w',
|
2008-02-05 17:11:21 +01:00
|
|
|
),
|
|
|
|
'form' => array (
|
2008-08-06 19:04:03 +02:00
|
|
|
'modify' => 0,
|
2020-11-25 15:59:36 +01:00
|
|
|
'create' => 1,
|
|
|
|
),
|
2008-02-05 17:11:21 +01:00
|
|
|
),
|
2008-11-12 17:57:40 +01:00
|
|
|
/* ----------- end -----------*/
|
2020-04-29 15:54:21 +02:00
|
|
|
|
2008-11-12 17:57:40 +01:00
|
|
|
/* ----------- start -----------*/
|
2008-08-06 19:04:03 +02:00
|
|
|
'description' => array (
|
2009-03-19 18:42:51 +01:00
|
|
|
'label' => 'Description',
|
2008-02-05 17:11:21 +01:00
|
|
|
'ldap_type' => 'ascii',
|
2008-08-06 19:04:03 +02:00
|
|
|
'html_type' => 'textarea',
|
|
|
|
'required' => 0,
|
2008-02-08 18:39:24 +01:00
|
|
|
'rights' => array(
|
|
|
|
'user' => 'r',
|
2008-11-12 17:57:40 +01:00
|
|
|
'admin' => 'w',
|
2020-11-25 15:59:36 +01:00
|
|
|
'godfather' => 'w',
|
2008-11-12 17:57:40 +01:00
|
|
|
),
|
|
|
|
'view' => 1,
|
|
|
|
'form' => array (
|
|
|
|
'modify' => 1,
|
2020-11-25 15:59:36 +01:00
|
|
|
'create' => 1,
|
|
|
|
),
|
2008-11-12 17:57:40 +01:00
|
|
|
),
|
|
|
|
/* ----------- end -----------*/
|
2020-04-29 15:54:21 +02:00
|
|
|
|
2008-11-12 17:57:40 +01:00
|
|
|
/* ----------- start -----------*/
|
|
|
|
'lsGodfatherDn' => array (
|
2009-03-19 18:42:51 +01:00
|
|
|
'label' => 'Accountable(s)',
|
2008-11-12 17:57:40 +01:00
|
|
|
'ldap_type' => 'ascii',
|
|
|
|
'html_type' => 'select_object',
|
2009-01-28 09:13:36 +01:00
|
|
|
'html_options' => array(
|
|
|
|
'selectable_object' => array(
|
2009-04-17 12:39:03 +02:00
|
|
|
'object_type' => 'LSpeople',
|
2020-11-25 15:59:36 +01:00
|
|
|
'value_attribute' => 'dn',
|
|
|
|
),
|
2008-11-12 17:57:40 +01:00
|
|
|
),
|
|
|
|
'validation' => array (
|
|
|
|
array (
|
|
|
|
'basedn' => '%{val}',
|
|
|
|
'result' => 1,
|
2020-11-25 15:59:36 +01:00
|
|
|
'msg' => "One or several of these users don't exist.",
|
|
|
|
),
|
2008-11-12 17:57:40 +01:00
|
|
|
),
|
|
|
|
'multiple' => 1,
|
|
|
|
'rights' => array(
|
2020-11-25 15:59:36 +01:00
|
|
|
'admin' => 'w',
|
2008-02-05 17:11:21 +01:00
|
|
|
),
|
2008-02-08 18:39:24 +01:00
|
|
|
'view' => 1,
|
2008-02-05 17:11:21 +01:00
|
|
|
'form' => array (
|
2008-02-12 18:59:44 +01:00
|
|
|
'modify' => 1,
|
2020-11-25 15:59:36 +01:00
|
|
|
'create' => 1,
|
|
|
|
),
|
|
|
|
),
|
2008-11-12 17:57:40 +01:00
|
|
|
/* ----------- end -----------*/
|
2020-11-25 15:59:36 +01:00
|
|
|
),
|
2008-02-05 17:11:21 +01:00
|
|
|
);
|