mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-09-26 11:29:12 +02:00
* include/functions_menu.php, include/functions_html.php, include/functions_events.php, include/functions_messages.php, include/functions_modules.php, include/functions_exportserver.php, include/functions_reporting.php, include/functions_filemanager.php, include/pchart_graph.php, include/pandora_graph.php, include/auth/dev.php, include/auth/ldap.php, include/auth/mysql.php, include/config.inc.php, include/functions_networkmap.php, include/functions_servers.php, include/FusionCharts/FusionCharts_Gen.php, include/FusionCharts/FusionCharts.php, include/functions_network_profiles.php, include/gettext.php, include/functions_network_components.php, include/functions_visual_map.php, include/fgraph2.php, include/Image/image_functions.php, include/functions_config.php, include/help/en/help_plugin_parameters.php, include/help/en/help_snmpcommunity.php, include/help/en/help_wmiquery.php, include/help/en/help_postprocess.php, include/help/en/help_prediction_source_module.php, include/help/en/help_date_format.php, include/help/en/help_recontask.php, include/help/en/help_alert-matches.php, include/help/en/help_tcp_send.php, include/help/en/help_wmifield.php, include/help/en/help_duplicateconfig.php, include/help/en/help_agent_status.php, include/help/en/help_manage_alerts.php, include/help/en/help_wmikey.php, include/help/en/help_alert_type.php, include/help/en/help_network_component.php, include/help/en/help_time_stamp-comparation.php, include/help/en/help_eventview.php, include/help/en/help_timesource.php, include/help/en/help_alert_validation.php, include/help/en/help_map_builder.php, include/help/en/help_alert_recovery.php, include/help/en/help_module_type.php, include/help/en/help_planned_downtime.php, include/help/en/help_serverlag.php, include/help/en/help_alerts.php, include/help/en/help_snmpwalk.php, include/help/en/help_module_definition.php, include/help/en/help_plugin_definition.php, include/help/en/help_wminamespace.php, include/help/en/help_snmpoid.php include/help/en/help_manageconfig.php, include/help/es/help_alert_validation.php, include/help/es/help_plugin_parameters.php, include/help/es/help_snmpcommunity.php, include/help/es/help_wmiquery.php, include/help/es/help_map_builder.php, include/help/es/help_postprocess.php, include/help/es/help_date_format.php, include/help/es/help_alert_recovery.php, include/help/es/help_prediction_source_module.php, include/help/es/help_module_type.php, include/help/es/help_planned_downtime.php, include/help/es/help_alert-matches.php, include/help/es/help_recontask.php, include/help/es/help_alerts.php, include/help/es/help_serverlag.php, include/help/es/help_snmpwalk.php, include/help/es/help_module_definition.php, include/help/es/help_tcp_send.php, include/help/es/help_duplicateconfig.php, include/help/es/help_wmifield.php, include/help/es/help_manage_alerts.php, include/help/es/help_wmikey.php, include/help/es/help_plugin_definition.php, include/help/es/help_alert_type.php, include/help/es/help_snmpoid.php, include/help/es/help_wminamespace.php, include/help/es/help_network_component.php, include/help/es/help_time_stamp-comparation.php, include/help/es/help_manageconfig.php, include/help/es/help_timesource.php, include/config_process.php, include/functions_ui.php, include/htmlawed.php, include/functions_custom_graphs.php, include/fgraph.php, include/functions_incidents.php, include/functions.php, include/functions_agents.php, include/functions_db.php, include/functions_themes.php, include/streams.php, include/functions_fsgraph.php, include/functions_alerts.php, include/functions_reports.php, include/functions_extensions.php, include/functions_ui_renders.php: change comments blocks for delete the warnings to construct phpDoc Files, give a struct and order in the phpDoc files. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1881 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
117 lines
4.7 KiB
PHP
117 lines
4.7 KiB
PHP
<?php
|
|
// Pandora FMS - http://pandorafms.com
|
|
// ==================================================
|
|
// Copyright (c) 2005-2009 Artica Soluciones Tecnologicas
|
|
//
|
|
// This program is free software; you can redistribute it and/or
|
|
// modify it under the terms of the GNU Lesser General Public License
|
|
// as published by the Free Software Foundation; version 2
|
|
//
|
|
// 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.
|
|
|
|
/**
|
|
* @package Include
|
|
*/
|
|
|
|
// Default values
|
|
|
|
// $config["dbname"]="pandora";
|
|
// $config["dbuser"]="pandora";
|
|
// $config["dbpass"]="pandora";
|
|
// $config["dbhost"]="localhost";
|
|
|
|
// This is used for reporting, please add "/" character at the end
|
|
// $config["homedir"]="/var/www/pandora_console/";
|
|
// $config["homeurl"]="/pandora_console/";
|
|
|
|
// $config["auth"]["scheme"] = "mysql";
|
|
|
|
///*************************** Start LDAP Config *****************************/
|
|
// Only use the following if you have LDAP. Unnecessary for built-in
|
|
//
|
|
//Name or address of the LDAP server
|
|
// For SSL (not TLS) use 'ldaps://localhost'
|
|
//$config["auth"]["ldap_server"] = 'ldap://rcbi.rochester.edu';
|
|
//
|
|
//OPTIONAL: Port LDAP listens on (usually 389). Some configurations require you to specify this no matter what
|
|
//$config["auth"]["ldap_port"] = 389;
|
|
//
|
|
//OPTIONAL: Use TLS for the connection (not the same as ldaps://)
|
|
//$config["auth"]["ldap_start_tls"] = true;
|
|
//
|
|
//OPTIONAL: Protocol version to use to connect to your server (3 for most installations)
|
|
//$config["auth"]["ldap_version"] = 0;
|
|
//
|
|
// base DN to search for user information (full dn)
|
|
// This is based on Mac OS X OpenDirectory, change accordingly
|
|
//$config["auth"]["ldap_base_dn"] = 'cn=users,dc=rcbi,dc=rochester,dc=edu';
|
|
//
|
|
// The ldap attribute used to find a user (login).
|
|
// E.g., if you use cn, your login might be "Jane Smith" -- untested!
|
|
// if you use uid, your login might be "jsmith"
|
|
//$config["auth"]["ldap_login_attr"] = 'uid';
|
|
//
|
|
// OPTIONAL: Account used to connect (bind) to the server and SEARCH for information.
|
|
// This user must have the correct rights to perform search on objects
|
|
// By default the search will be made anonymous.
|
|
// *** We do NOT recommend storing the root LDAP account or any type of admin/living person info here ***
|
|
//$config["auth"]["ldap_admin_dn"] = ''; // user DN
|
|
//$config["auth"]["ldap_admin_pwd"] = ''; // user password
|
|
//
|
|
//------ Admin Group Settings ------//
|
|
//
|
|
// A group name (complete DN) to find users with admin rights
|
|
//$config["auth"]["ldap_admin_group_name"] = 'cn=pandora_admins,cn=groups,dc=rcbi,dc=rochester,dc=edu';
|
|
//
|
|
// What type of group do we want (posixgroup, groupofnames, groupofuniquenames)
|
|
//$config["auth"]["ldap_admin_group_type"] = 'posixgroup';
|
|
//
|
|
// The LDAP attribute used to store member of a group
|
|
//$config["auth"]["ldap_admin_group_attr"] = 'memberuid';
|
|
//
|
|
//------ LDAP Filter Settings ------//
|
|
//
|
|
// LDAP filter used to limit search results and login authentication
|
|
//$config["auth"]["ldap_user_filter"] = '(&(objectclass=person)(!(sn=99)))';
|
|
//
|
|
// Attributes to fetch from LDAP and corresponding user variables in the
|
|
// application. Do change according to your LDAP Schema
|
|
//$config["auth"]["ldap_user_attr"] = array (
|
|
// //Pandora attribute // LDAP attribute //Explanation
|
|
// 'id_user' => 'uid', //login
|
|
// 'lastname' => 'sn', //last (sur) name
|
|
// 'firstname' => 'givenname', //first (given) name
|
|
// 'fullname' => 'cn', //full (common) name
|
|
// 'comments' => 'description', //comments - you can set this to anything
|
|
// 'last_contact' => 'lastlogin', //last login utimestamp or don't define
|
|
// 'email' => 'mail', //email - not necessary will default to empty
|
|
// 'phone' => 'phone', //phone
|
|
// 'middlename' => 'mn', //not yet used except for representational purposes
|
|
// 'registered' => 'created' //created utimestamp or don't define
|
|
//);
|
|
///* You can uncomment the following only if you understand what it implies
|
|
//
|
|
// $config["auth"]["create_user_undefined"] = false; //Create a user with minimal rights if the user is in your authentication scheme but not in Pandora
|
|
//*/
|
|
///*************************** End LDAP Config *****************************/
|
|
|
|
/**
|
|
* Do not display any ERROR
|
|
*/
|
|
error_reporting(E_ALL);
|
|
|
|
|
|
|
|
// Display ALL errors
|
|
// error_reporting(E_ERROR);
|
|
|
|
// This is directory where placed "/attachment" directory, to upload files stores.
|
|
// This MUST be writtable by http server user, and should be in pandora root.
|
|
// By default, Pandora adds /attachment to this, so by default is the pandora console home dir
|
|
|
|
include ("config_process.php");
|
|
?>
|