I managed to have things work w/ small changes inside /pluginsgforge/www/plugins/authldap/post-login.php
From
#####
if ($login) {
if (!formkeyisvalid(getStringFromRequest('formkey'))) {
exitformdoublesubmit();
}
$test = $plugin->checkLDAPCredentials(strtolower($formloginname),$formpw);
if ($test == FORGEAUTHAUTHORITATIVEACCEPT && usergetobjectbyname($formloginname)->getStatus() == 'A') {
if ($plugin->isSufficient()) {
$plugin->startSession($formloginname);
}
if ($returnto) {
header ("Location: " . utilmakeurl($returnto));
exit;
} else {
#####
To
###
if ($login) {
if (!formkeyisvalid(getStringFromRequest('formkey'))) {
exitformdoublesubmit();
}
$test = $plugin->checkLDAPCredentials(strtolower($formloginname),$formpw);
if ($test == FORGEAUTHAUTHORITATIVEACCEPT && usergetobjectbyname($formloginname)->getStatus() == 'A') {
if ($plugin->isSufficient()) {
$plugin->startSession($formloginname);
}
$u = usergetobjectbyname($formloginname);
$userid = $u->getID();
sessionsetnew($user_id); //create session cookie
if ($returnto) {
header ("Location: " . utilmakeurl($returnto));
exit;
} else {
|