Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GECOS (PIN) function to JMapMyLDAP #66

Open
EnigmaWebdesign opened this issue Jan 24, 2018 · 0 comments
Open

Add GECOS (PIN) function to JMapMyLDAP #66

EnigmaWebdesign opened this issue Jan 24, 2018 · 0 comments

Comments

@EnigmaWebdesign
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant