diff --git a/inc/html.php b/inc/html.php
index fb39fcb3c9b8ee957b1c6525b9db8863a4f1ada7..3bef75eabd85f7b235be1f054430ade281ca9b3b 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -1352,6 +1352,8 @@ function html_updateprofile(){
     /** @var auth_basic $auth */
     global $auth;
 
+    var_dump($auth);
+
     print p_locale_xhtml('updateprofile');
 
     $fullname = $INPUT->post->str('fullname', $INFO['userinfo']['name'], true);
diff --git a/lib/plugins/authad/auth.php b/lib/plugins/authad/auth.php
index 5d5f532b6b3a5fcc1b3d5add68993b747ad27459..b6b5dd268cd5a27479ad3a335c81699f9eadafd4 100644
--- a/lib/plugins/authad/auth.php
+++ b/lib/plugins/authad/auth.php
@@ -110,6 +110,19 @@ class auth_plugin_authad extends DokuWiki_Auth_Plugin {
         $this->cando['modMail'] = true;
     }
 
+    /**
+     * Load domain config on capability check
+     *
+     * @param string $cap
+     * @return bool
+     */
+    public function canDo($cap) {
+        //capabilities depend on config, which may change depending on domain
+        $domain = $this->_userDomain($_SERVER['REMOTE_USER']);
+        $this->_loadServerConfig($domain);
+        return parent::canDo($cap);
+    }
+
     /**
      * Check user+password [required auth function]
      *