summaryrefslogtreecommitdiff
blob: 47014dd3931034dd050711404d1c6b536e875c12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff -r cf94ea7d6215 framework/Auth/Auth/kolab.php
--- a/framework/Auth/Auth/kolab.php	Mon Sep 22 15:16:08 2008 +0200
+++ b/framework/Auth/Auth/kolab.php	Mon Sep 22 17:53:35 2008 +0200
@@ -154,7 +154,11 @@
             if (is_a($user, 'PEAR_Error')) {
                 return $user;
             }
-            if (!is_a($user, 'Horde_Kolab_Server_Object_user')) {
+
+            global $conf;
+
+            if (empty($conf['kolab']['misc']['allow_special'])
+                && !is_a($user, 'Horde_Kolab_Server_Object_user')) {
                 return PEAR::raiseError(_('User is not a standard Kolab user.'));
             }
             $result = $user->getServer('imap');