summaryrefslogtreecommitdiff
path: root/inc/auth
diff options
context:
space:
mode:
authorKate Arzamastseva <pshns@ukr.net>2011-05-26 13:37:30 +0300
committerKate Arzamastseva <pshns@ukr.net>2011-05-26 13:37:30 +0300
commitf05345511bace85889aa9be5a83820897d322007 (patch)
treeba9e6bf36477c714048fb04e6029925d3d713c47 /inc/auth
parent325c7e9562ac271857d7490f978e3ce3c23952d1 (diff)
parent5ff127375bd2292958b989dcec18dbca5a8a751f (diff)
downloadrpg-f05345511bace85889aa9be5a83820897d322007.tar.gz
rpg-f05345511bace85889aa9be5a83820897d322007.tar.bz2
Merge branch 'master' of git://github.com/splitbrain/dokuwiki into media-revisions
Diffstat (limited to 'inc/auth')
-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;