Skip to content

Commit

Permalink
AD auth: password changing works via TLS as well
Browse files Browse the repository at this point in the history
  • Loading branch information
splitbrain committed Jan 26, 2011
1 parent 4817636 commit 6c3ec20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inc/auth/ad.class.php
Expand Up @@ -24,6 +24,7 @@
* $conf['auth']['ad']['ad_password'] = 'pass';
* $conf['auth']['ad']['real_primarygroup'] = 1;
* $conf['auth']['ad']['use_ssl'] = 1;
* $conf['auth']['ad']['use_tls'] = 1;
* $conf['auth']['ad']['debug'] = 1;
*
* // get additional information to the userinfo array
Expand Down Expand Up @@ -52,7 +53,7 @@ function auth_ad() {
$this->cnf = $conf['auth']['ad'];

// we can change the password if SSL is set
if($this->cnf['use_ssl']){
if($this->cnf['use_ssl'] || $this->cnf['use_tls']){
$this->cando['modPass'] = true;
}
$this->cando['modName'] = true;
Expand Down

0 comments on commit 6c3ec20

Please sign in to comment.