How to disable LDAP configuration

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
romainp
Posts: 24
Joined: Mon May 09, 2016 4:14 pm

How to disable LDAP configuration

Post by romainp »

Hi!
I wanted to start a new install of the 4.0.14 version. All the setup was ok and I was able to signin with the admin user I have created.
Then wanted to enable ldap so I tried a configuration that was working prior on a 3.x version and then enable ldap in the admin pannel but got some issue. I am currently troubleshooting the connection. My problem is that eeven if I fix my ldap.php parameter or even disable it completly I connot login as admin local anymore because the ldap configuration in the database (I guess) is still active.
Is there a way to disable the ldap configuration in the database to fix what is not working so the local admin account can still login?

Thanks!
romainp
Posts: 24
Joined: Mon May 09, 2016 4:14 pm

Re: How to disable LDAP configuration

Post by romainp »

Code: Select all

UPDATE faqconfig SET config_value = 'false' WHERE config_name = 'ldap.ldapSupport';
help my local admin to login. Now I can set the correct parameters for ldap.
romainp
Posts: 24
Joined: Mon May 09, 2016 4:14 pm

Re: How to disable LDAP configuration

Post by romainp »

This ldap config works for me but I need to test more to be sure that I have the correct setting. I am using openldap.

Code: Select all

<?php
// Main LDAP server, format the server as "ldap://127.0.0.1"
$PMF_LDAP['ldap_server'] = 'ldap://ldapserver.domain.lan';
$PMF_LDAP['ldap_port'] = 389;
$PMF_LDAP['ldap_user'] = 'cn=ldapreadonly,dc=domain,dc=lan';
$PMF_LDAP['ldap_password'] = 'arandompassword';
$PMF_LDAP['ldap_base'] = 'ou=people,dc=domain,dc=lan';

and In the admin page:

Code: Select all

LDAP mapping for name, "cn" when using an ADS: cn
LDAP mapping for username, "samAccountName" when using an ADS: uid
LDAP mapping for email, "mail" when using an ADS: mail
LDAP attribute for dynamic user binding, "uid" when using an ADS: uid
Every other settings are not set or set as default
Thorsten
Posts: 15759
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: How to disable LDAP configuration

Post by Thorsten »

Hi,

the only switch is to enable/disable the LDAP settings. If they are enabled, for every user who tries to login the LDAP connection will be used.

Do you need another behaviour?

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