LDAP Authentication

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
jwang
Posts: 1
Joined: Fri Apr 09, 2010 4:10 am

LDAP Authentication

Post by jwang »

I have installed phpmyfaq 2.6.3 successfully on linux, and set LDAP support during installation, here is the ldap info in config/ldap.php

<?php
$PMF_LDAP["ldap_server"] = 'ad1.xx.xx.xx';
$PMF_LDAP["ldap_port"] = '389';
$PMF_LDAP["ldap_user"] = 'cn=Administrator,cn=Users,dc=xx,dc=xx,dc=xx';
$PMF_LDAP["ldap_password"] = 'xxxx';
$PMF_LDAP["ldap_base"] = 'ou=staff,dc=xx,dc=xx,dc=xx';

And after installation, I login as admin and enabled ldap support in main configuration, everything seems fine, while when I try to login in as domain user, it failed, here is the debug information:

Code: Select all

DEBUG INFORMATION:
/usr/local/apache2/htdocs/faq/inc/Init.php:
PMF_Configuration->getAll() in line 103: 
            SELECT
                config_name, config_value
            FROM
                faqfaqconfig
/usr/local/apache2/htdocs/faq/inc/PMF_User/CurrentUser.php:
[b]PMF_Auth_AuthDb->checkLogin() in line 146: [/b]
            SELECT
                login
            FROM
                faqfaquserlogin
            WHERE
                login = 'cs.test'
/usr/local/apache2/htdocs/faq/inc/Logging.php:
PMF_DB_Mysql->nextID() in line 121: 
    	   SELECT
    	       MAX(id) AS current_id
    	   FROM
    	       faqfaqadminlog
/usr/local/apache2/htdocs/faq/inc/Logging.php:
PMF_User_UserData->get() in line 123: 
            SELECT
                user_id
            FROM
                faqfaquserdata
            WHERE
                user_id = 0
/usr/local/apache2/htdocs/faq/admin/index.php:
PMF_Logging->logAdmin() in line 126: 
                INSERT INTO
                    faqfaqadminlog
                (id, time, usr, text, ip)
                    VALUES 
                (5, 1270783580, 0, 'Loginerror\\nLogin: cs.test\\nPass: ********', '10.7.13.34')
From the debug info, it seems that local user authentication is still in use, can anyone help solve ldap issue?

thanks very much
Thorsten
Posts: 15815
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: LDAP Authentication

Post by Thorsten »

Hi,

do you see any logs from your LDAP server?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply