### validate.php ######################################################## ==================================== Component | Version --------- | ------- LibreNMS | 1.47 DB Schema | 275 PHP | 7.2.14 MySQL | 5.6.42-log RRDTool | 1.7.0 SNMP | NET-SNMP 5.7.3 ==================================== [[32mOK[0m] Installed from package; no Composer required [[0;32mOK[0m] Database connection successful [[1;31mFAIL[0m] MySQL Database collation is wrong: utf8 utf8_general_ci [[1;34mFIX[0m]: [1;34mCheck https://t.libren.ms/-zdwk for info on how to fix.[0m [[0;32mOK[0m] Database schema correct [[1;33mWARN[0m] You have not added any devices yet. [[1;34mFIX[0m]: [1;34mYou can add a device in the webui or with ./addhost.php[0m [[1;33mWARN[0m] fping FAILURES can be ignored if running LibreNMS in a jail without ::1. You may want to test it manually: fping ::1 [[1;31mFAIL[0m] fping could not be executed. fping must have CAP_NET_RAW capability (getcap) or suid. Selinux exlusions may be required. (This account is currently not available.) [[1;33mWARN[0m] fping FAILURES can be ignored if running LibreNMS in a jail without ::1. You may want to test it manually: fping ::1 [[1;31mFAIL[0m] fping6 could not be executed. fping6 must have CAP_NET_RAW capability (getcap) or suid. Selinux exlusions may be required. (This account is currently not available.) ### auth_test.php ######################################################## Authentication Method: ldap Password: Authenticate user spencerb: [0;32mAUTH SUCCESS [0m User (10003): username => spencerb realname => spencerb user_id => 10003 email => spencerb@example.net level => 10 Groups: cn=admin,ou=Groups,dc=example,dc=net; cn=pfy,ou=Groups,dc=example,dc=net; cn=support,ou=Groups,dc=example,dc=net; cn=network,ou=Groups,dc=example,dc=net; cn=elevated,ou=Groups,dc=example,dc=net; cn=sysadmin,ou=Groups,dc=example,dc=net *************************** 1. row *************************** user_id: 1 auth_type: mysql auth_id: 1 username: a password: $2y$10$bYOfmH1DdrRE3DgIgfJQA.cg.Is2v7HjZXwift832QT4Pv0lZC.86 realname: email: a@a descr: level: 10 can_modify_passwd: 1 created_at: 2019-02-10 12:49:02 updated_at: 2019-02-10 12:49:02 remember_token: pgPRpZ8c84EBkNB5kjM3GZfpexTH5vQhksekkMOWTdOyktuC4byoVsADDCVU *************************** 2. row *************************** user_id: 2 auth_type: ldap auth_id: 10003 username: spencerb password: NULL realname: spencerb email: spencerb@example.net descr: level: 10 can_modify_passwd: 0 created_at: 2019-02-10 15:26:03 updated_at: 2019-02-10 15:26:03 remember_token: NULL ### select * from users *************************** 1. row *************************** user_id: 1 auth_type: mysql auth_id: 1 username: a password: $2y$10$bYOfmH1DdrRE3DgIgfJQA.cg.Is2v7HjZXwift832QT4Pv0lZC.86 realname: email: a@a descr: level: 10 can_modify_passwd: 1 created_at: 2019-02-10 12:49:02 updated_at: 2019-02-10 12:49:02 remember_token: pgPRpZ8c84EBkNB5kjM3GZfpexTH5vQhksekkMOWTdOyktuC4byoVsADDCVU *************************** 2. row *************************** user_id: 2 auth_type: ldap auth_id: 10003 username: spencerb password: NULL realname: spencerb email: spencerb@example.net descr: level: 10 can_modify_passwd: 0 created_at: 2019-02-10 15:26:03 updated_at: 2019-02-10 15:26:03 remember_token: NULL ### config.php ############################################################### <?php $config['installed_from_package'] = true; ### Database config $config['db_user'] = 'librenms'; $config['db_pass'] = 'secret'; $config['db_name'] = 'librenms'; $config['db_socket'] = '/var/db/mysql/mysql.sock'; ### This is the user LibreNMS will run as ### Please ensure this user is created and has the correct permissions to your install $config['user'] = 'www'; $config['log_dir'] = '/usr/local/www/librenms/logs'; $config['rrd_dir'] = '/usr/local/www/librenms/rrd'; ### Default community $config['snmp']['community'] = array("public"); ### Authentication Model ############################################################################## $config['auth_mechanism'] = 'ldap'; // default, other options: ldap, http-auth ### LDAP Authentication ############################################################################### $config['auth_ldap_binddn'] = 'uid=svc_librenms,ou=ServiceAccounts,dc=example,dc=net'; // overrides binduser $config['auth_ldap_bindpassword'] = 'secret'; $config['auth_ldap_server'] = 'mn-hc-oldap-t1.example.net'; // Set server(s), space separated. Prefix with ldaps:// for ssl $config['auth_ldap_suffix'] = ',ou=Users,dc=example,dc=net'; // appended to usernames $config['auth_ldap_groupbase'] = 'ou=Groups,dc=example,dc=net'; // all groups must be inside this $config['auth_ldap_groups']['admin']['level'] = 10; // set admin group to admin level $config['auth_ldap_groups']['pfy']['level'] = 5; // set pfy group to global read only level $config['auth_ldap_groups']['support']['level'] = 1; // set support group as a normal user $config['auth_ldap_groups']['network']['level'] = 10; // set admin group to admin level $config['auth_ldap_groups']['elevated']['level'] = 10; // set admin group to admin level $config['auth_ldap_groups']['sysadmin']['level'] = 10; // set admin group to admin level $config['auth_ldap_starttls'] = true; // Enable TLS on port 389 $config['auth_ldap_prefix'] = 'uid='; // prepended to usernames $config['auth_ldap_uid_attribute'] = 'uidNumber'; // attribute for unique id $config['auth_ldap_debug'] = true; // enable for verbose debug messages ### END LDAP Authentication ############################################################################### ### exclude these networks from all scans $config['autodiscovery']['nets-exclude'][] = '10.10.42.1/32'; $config['autodiscovery']['nets-exclude'][] = '10.10.42.253/32'; $config['autodiscovery']['nets-exclude'][] = '10.10.2.1/32'; ### scan at will $config['nets'][] = "10.10.42.0/24"; $config['nets'][] = "10.10.75.0/24"; $config['nets'][] = "10.10.2.0/24"; $config['nets'][] = "10.10.34.0/24"; ### Enable the in-built billing extension $config['enable_billing'] = 1; ### Enable the in-built services support (Nagios plugins) $config['show_services'] = 1; ### .env ######################################################## APP_KEY=base64:S1+2pWEaar9L5AX/NBFLAmf3UNaLIovABJR1tlwsKqk= DB_SOCKET='/var/db/mysql/mysql.sock' DB_DATABASE=librenms DB_USERNAME=librenms DB_PASSWORD='secret' #APP_URL= NODE_ID=1 DB_PORT=3306 LIBRENMS_USER=www