mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-20 01:44:15 +00:00
Be a bit more verbose in the logging
This commit is contained in:
parent
d2a93643bc
commit
a50e3eae90
@ -609,6 +609,7 @@ function sync_LDAP_groups(){
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dbg_error_log( "LDAP", "Syncing group %s", $group );
|
||||||
$user = (object) array();
|
$user = (object) array();
|
||||||
|
|
||||||
if ( isset($c->authenticate_hook['config']['default_value'])
|
if ( isset($c->authenticate_hook['config']['default_value'])
|
||||||
@ -695,6 +696,8 @@ function sync_LDAP_groups(){
|
|||||||
$ldap_members_tmp = array();
|
$ldap_members_tmp = array();
|
||||||
|
|
||||||
foreach ( $ldap_members as $member ) {
|
foreach ( $ldap_members as $member ) {
|
||||||
|
dbg_error_log( "LDAP", "Considering adding %s to group %s", $member, $group );
|
||||||
|
|
||||||
if (isset($user_mapping['username'])
|
if (isset($user_mapping['username'])
|
||||||
&& preg_match('/=/', $member)) {
|
&& preg_match('/=/', $member)) {
|
||||||
// The member from LDAP has an = in it, assume it is a DN.
|
// The member from LDAP has an = in it, assume it is a DN.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user