yes, I know, LDAP again. I have read all topics about LDAP on this forum, even in German language.
I'm new in LDAP, but I can auth with LDAP account over SSH, FTP, Usermin (Webmin) and Zabbix. I can connect over windows utility LDAPAdmin (http://www.ldapadmin.org). What I didn't solve is connect over PMF. I'm running LAMP with Debian stable, and latest stable PMF
this is my modified ldap.php
Code: Select all
// Main LDAP server
$PMF_LDAP['ldap_server'] = '127.0.0.1';
$PMF_LDAP['ldap_port'] = 389;
$PMF_LDAP['ldap_user'] = 'cn=admin,dc=local,dc=sys,dc=corp';
$PMF_LDAP['ldap_password'] = 'xxxx';
$PMF_LDAP['ldap_base'] = 'dc=local,dc=sys,dc=corp';
Code: Select all
// Datamapping - in this example for an ADS
$PMF_LDAP['ldap_mapping'] = array (
'name' => 'gecos',
'username' => 'uid',
'mail' => 'mail'
);
When I try to connect as login:test and password:test123 on PMF login page, I get error "Wrong login name or password."
this is in php log>
Code: Select all
[Wed Feb 12 10:54:50 2014] [error] [client 192.168.2.10] phpMyFAQ warning: ldap_bind(): Unable to bind to server: Invalid DN syntax in /home/www/faq/inc/PMF/Ldap.php on line 137, referer: http://web/faq/?action=login
Code: Select all
Feb 12 10:54:50 slapd[26791]: conn=1131 op=0 do_bind: invalid dn (test)
this is in php log>
Code: Select all
[Wed Feb 12 10:58:49 2014] [error] [client 192.168.2.10] phpMyFAQ warning: ldap_get_values() expects parameter 2 to be resource, boolean given in /home/www/faq/inc/PMF/Ldap
.php on line 257, referer: http://web/faq/?action=login
Can you help me ? What I'm doing wrong ?