From 342753d2c30febfa5363dabecbfd03ee1344cc54 Mon Sep 17 00:00:00 2001
From: Andreas Gohr <andi@splitbrain.org>
Date: Fri, 1 Jul 2016 08:39:53 +0200
Subject: [PATCH] fixed password decoding

We decoded the wrong option here before.
---
 lib/plugins/authad/auth.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/plugins/authad/auth.php b/lib/plugins/authad/auth.php
index 7f557975a..50f708456 100644
--- a/lib/plugins/authad/auth.php
+++ b/lib/plugins/authad/auth.php
@@ -642,7 +642,7 @@ class auth_plugin_authad extends DokuWiki_Auth_Plugin {
         // compatibility with old option name
         if(empty($opts['admin_username']) && !empty($opts['ad_username'])) $opts['admin_username'] = $opts['ad_username'];
         if(empty($opts['admin_password']) && !empty($opts['ad_password'])) $opts['admin_password'] = $opts['ad_password'];
-        $opts['ad_password'] = conf_decodeString($opts['ad_password']); // deobfuscate
+        $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']) {
-- 
GitLab