summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-11-17 13:23:39 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2014-11-17 13:23:39 (GMT)
commit7ac7888af8455aebeaf189970c645a0b3423c66a (patch)
treef4aea70cc113fa2e0500dc4af885d1c872a306bf
parentca1b3f806473c0a6ba5939b6e724e463bcc74cfa (diff)
downloadiRony-7ac7888af8455aebeaf189970c645a0b3423c66a.tar.gz
Store some kolab_auth session vars in auth cache (iRony does not use sessions)
-rw-r--r--lib/Kolab/DAV/Auth/HTTPBasic.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Kolab/DAV/Auth/HTTPBasic.php b/lib/Kolab/DAV/Auth/HTTPBasic.php
index f152cc8..bb9d9a2 100644
--- a/lib/Kolab/DAV/Auth/HTTPBasic.php
+++ b/lib/Kolab/DAV/Auth/HTTPBasic.php
@@ -68,6 +68,8 @@ class HTTPBasic extends DAV\Auth\Backend\AbstractBasic
$cache->set($cache_key, array(
'user' => $auth['user'],
'host' => $auth['host'],
+ 'dn' => $_SESSION['kolab_dn'],
+ 'vars' => $_SESSION['kolab_auth_vars'],
));
}
@@ -78,6 +80,9 @@ class HTTPBasic extends DAV\Auth\Backend\AbstractBasic
}
else {
$auth['pass'] = $password;
+ // set some session vars from kolab_auth
+ $_SESSION['kolab_dn'] = $auth['dn'];
+ $_SESSION['kolab_auth_vars'] = $auth['vars'];
}
// authenticate user against the IMAP server