--- auth/ldap/auth.php Tue Dec 06 17:21:32 2011 +++ auth/ldap/auth.php Wed Jun 13 12:38:25 2012 @@ -1625,7 +1625,8 @@ add_to_log(SITEID, 'user', 'login', "view.php?id=$USER->id&course=".SITEID, $user->id, 0, $user->id); complete_user_login($user); - + $SESSION->ssologin = 1; + // Cleanup the key to prevent reuse... // and to allow re-logins with normal credentials unset_cache_flag($this->pluginconfig.'/ntlmsess', $key);