mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-25 02:34:17 +00:00
$c needs to be global.
This commit is contained in:
parent
2744a62c28
commit
acca66e4d8
@ -128,7 +128,7 @@ class ldapDrivers
|
||||
if ( !@ldap_bind($this->connect, $dnUser, $passwd) ) {
|
||||
dbg_error_log( "LDAP", "drivers_ldap : Failed to bind to user %s using password %s", $dnUser, $passwd );
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
dbg_error_log( "LDAP", "drivers_ldap : Bound to user %s using password %s", $dnUser, $passwd );
|
||||
|
||||
@ -164,6 +164,7 @@ function getStaticLdap() {
|
||||
* @param object $usr A user record to be updated (or created)
|
||||
*/
|
||||
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');
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user