mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-22 02:04:19 +00:00
Set 'active' and 'default_privileges' fallback values.
This commit is contained in:
parent
e149c7ebc7
commit
fe659b4aaa
@ -261,7 +261,11 @@ function sync_user_from_LDAP( Principal &$principal, $mapping, $ldap_values ) {
|
||||
|
||||
dbg_error_log( "LDAP", "Going to sync the user from LDAP" );
|
||||
|
||||
$fields_to_set = array( 'username' => $principal->username() );
|
||||
$fields_to_set = array(
|
||||
'username' => $principal->username(),
|
||||
'active' => true,
|
||||
'default_privileges' => decbin(privilege_to_bits($c->default_privileges))
|
||||
);
|
||||
$updateable_fields = Principal::updateableFields();
|
||||
$updateable_fields[] = 'active'; // Backward compatibility: now 'user_exists'
|
||||
$updateable_fields[] = 'updated'; // Backward compatibility: now 'modified'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user