Accountstatus LDAP always synced #7426
Comments
Hi, this is very unfortunate. I submitted a PR that may have caused this. In my testings everything was synced fine. However, I tested like changing ldap and check if these are synced back to Tine when user logs in. Please see my changes in User.php. Especially the element Could you change line 690 until 695 in file Tinebase/User.php like this and try again? 'accountStatus' => call_user_func(function() use ($options) {
if (isset($options['syncAccountStatus'])) {
return (bool) $options['syncAccountStatus'];
}
return null;
}), Can you try the Sync-Command with and without Thanks and sorry for the trouble. |
great, this works as expected! without i leave the ticket open until bugfix is submited |
Fixes issue tine20#7426. @Nachtlichtermeer tested the fix with `setup.php --sync_accounts_from_ldap [--syncaccountstatus]`
Fixes issue #7426. @Nachtlichtermeer tested the fix with `setup.php --sync_accounts_from_ldap [--syncaccountstatus]`
Fixes issue #7426. @Nachtlichtermeer tested the fix with `setup.php --sync_accounts_from_ldap [--syncaccountstatus]`
sudo -u www-data php /var/www/*/htdocs/tine20/setup.php --sync_accounts_from_ldap
without
--syncaccountstatus
tries to sync the account status.
so if i deactivate an user in tine and sync with ldap this user is reactivated
The text was updated successfully, but these errors were encountered: