JMapMyLDAP icon indicating copy to clipboard operation
JMapMyLDAP copied to clipboard

Add GECOS (PIN) function to JMapMyLDAP

Open EnigmaWebdesign opened this issue 7 years ago • 0 comments

Hi Shaun,

In the 1st version you added custom code so that we can use [gecos] ->> pin field in our custom login module for Joomla 2.5.

// START CUSTOMER CODE $gecos = JRequest::getVar('pin', 'POST');

    if (empty($gecos))
    {
        return false;
    }

    $gecos = JLDAPHelper::escape($gecos);

    $search = str_replace('[gecos]', $gecos, $search);
    // END CUSTOMER CODE

My client switched to Active Directory and we have to upgrade to v2 of the extension. I can connect with username and password but since we use a 3rd field called PIN we can't login.

We use DN/Filter: (&(sAMAccountName=[username])(employeeID=[gecos])) It fails login.

Can you please help?

Cheers

Stevan

EnigmaWebdesign avatar Jan 24 '18 14:01 EnigmaWebdesign