Merge pull request #3595 from pluto00987/master
Add an option to prevent password changes in authad plugin
This commit is contained in:
commit
164ef04c61
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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).';
|
||||
|
|
Loading…
Reference in New Issue