LDAP logins not working
Posted: Sat Nov 03, 2012 5:20 pm
Hello,
I have been at this for some time and absolutely cannot figure out what isn't working.
Working with Microsoft Windows 2012 AD in a test environment. Defaults for everything.
Web server is Windows 2008 R2 with IIS 7.5 and PHP 5.3.18 with the LDAP module installed.
I have gone to /config/constants_ldap.php, but did not need to change any settings.
I have set the following in ldap.php:
$PMF_LDAP['ldap_server'] = 'ad.example.com';
$PMF_LDAP['ldap_port'] = 389;
$PMF_LDAP['ldap_user'] = 'phpmyfaq'; (have also tried full dn)
$PMF_LDAP['ldap_password'] = 'phpmyfaq'; (yes, I know this isn't secure, but it's a test environment)
$PMF_LDAP['ldap_base'] = "cn=Users,dc=example,dc=com";
and went to administration -> configuration -> security configuration -> enable LDAP support
and checked the box
I created a variety of test accounts in the Users container, but for all of them (and any other users on AD), it tells me it is a wrong username or password.
I tried another clean install with the same values, except to enable LDAP at install time; no change.
Checked AD logs, but found no errors.
I have another piece of PHP software on the same web server that can authenticate to AD without issues (Tiki).
Been going over this again and again and can't find anything to suggest what is wrong. Can anyone offer a suggestion?
I have been at this for some time and absolutely cannot figure out what isn't working.
Working with Microsoft Windows 2012 AD in a test environment. Defaults for everything.
Web server is Windows 2008 R2 with IIS 7.5 and PHP 5.3.18 with the LDAP module installed.
I have gone to /config/constants_ldap.php, but did not need to change any settings.
I have set the following in ldap.php:
$PMF_LDAP['ldap_server'] = 'ad.example.com';
$PMF_LDAP['ldap_port'] = 389;
$PMF_LDAP['ldap_user'] = 'phpmyfaq'; (have also tried full dn)
$PMF_LDAP['ldap_password'] = 'phpmyfaq'; (yes, I know this isn't secure, but it's a test environment)
$PMF_LDAP['ldap_base'] = "cn=Users,dc=example,dc=com";
and went to administration -> configuration -> security configuration -> enable LDAP support
and checked the box
I created a variety of test accounts in the Users container, but for all of them (and any other users on AD), it tells me it is a wrong username or password.
I tried another clean install with the same values, except to enable LDAP at install time; no change.
Checked AD logs, but found no errors.
I have another piece of PHP software on the same web server that can authenticate to AD without issues (Tiki).
Been going over this again and again and can't find anything to suggest what is wrong. Can anyone offer a suggestion?