Skip to content
Snippets Groups Projects
Commit e0a26e16 authored by Dennis Ahrens's avatar Dennis Ahrens
Browse files

Add setting to control account expires behaviour

parent e9d8f48c
No related branches found
No related tags found
No related merge requests found
...@@ -39,3 +39,5 @@ $string['syncroles'] = 'LDAP roles sync job (Sync Plus)'; ...@@ -39,3 +39,5 @@ $string['syncroles'] = 'LDAP roles sync job (Sync Plus)';
$string['synctask'] = 'LDAP users sync job (Sync Plus)'; $string['synctask'] = 'LDAP users sync job (Sync Plus)';
$string['userentriestosuspend'] = 'User entries to be suspended: {$a}'; $string['userentriestosuspend'] = 'User entries to be suspended: {$a}';
$string['waitinginremovalqueue'] = 'Waiting in removal queue for {$a->days} day grace period: {$a->name} ID {$a->id}'; $string['waitinginremovalqueue'] = 'Waiting in removal queue for {$a->days} day grace period: {$a->name} ID {$a->id}';
$string['ad_accountexpires_key'] = 'AD account expires';
$string['ad_accountexpires_desc'] = 'If set to yes and the auth provider is Active Directory the attribute accountExpires is evaluated and taken into account.';
...@@ -293,6 +293,11 @@ if ($ADMIN->fulltree) { ...@@ -293,6 +293,11 @@ if ($ADMIN->fulltree) {
get_string('removeuser_graceperiod', 'auth_ldap_syncplus'), get_string('removeuser_graceperiod', 'auth_ldap_syncplus'),
get_string('removeuser_graceperiod_desc', 'auth_ldap_syncplus'), 10, PARAM_INT)); get_string('removeuser_graceperiod_desc', 'auth_ldap_syncplus'), 10, PARAM_INT));
// Account Expiration.
$settings->add(new admin_setting_configselect('auth_ldap_syncplus/ad_accountexpires',
new lang_string('ad_accountexpires_key', 'auth_ldap_syncplus'),
new lang_string('ad_accountexpires_desc', 'auth_ldap_syncplus'), 0 , $yesno));
// Create users. // Create users.
$settings->add(new admin_setting_configselect('auth_ldap_syncplus/sync_script_createuser_enabled', $settings->add(new admin_setting_configselect('auth_ldap_syncplus/sync_script_createuser_enabled',
new lang_string('sync_script_createuser_enabled_key', 'auth_ldap_syncplus'), new lang_string('sync_script_createuser_enabled_key', 'auth_ldap_syncplus'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment