From 2711732c12b87021ddff7b9dd960876d18da7479 Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Thu, 2 Dec 2010 17:43:53 +0000 Subject: [PATCH] move ldap example settings to defaults.inc.php git-svn-id: http://www.observium.org/svn/observer/trunk@1751 61d68cd4-352d-0410-923a-c4978735b2b8 --- config.php.default | 7 ------- includes/defaults.inc.php | 5 +++++ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/config.php.default b/config.php.default index 6293ebd587..9064d389df 100755 --- a/config.php.default +++ b/config.php.default @@ -32,13 +32,6 @@ $config['snmp']['internal'] = false; # Enable php_snmp functions to make g $config['auth_mechanism'] = "mysql"; # default, other options: ldap, http-auth #$config['http_auth_guest'] = "guest"; # remember to configure this user if you use http-auth -# LDAP module configuration -#$config['auth_ldap_server'] = "ldap.yourserver.com"; -#$config['auth_ldap_port'] = 389; -#$config['auth_ldap_prefix'] = "uid="; -#$config['auth_ldap_suffix'] = ",ou=People,dc=example,dc=com"; -#$config['auth_ldap_group'] = "cn=observium,ou=groups,dc=example,dc=com"; - ### List of networks to allow scanning-based discovery $config['nets'][] = "172.22.0.0/16"; $config['nets'][] = "192.168.0.0/24"; diff --git a/includes/defaults.inc.php b/includes/defaults.inc.php index 9e0bc5ef77..bf96a6b4b9 100644 --- a/includes/defaults.inc.php +++ b/includes/defaults.inc.php @@ -214,6 +214,11 @@ $config['syslog_filter'] = array("last message repeated", "Connection from UDP: ### LDAP Authentication $config['auth_ldap_version'] = 3; # v2 or v3 +$config['auth_ldap_server'] = "ldap.yourserver.com"; +$config['auth_ldap_port'] = 389; +$config['auth_ldap_prefix'] = "uid="; +$config['auth_ldap_suffix'] = ",ou=People,dc=example,dc=com"; +$config['auth_ldap_group'] = "cn=observium,ou=groups,dc=example,dc=com"; ### Hardcoded ASN descriptions $config['astext'][65333] = "Cymru Bogon Feed";