Another ldap login failure
Posted: Tue Nov 26, 2013 9:23 pm
Hi All,
I have gone through the list and looked at the various posts about LDAP issues but have not been able to get AD logins working. I'm running phpmyfaq 2.8.3 on php 5.3.27.
When I try to log in I get the usual "Wrong login name or password."
I have verified ldap connectivity to the AD server from the command line using ldapsearch.
Below are my configs:
ldap.php:
<?php
// Main LDAP server
$PMF_LDAP['ldap_server'] = '10.0.1.2';
$PMF_LDAP['ldap_port'] = 389;
$PMF_LDAP['ldap_user'] = 'Administrator';
$PMF_LDAP['ldap_password'] = 'password';
$PMF_LDAP['ldap_base'] = 'ou=company,dc=company,dc=com';
cat constants_ldap.php | grep -v ^'/' | sed '/^$/d'
<?php
$PMF_LDAP['ldap_mapping'] = array (
'name' => 'cn',
'username' => 'sAMAccountName',
'mail' => 'mail'
);
$PMF_LDAP['ldap_use_domain_prefix'] = false;
$PMF_LDAP["ldap_options"] = array (
LDAP_OPT_PROTOCOL_VERSION => 3,
LDAP_OPT_REFERRALS => 0
);
$PMF_LDAP['ldap_use_memberOf'] = true;
$PMF_LDAP['ldap_mapping']['memberOf'] = '';
$PMF_LDAP['ldap_use_sasl'] = false;
$PMF_LDAP['ldap_use_multiple_servers'] = false;
$PMF_LDAP['ldap_use_anonymous_login'] = false;
I noticed in quite a few of the replies it was suggested to enable DEBUG in the inc/Init.php file. I don't have that file in that location. I do have inc/PMF/Init.php but I don't see how to enable DEBUG in it, there is no mention of debug in the file. Can someone tell me to activate this DEBUG mode?
Thanks in advance,
Aaron
I have gone through the list and looked at the various posts about LDAP issues but have not been able to get AD logins working. I'm running phpmyfaq 2.8.3 on php 5.3.27.
When I try to log in I get the usual "Wrong login name or password."
I have verified ldap connectivity to the AD server from the command line using ldapsearch.
Below are my configs:
ldap.php:
<?php
// Main LDAP server
$PMF_LDAP['ldap_server'] = '10.0.1.2';
$PMF_LDAP['ldap_port'] = 389;
$PMF_LDAP['ldap_user'] = 'Administrator';
$PMF_LDAP['ldap_password'] = 'password';
$PMF_LDAP['ldap_base'] = 'ou=company,dc=company,dc=com';
cat constants_ldap.php | grep -v ^'/' | sed '/^$/d'
<?php
$PMF_LDAP['ldap_mapping'] = array (
'name' => 'cn',
'username' => 'sAMAccountName',
'mail' => 'mail'
);
$PMF_LDAP['ldap_use_domain_prefix'] = false;
$PMF_LDAP["ldap_options"] = array (
LDAP_OPT_PROTOCOL_VERSION => 3,
LDAP_OPT_REFERRALS => 0
);
$PMF_LDAP['ldap_use_memberOf'] = true;
$PMF_LDAP['ldap_mapping']['memberOf'] = '';
$PMF_LDAP['ldap_use_sasl'] = false;
$PMF_LDAP['ldap_use_multiple_servers'] = false;
$PMF_LDAP['ldap_use_anonymous_login'] = false;
I noticed in quite a few of the replies it was suggested to enable DEBUG in the inc/Init.php file. I don't have that file in that location. I do have inc/PMF/Init.php but I don't see how to enable DEBUG in it, there is no mention of debug in the file. Can someone tell me to activate this DEBUG mode?
Thanks in advance,
Aaron