summaryrefslogtreecommitdiff
path: root/inc/auth/ldap.class.php
diff options
context:
space:
mode:
authorAdrian Lang <mail@adrianlang.de>2011-05-25 15:36:52 +0200
committerAdrian Lang <mail@adrianlang.de>2011-05-25 15:36:52 +0200
commit2d79e536d13f7923a7059d03cc69f201a935a56b (patch)
tree46e0d8f51612fc35a199a4c86171342e1d376e84 /inc/auth/ldap.class.php
parent7ee92f4c27f4f435c2d44501bd326c965dbafd51 (diff)
parent5ff127375bd2292958b989dcec18dbca5a8a751f (diff)
downloadrpg-2d79e536d13f7923a7059d03cc69f201a935a56b.tar.gz
rpg-2d79e536d13f7923a7059d03cc69f201a935a56b.tar.bz2
Merge branch 'master' into stable
Diffstat (limited to 'inc/auth/ldap.class.php')
-rw-r--r--inc/auth/ldap.class.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/inc/auth/ldap.class.php b/inc/auth/ldap.class.php
index 420043238..8eb411995 100644
--- a/inc/auth/ldap.class.php
+++ b/inc/auth/ldap.class.php
@@ -158,8 +158,11 @@ class auth_ldap extends auth_basic {
// in some cases getUserData is called outside the authentication workflow
// eg. for sending email notification on subscribed pages. This data might not
// be accessible anonymously, so we try to rebind the current user here
- $pass = PMA_blowfish_decrypt($_SESSION[DOKU_COOKIE]['auth']['pass'],auth_cookiesalt());
- $this->checkPass($_SESSION[DOKU_COOKIE]['auth']['user'], $pass);
+ list($loginuser,$loginsticky,$loginpass) = auth_getCookie();
+ if($loginuser && $loginpass){
+ $loginpass = PMA_blowfish_decrypt($loginpass, auth_cookiesalt(!$loginsticky));
+ $this->checkPass($loginuser, $loginpass);
+ }
}
$info['user'] = $user;