From: Thierry H. <t_...@ya...> - 2007-03-19 16:33:08
|
Hello, I'm just starting to use phpESP. It looks quite simple, and should really fit my needs... thanks! I'm running: - phpESP v1.8.2, - Apache/2.0.55 (Ubuntu) mod_ldap_userdir/1.1.8 PHP/5.1.6 - MySQL 5.0.24a-Debian_9-log I'm just having one issue that prevents me from moving it into production: how to identify users (some surveys are private) with an external LDAP database ? I modified the config file (phpESP.ini.php) to use ldap authentication mechanism: // Choose authentication type: { 'default', 'ldap' } $ESPCONFIG['auth_type'] = 'ldap'; // LDAP connection information // (Set these values if you choose 'ldap' as the authentication type.) $ESPCONFIG['ldap_server'] = 'ldap://ldap.mycompany.com'; $ESPCONFIG['ldap_port'] = '389'; $ESPCONFIG['ldap_dn'] = 'ou=People,o=mycompany.com'; $ESPCONFIG['ldap_filter'] = 'uid='; but it does not work... (I get the message: "[ Incorrect User ID or Password, or your account has been disabled/expired. ]" in the survey login page... What else do I need ? I'm a little bit confused how the tool could make the link between the realm authorized for those private surveys and the user in the ldap database ??? Moreover, when I look at the code, the function survey_auth from file espauth-ldap.inc does not seem to proceed with any ldap request at all, but only use the table respondent_table from the local MySQL database... What am I missing there ? Thanks in advance for your help, -- Thierry ___________________________________________________________________________ Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire. http://fr.mail.yahoo.com |