summaryrefslogtreecommitdiff
path: root/plugins/http_authentication/http_authentication.php
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2012-12-16 17:03:21 +0100
committerThomas Bruederli <thomas@roundcube.net>2012-12-16 17:03:21 +0100
commit939f94bb732300e167ddc51f266743b88ae0867f (patch)
tree5f83b9aa30ddf2e4fc1a3636bd1a8c5b7dabb642 /plugins/http_authentication/http_authentication.php
parenta072247dde60497f879b2a00790a6ec0a64fab4c (diff)
parentdf8ada1f19da8677f0efa35de07f6625510fdc6f (diff)
Merge branch 'master' of github.com:roundcube/roundcubemail
Diffstat (limited to 'plugins/http_authentication/http_authentication.php')
-rw-r--r--plugins/http_authentication/http_authentication.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/http_authentication/http_authentication.php b/plugins/http_authentication/http_authentication.php
index c278b3cfc..a94b6121a 100644
--- a/plugins/http_authentication/http_authentication.php
+++ b/plugins/http_authentication/http_authentication.php
@@ -11,6 +11,8 @@
*
* See logout.html (in this directory) for an example how HTTP auth can be cleared.
*
+ * For other configuration options, see config.inc.php.dist!
+ *
* @version @package_version@
* @license GNU GPLv3+
* @author Thomas Bruederli
@@ -46,6 +48,13 @@ class http_authentication extends rcube_plugin
function authenticate($args)
{
+ // Load plugin's config file
+ $this->load_config();
+
+ $host = rcmail::get_instance()->config->get('http_authentication_host');
+ if (is_string($host) && trim($host) !== '')
+ $args['host'] = rcube_idn_to_ascii(rcube_parse_host($host));
+
// Allow entering other user data in login form,
// e.g. after log out (#1487953)
if (!empty($args['user'])) {