From e7940eef3258de7629cc8da26ef2ea269ff76b48 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Sun, 4 Nov 2007 21:35:22 +1300 Subject: [PATCH] Add a bit more debugging. --- inc/drivers_ldap.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/inc/drivers_ldap.php b/inc/drivers_ldap.php index eb62e100..d3218013 100644 --- a/inc/drivers_ldap.php +++ b/inc/drivers_ldap.php @@ -165,11 +165,15 @@ function getStaticLdap() { */ function sync_user_from_LDAP( &$usr, $mapping, $ldap_values ) { global $c; + dbg_error_log( "LDAP", "Going to sync the user from LDAP" ); $validUserFields = get_fields('usr'); foreach ( $c->authenticate_hook['config']['default_value'] as $field => $value ) { - if ( in_array($field, $validUserFields) ) $usr->{$field} = $value; + if ( in_array($field, $validUserFields) ) { + $usr->{$field} = $value; + dbg_error_log( "LDAP", "Setting usr->%s to %s from configured defaults", $field, $value ); + } } foreach ( $mapping as $field => $value ) {