How to retreive db credentials?
How to view the encrypted Ezeelogin database password from Ezeelogin configuration file ( /usr/local/etc/ezlogin/ez.conf ) version 2 ?
The DB password are encrypted in Ezeelogin configuration (From ezeelogin version version 7.17 for better security . The new configuration file would look as follows.
In order to decrypt the database password from ezeelogin configuration file, run the following command on the jump server
[[email protected] ~]# php /usr/local/ezlogin/eztool.php -show_db_credentials
After executing the above command you can see the db credentials as shown below:
[[email protected] ~]# 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][email protected]]G
Table Prefix: vbsrc_