How do i change the authentication from ldap to internal in the database?

I am no longer able to login after i switched to ldap authentication. How do i switch back to normal authentication?

The admin user that was created at the time of installation would still be able to login and switch to normal authentication.
however, if you still want to disable this from the database
connect to the ezeelogin database. The database name and table name can be found from /usr/local/etc/ezlogin/ez.conf

Connect to the database and select the settings table..

mysql> select * from wadhik_settings where name='web_auth';
+----+----------+-------+---------------------+
| id | name | value | mtime |
+----+----------+-------+---------------------+
| 37 | web_auth | ldap | 2016-10-25 22:39:51 |
+----+----------+-------+---------------------+
1 row in set (0.00 sec)

mysql> update wadhik_settings set value='internal' where name='web_auth';
Query OK, 1 row affected (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 0

mysql> select * from whghik_settings where name='web_auth';
+----+----------+----------+---------------------+
| id | name | value | mtime |
+----+----------+----------+---------------------+
| 37 | web_auth | internal | 2016-10-26 08:55:44 |
+----+----------+----------+---------------------+
1 row in set (0.00 sec)


This would switch the authentication back to 'internal' from 'ldap'

0 (0)
Article Rating (No Votes)
Rate this article
    Attached Files
    There are no attachments for this article.
    Related Articles RSS Feed
    Configure Nginx webserver on Jump server / Bastion host
    Viewed 6958 times since Fri, Nov 3, 2017
    How to pass environment variable through jump server?
    Viewed 1040 times since Tue, Jul 17, 2018
    what port should i open on my server firewall to fetch ezeelogin license?
    Viewed 2805 times since Wed, Aug 16, 2017
    Configuration and error log files to check for troubleshooting
    Viewed 4705 times since Thu, Jun 15, 2017
    How to configure Yubikey two factor authentication in ssh ?
    Viewed 5258 times since Thu, Jun 15, 2017
    How do i configure Ezeelogin to authenticate using Windows_AD(Pam-Ldap) in centos?
    Viewed 3465 times since Wed, Feb 7, 2018
    How can i disable MySQL strict mode ?
    Viewed 2225 times since Tue, Feb 12, 2019
    Enable or Disable or force ssl for the web interface
    Viewed 2532 times since Thu, Jun 15, 2017
    How can i reset the default global key ?
    Viewed 917 times since Fri, Jun 8, 2018
    Custom private key / public key pair in ssh gateway Solution
    Viewed 2667 times since Thu, Jun 15, 2017