Hi
I am trying to setup ldap on my phpMyFAQ 2.6.11 install
I did not set it up when I first installed the faq but want the functionality now.
What would be required to set this up now?
============================================
I have tried the following
- verified my php has the ldap extension loaded.
- Contend of "config/constants_ldap.php"
$PMF_LDAP['ldap_mapping'] = array ('name' => 'cn', 'username' => 'cn', 'mail' => 'mail');
$PMF_LDAP['ldap_use_domain_prefix'] = true;
$PMF_LDAP["ldap_options"] = array ( LDAP_OPT_PROTOCOL_VERSION => 3, LDAP_OPT_REFERRALS => 0 );
$PMF_LDAP['ldap_use_sasl'] = false;
- Unable to find inc/ldap.php
- Enabled LDAP support from within the FAQ admin
=======================================================
Should I manually create ldap.php in inc with the following contents
<?php
$PMF_LDAP["ldap_server"] = 'ad.server.com';
$PMF_LDAP["ldap_port"] = '389';
$PMF_LDAP["ldap_user"] = 'AD\username';
$PMF_LDAP["ldap_password"] = 'XXXXXXX';
$PMF_LDAP["ldap_base"] = 'ou=staff,dc=ad,dc=server,dc=com';
Setting up ldap after upgrade
Moderator: Thorsten
Re: Setting up ldap after upgrade
Hi,
the last part has to be located in config/ldap.php and then it should work.
bye
Thorsten
the last part has to be located in config/ldap.php and then it should work.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Setting up ldap after upgrade
Thanks for the replyThorsten wrote:Hi,
the last part has to be located in config/ldap.php and then it should work.
bye
Thorsten
placed ldap.php into config/ but authentication is rejected at the login screen.
is there a way to some some sort of debug/log for ldap auth?
Thanks
Re: Setting up ldap after upgrade
Hi,
if it's rejected you should see errors in the error log of your LDAP server.
bye
Thorsten
if it's rejected you should see errors in the error log of your LDAP server.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Setting up ldap after upgrade
I figured out what was wrong with help from the Adminlog.
When logging in I was using a simple username but once I changed it to ad\username everything worked fine.
Thanks
When logging in I was using a simple username but once I changed it to ad\username everything worked fine.
Thanks
Re: Setting up ldap after upgrade
Hi,
cool news!
bye
Thorsten
cool news!
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist