diff --git a/lib/plugins/authad/auth.php b/lib/plugins/authad/auth.php
index 7f557975abd605fb8c4a017cde3b46fcbf0dd1e5..50f7084569649f2e52ec29366d5259f9c92f101d 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']) {