I recently changed to using the ad-authorization
authentication mode rather than sso
and ever since I’ve been having issues with Apache processes crashing for the LibreNMS virtual host. If I change back to sso
, I don’t have this issue. The exact error message isn’t always the same.
Example error messages:
*** Error in `/opt/rh/httpd24/root/usr/sbin/httpd': malloc(): memory corruption (fast): 0x0000559520f27920 ***
--
*** Error in `/opt/rh/httpd24/root/usr/sbin/httpd': double free or corruption (!prev): 0x0000559521026070 ***
--
*** Error in `/opt/rh/httpd24/root/usr/sbin/httpd': double free or corruption (!prev): 0x0000559520ee15e0 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x81489)[0x7f0567439489]
/lib64/libldap-2.4.so.2(ldap_ld_free+0x2eb)[0x7f0556ca03db]
/opt/rh/rh-php71/root/usr/lib64/php/modules/ldap.so(+0x4dd1)[0x7f0551efddd1]<snip>
Relevant config.php
snippet
$config['auth_ad_url'] = 'ldaps://x.ad.y.edu';
$config['auth_ad_domain'] = 'ad.y.edu';
$config['auth_ad_base_dn'] = 'dc=ad,dc=y,dc=edu';
$config['auth_ad_check_certificates'] = false;
$config['auth_ad_binduser'] = 'username';
$config['auth_ad_bindpassword'] = 'password';
$config['auth_ldap_cache_ttl'] = 900;
$config['auth_ad_timeout'] = 5;
$config['auth_ad_debug'] = true;
$config['active_directory']['users_purge'] = 365;
$config['auth_ad_require_groupmembership'] = true;
$config['auth_ad_groups']['_librenms-admin']['level'] = 10;
$config['auth_ad_groups']['_librenms-global-read']['level'] = 5;
$config['auth_ad_groups']['_librenms-user']['level'] = 1;
validate.php: https://p.libren.ms/view/bb8203c3
Apache Error Log (with backtrace): https://p.libren.ms/view/85a901c7
Any suggestions? Versions of PHP and such are in the paste link above.