Merge pull request #3595 from pluto00987/master

Add an option to prevent password changes in authad plugin
This commit is contained in:
Andreas Gohr 2022-06-24 14:14:57 +02:00 committed by GitHub
commit 164ef04c61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 1 deletions

View File

@ -700,7 +700,7 @@ class auth_plugin_authad extends DokuWiki_Auth_Plugin
$opts['admin_password'] = conf_decodeString($opts['admin_password']); // deobfuscate
// we can change the password if SSL is set
if ($opts['use_ssl'] || $opts['use_tls']) {
if ($opts['update_pass'] && ($opts['use_ssl'] || $opts['use_tls'])) {
$this->cando['modPass'] = true;
} else {
$this->cando['modPass'] = false;

View File

@ -15,4 +15,5 @@ $conf['expirywarn'] = 0;
$conf['additional'] = '';
$conf['update_name'] = 0;
$conf['update_mail'] = 0;
$conf['update_pass'] = 1;
$conf['recursive_groups'] = 0;

View File

@ -15,4 +15,5 @@ $meta['expirywarn'] = array('numeric', '_min'=>0,'_caution' => 'danger')
$meta['additional'] = array('string','_caution' => 'danger');
$meta['update_name'] = array('onoff','_caution' => 'danger');
$meta['update_mail'] = array('onoff','_caution' => 'danger');
$meta['update_pass'] = array('onoff','_caution' => 'danger');
$meta['recursive_groups'] = array('onoff','_caution' => 'danger');

View File

@ -15,4 +15,5 @@ $lang['expirywarn'] = 'Days in advance to warn user about expiring passw
$lang['additional'] = 'A comma separated list of additional AD attributes to fetch from user data. Used by some plugins.';
$lang['update_name'] = 'Allow users to update their AD display name?';
$lang['update_mail'] = 'Allow users to update their email address?';
$lang['update_pass'] = 'Allow users to update their password? Requires SSL or TLS above.';
$lang['recursive_groups'] = 'Resolve nested groups to their respective members (slower).';