Skip to Content

How to retreive db credentials?

How to view the encrypted Ezeelogin database password from Ezeelogin configuration file (/usr/local/etc/ezlogin/ez.conf)?


Overview: This article helps admin users to retreive Ezeelogin database credentials, including the steps on decrypting the encrypted Ezeelogin database password from Ezeelogin configuration file located at /usr/local/etc/ezlogin/ez.conf.


 Step 1: Below shows the encrypted database password from Ezeelogin configuration file located at /usr/local/etc/ezlogin/ez.conf

root@gateway:~# cat /usr/local/etc/ezlogin/ez.conf 

cver 2   <--- This tell the configuration file version
system_folder /var/www/ezlogin/
www_folder /var/www/html/ezlogin/
uri_path /ezlogin/
force_https no
db_host 192.168.0.196
db_port 3306
db_name ezlogin_dryq
db_user ezlogin_yvlzh
db_pass vHO2mUQj7Zg3/EhrhccngvPJTsM8ZY/RTtEmByqiq9Y0BugANykui7ZeFfpxKDWYycJnluq9XD4xTR3wJddHe29IVy0m0wbuMcb6Econ/n4=   <--- The Encrypted Database password
db_prefix vdizq_
cookie_encryption_key XYEO8RM5KQgc3kX6XcTuDgx1UkiQOS/pZ5Yi9fdm38HkAK7eqzdkG6FVLRnPC+1Oh6WQIaVzdqilkPqKnz7lApeY3XVMpNSYfz9+wFZXI0E=
cookie_name rvn
cookie_path /ezlogin/
admin_user ezadmin
mysql_encrypt no

Step 2: In order to decrypt the database password from ezeelogin configuration file, run the following command on the jump server and provide the Ezeelogin administrator password.

root@gateway:~# php /usr/local/ezlogin/eztool.php -show_db_credentials

Step 3:  After executing the above command, the database credentials will be displayed as shown below which includes decrypted Ezeelogin database password:

root@gateway:~# php /usr/local/ezlogin/eztool.php -show_db_credentials

                   _             _
  ___ _______  ___| | ___   __ _(_)_ __
 / _ \_  / _ \/ _ \ |/ _ \ / _` | | '_ \
|  __// /  __/  __/ | (_) | (_| | | | | |
 \___/___\___|\___|_|\___/ \__, |_|_| |_|
                           |___/


#########################
# Ezeelogin Tool        #
#########################

Checking environment... done
Checking license... done (0)

Enter the Ezeelogin administrator password: Admin!2345
Database credentials:
Host: localhost
Port/Socket: /var/lib/mysql/mysql.sock
Database: ezlogin_phmxgg
Username: ezlogin_pyy
Password: P4&][*V]Qx3jn3n7A6@p6p7]G
Table Prefix: vbsrc_

The DB password is encrypted in Ezeelogin configuration file '/usr/local/etc/ezlogin/ez.conf' from ezeelogin version 7.17 for better security .


Related Articles:

Database connectivity credentials and configuration file

Cannot Read DB Password