[#806] LDAP authentication not logged

Description

Summary:

Detailed description

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 {

General Information
Submitted by:
Chanh TRAN
Date Submitted: 2016-02-10 17:42
Last Modified by:
Franck Villaume
Last Modified: 2018-03-28 10:10
Permalink: https://fusionforge.org/tracker/a_follow.php/806
Actions
Monitor
Votes: 0/1 (0%)
Internal Fields
Data Type: Feature requests
Assigned to: Nobody (None)
State: Open
Priority: 1
Extra Fields
Resolution:
none
Difficulty:
none
Target release:
none
Follow-up tabs

No comments have been posted

No attached documents

No related commits.

Field Old Value Date By
priority32018-04-22 08:59
Franck Villaume
Target release5.3.42018-03-28 10:10
Franck Villaume

No relations found.