Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-auth_ldap_syncplus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle-auth_ldap_syncplus
Commits
e0a26e16
Commit
e0a26e16
authored
3 years ago
by
Dennis Ahrens
Browse files
Options
Downloads
Patches
Plain Diff
Add setting to control account expires behaviour
parent
e9d8f48c
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
lang/en/auth_ldap_syncplus.php
+2
-0
2 additions, 0 deletions
lang/en/auth_ldap_syncplus.php
settings.php
+5
-0
5 additions, 0 deletions
settings.php
with
7 additions
and
0 deletions
lang/en/auth_ldap_syncplus.php
+
2
−
0
View file @
e0a26e16
...
@@ -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.'
;
This diff is collapsed.
Click to expand it.
settings.php
+
5
−
0
View file @
e0a26e16
...
@@ -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'
),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment