From Colorant Pheasant, 6 Months ago, written in Plain Text.
This paste is a reply to from - view diff
Embed
  1. ### validate.php ########################################################
  2. ====================================
  3. Component | Version
  4. --------- | -------
  5. LibreNMS  | 1.47
  6. DB Schema | 275
  7. PHP       | 7.2.14
  8. MySQL     | 5.6.42-log
  9. RRDTool   | 1.7.0
  10. SNMP      | NET-SNMP 5.7.3
  11. ====================================
  12.  
  13. [[32mOK[0m]    Installed from package; no Composer required
  14. [[0;32mOK[0m]    Database connection successful
  15. [[1;31mFAIL[0m]  MySQL Database collation is wrong: utf8 utf8_general_ci
  16.  [[1;34mFIX[0m]:
  17.  [1;34mCheck https://t.libren.ms/-zdwk for info on how to fix.[0m
  18. [[0;32mOK[0m]    Database schema correct
  19. [[1;33mWARN[0m]  You have not added any devices yet.
  20.  [[1;34mFIX[0m]:
  21.  [1;34mYou can add a device in the webui or with ./addhost.php[0m
  22. [[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
  23. [[1;31mFAIL[0m]  fping could not be executed. fping must have CAP_NET_RAW capability (getcap) or suid. Selinux exlusions may be required.
  24.  (This account is currently not available.)
  25. [[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
  26. [[1;31mFAIL[0m]  fping6 could not be executed. fping6 must have CAP_NET_RAW capability (getcap) or suid. Selinux exlusions may be required.
  27.  (This account is currently not available.)
  28.  
  29. ### auth_test.php ########################################################
  30. Authentication Method: ldap
  31. Password:
  32. Authenticate user spencerb:
  33. [0;32mAUTH SUCCESS
  34. [0m
  35. User (10003):
  36.   username => spencerb
  37.   realname => spencerb
  38.   user_id => 10003
  39.   email => spencerb@example.net
  40.   level => 10
  41. 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
  42. *************************** 1. row ***************************
  43.           user_id: 1
  44.         auth_type: mysql
  45.           auth_id: 1
  46.          username: a
  47.          password: $2y$10$bYOfmH1DdrRE3DgIgfJQA.cg.Is2v7HjZXwift832QT4Pv0lZC.86
  48.          realname:
  49.             email: a@a
  50.             descr:
  51.             level: 10
  52. can_modify_passwd: 1
  53.        created_at: 2019-02-10 12:49:02
  54.        updated_at: 2019-02-10 12:49:02
  55.    remember_token: pgPRpZ8c84EBkNB5kjM3GZfpexTH5vQhksekkMOWTdOyktuC4byoVsADDCVU
  56. *************************** 2. row ***************************
  57.           user_id: 2
  58.         auth_type: ldap
  59.           auth_id: 10003
  60.          username: spencerb
  61.          password: NULL
  62.          realname: spencerb
  63.             email: spencerb@example.net
  64.             descr:
  65.             level: 10
  66. can_modify_passwd: 0
  67.        created_at: 2019-02-10 15:26:03
  68.        updated_at: 2019-02-10 15:26:03
  69.    remember_token: NULL
  70.  
  71. ### select * from users
  72. *************************** 1. row ***************************
  73.           user_id: 1
  74.         auth_type: mysql
  75.           auth_id: 1
  76.          username: a
  77.          password: $2y$10$bYOfmH1DdrRE3DgIgfJQA.cg.Is2v7HjZXwift832QT4Pv0lZC.86
  78.          realname:
  79.             email: a@a
  80.             descr:
  81.             level: 10
  82. can_modify_passwd: 1
  83.        created_at: 2019-02-10 12:49:02
  84.        updated_at: 2019-02-10 12:49:02
  85.    remember_token: pgPRpZ8c84EBkNB5kjM3GZfpexTH5vQhksekkMOWTdOyktuC4byoVsADDCVU
  86. *************************** 2. row ***************************
  87.           user_id: 2
  88.         auth_type: ldap
  89.           auth_id: 10003
  90.          username: spencerb
  91.          password: NULL
  92.          realname: spencerb
  93.             email: spencerb@example.net
  94.             descr:
  95.             level: 10
  96. can_modify_passwd: 0
  97.        created_at: 2019-02-10 15:26:03
  98.        updated_at: 2019-02-10 15:26:03
  99.    remember_token: NULL
  100.  
  101. ### config.php ###############################################################
  102. <?php
  103. $config['installed_from_package'] = true;
  104. ### Database config
  105. $config['db_user'] = 'librenms';
  106. $config['db_pass'] = 'secret';
  107. $config['db_name'] = 'librenms';
  108. $config['db_socket'] = '/var/db/mysql/mysql.sock';
  109.  
  110. ### This is the user LibreNMS will run as
  111. ### Please ensure this user is created and has the correct permissions to your install
  112. $config['user'] = 'www';
  113. $config['log_dir'] = '/usr/local/www/librenms/logs';
  114. $config['rrd_dir'] = '/usr/local/www/librenms/rrd';
  115. ### Default community
  116. $config['snmp']['community'] = array("public");
  117. ### Authentication Model ##############################################################################
  118. $config['auth_mechanism'] = 'ldap';                        // default, other options: ldap, http-auth
  119. ### LDAP Authentication ###############################################################################
  120. $config['auth_ldap_binddn'] = 'uid=svc_librenms,ou=ServiceAccounts,dc=example,dc=net';                                     // overrides binduser
  121. $config['auth_ldap_bindpassword'] = 'secret';
  122. $config['auth_ldap_server'] = 'mn-hc-oldap-t1.example.net';                                                 // Set server(s), space separated. Prefix with ldaps:// for ssl
  123. $config['auth_ldap_suffix'] = ',ou=Users,dc=example,dc=net';                                                  // appended to usernames
  124. $config['auth_ldap_groupbase'] = 'ou=Groups,dc=example,dc=net';                                            // all groups must be inside this
  125. $config['auth_ldap_groups']['admin']['level'] = 10;             // set admin group to admin level
  126. $config['auth_ldap_groups']['pfy']['level'] = 5;                // set pfy group to global read only level
  127. $config['auth_ldap_groups']['support']['level'] = 1;            // set support group as a normal user
  128. $config['auth_ldap_groups']['network']['level'] = 10;                                // set admin group to admin level
  129. $config['auth_ldap_groups']['elevated']['level'] = 10;                                // set admin group to admin level
  130. $config['auth_ldap_groups']['sysadmin']['level'] = 10;                                // set admin group to admin level
  131. $config['auth_ldap_starttls'] = true;                                   // Enable TLS on port 389
  132. $config['auth_ldap_prefix'] = 'uid=';                                     // prepended to usernames
  133. $config['auth_ldap_uid_attribute'] = 'uidNumber';                           // attribute for unique id
  134. $config['auth_ldap_debug'] = true;                                         // enable for verbose debug messages
  135. ### END LDAP Authentication ###############################################################################
  136. ### exclude these networks from all scans
  137. $config['autodiscovery']['nets-exclude'][] = '10.10.42.1/32';
  138. $config['autodiscovery']['nets-exclude'][] = '10.10.42.253/32';
  139. $config['autodiscovery']['nets-exclude'][] = '10.10.2.1/32';
  140. ### scan at will
  141. $config['nets'][] = "10.10.42.0/24";
  142. $config['nets'][] = "10.10.75.0/24";
  143. $config['nets'][] = "10.10.2.0/24";
  144. $config['nets'][] = "10.10.34.0/24";
  145. ### Enable the in-built billing extension
  146. $config['enable_billing'] = 1;
  147. ### Enable the in-built services support (Nagios plugins)
  148. $config['show_services'] = 1;
  149.  
  150. ### .env ########################################################
  151. APP_KEY=base64:S1+2pWEaar9L5AX/NBFLAmf3UNaLIovABJR1tlwsKqk=
  152.  
  153. DB_SOCKET='/var/db/mysql/mysql.sock'
  154. DB_DATABASE=librenms
  155. DB_USERNAME=librenms
  156. DB_PASSWORD='secret'
  157.  
  158. #APP_URL=
  159. NODE_ID=1
  160. DB_PORT=3306
  161. LIBRENMS_USER=www
  162.