Be a bit more verbose in the logging

This commit is contained in:
Andrew Ruthven 2024-05-01 00:21:17 +12:00
parent d2a93643bc
commit a50e3eae90

View File

@ -609,6 +609,7 @@ function sync_LDAP_groups(){
continue;
}
dbg_error_log( "LDAP", "Syncing group %s", $group );
$user = (object) array();
if ( isset($c->authenticate_hook['config']['default_value'])
@ -695,6 +696,8 @@ function sync_LDAP_groups(){
$ldap_members_tmp = array();
foreach ( $ldap_members as $member ) {
dbg_error_log( "LDAP", "Considering adding %s to group %s", $member, $group );
if (isset($user_mapping['username'])
&& preg_match('/=/', $member)) {
// The member from LDAP has an = in it, assume it is a DN.