[#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: Nobody
Last Modified: 2017-11-02 20:00
Permalink: https://fusionforge.org/tracker/a_follow.php/806
Actions
Internal Fields
Data Type: Feature requests
Assigned to: Nobody (None)
State: Open
Priority: 3
Extra Fields
Resolution:
none
Difficulty:
none
Target release:
5.3.4
Follow-up tabs

No Comments Have Been Posted

No attached documents

No related commits.

No Changes Have Been Made to This Item

No relations found.