JMapMyLDAP
JMapMyLDAP copied to clipboard
Add GECOS (PIN) function to JMapMyLDAP
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