Bail out early to prevent bogus errors if baseDNGroups isn't set

This commit is contained in:
Andrew Ruthven 2024-01-22 02:16:04 +13:00
parent e73f2d73d4
commit 702fc05b57

View File

@ -474,6 +474,11 @@ function fix_unique_member($list) {
*/
function sync_LDAP_groups(){
global $c;
// Can only sync if we know where to find the groups.
if (! isset($c->authenticate_hook['config']['baseDNGroups']) )
return;
$ldapDriver = getStaticLdap();
if ( ! $ldapDriver->valid ) return;