mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-07-11 10:21:24 +00:00
Bail out early to prevent bogus errors if baseDNGroups isn't set
This commit is contained in:
parent
e73f2d73d4
commit
702fc05b57
@ -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;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user