LDAPAccountManager/lam/templates/3rdParty/pla/config/config.php

76 lines
2.1 KiB
PHP
Raw Permalink Normal View History

2011-06-26 10:40:07 +00:00
<?php
app_session_start();
$lamConfig = $_SESSION['config'];
2015-02-23 19:03:53 +00:00
$lamCfgMain = $_SESSION['cfgMain'];
2011-06-26 10:40:07 +00:00
$lamLdap = $_SESSION['ldap'];
$servers = new Datastore();
$servers->newServer('ldap_pla');
$servers->setValue('server','name',null);
$servers->setValue('server','host',$lamConfig->get_ServerURL());
$servers->setValue('server','base',array($lamConfig->get_Suffix('tree')));
$servers->setValue('login','auth_type','config');
2019-08-05 19:56:06 +00:00
$servers->setValue('login','bind_id', $lamLdap->getUserName());
$servers->setValue('login','bind_pass',$lamLdap->getPassword());
2011-06-26 10:40:07 +00:00
if ($lamConfig->getUseTLS() == 'yes') {
$servers->setValue('server','tls',true);
}
$config->custom->commands['cmd'] = array(
'entry_internal_attributes_show' => true,
'entry_refresh' => true,
'oslinks' => false,
'switch_template' => false
);
$config->custom->commands['script'] = array(
'add_attr_form' => true,
'add_oclass_form' => true,
'add_value_form' => true,
'collapse' => true,
'compare' => true,
'compare_form' => true,
'copy' => true,
'copy_form' => true,
'create' => true,
'create_confirm' => true,
'delete' => true,
'delete_attr' => true,
'delete_form' => true,
'draw_tree_node' => true,
'expand' => true,
2018-10-06 17:31:16 +00:00
'export' => false,
'export_form' => false,
'import' => false,
'import_form' => false,
2011-06-26 10:40:07 +00:00
'login' => true,
'logout' => true,
'login_form' => true,
'mass_delete' => true,
'mass_edit' => true,
'mass_update' => true,
'modify_member_form' => true,
'monitor' => false,
'purge_cache' => false,
'query_engine' => true,
'rename' => true,
'rename_form' => true,
'rdelete' => true,
'refresh' => true,
'schema' => false,
'server_info' => false,
'show_cache' => false,
'template_engine' => true,
'update_confirm' => true,
'update' => true
);
$config->custom->appearance['show_schema_link'] = false;
if (!checkIfWriteAccessIsAllowed()) {
$servers->setValue('server','read_only',true);
}
2011-07-21 17:52:34 +00:00
$servers->setValue('unique','attrs',array());
$servers->setValue('server','custom_sys_attrs', array('creatorsName', 'createTimestamp', 'modifiersName',
'modifyTimestamp', 'hasSubordinates', 'pwdChangedTime'));
2012-01-26 18:08:22 +00:00
$config->custom->confirm['copy'] = false;
2015-02-23 19:03:53 +00:00
2011-06-26 10:40:07 +00:00
?>