Skip to content

Commit

Permalink
Ensure LDAP ext loaded when $g_login_method = LDAP
Browse files Browse the repository at this point in the history
Fixes #30771
  • Loading branch information
dregad committed Jul 10, 2022
1 parent 4dd581f commit f36f6d3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core.php
Expand Up @@ -102,6 +102,12 @@
require_once( $g_config_path . 'config_inc.php' );
}

# Ensure PHP LDAP extension is available when Login Method is LDAP
global $g_login_method;
if ( $g_login_method == LDAP ) {
ensure_php_extension_loaded( 'ldap', 'when using LDAP as Login Method' );
}

# Register the autoload function to make it effective immediately
spl_autoload_register( 'autoload_mantis' );

Expand Down

0 comments on commit f36f6d3

Please sign in to comment.