In this page we detail how to change the passwords that you defined in the installation script of Datafari.
- Admin user into Datafari web application
Go to the Datafari admin page, then click into User Management → Modify Users
Then on the array, on the admin user line, click on the textbox with the label change the password and enter the password that you want. Validate with the Enter key on your keyboard.
- MCF admin password
Go to the Datafari admin page, then click into Connectors → Change MCF password
Enter the new password in the two textboxes and confirm.
- Change the Apache proxy passwords
Needs a SSH connection to the Datafari server and launch a shell script
See this page : Add different users in Apache proxy - Enterprise edition
- Change the password for PostgreSQL
Needs to directly modify different files with a SSh connection into the server
1.Stop datafari
cd /opt/datafari/bin bash stop-datafari.sh
2. Edit the pwd.conf file into pgsql folder :
nano /opt/datafari/pgsql/pwd.conf
And change for the password that you want.
3. Change the password into the Postgresql database :
export LD_LIBRARY_PATH=/opt/datafari/pgsql/lib cd /opt/datafari/pgsql bin/psql -U postgres
\password postgres
\q
3. We need to have the password obfuscated for MCF so go to /opt/datafari/mcf/mcf_home/obfuscation-utility
cd /opt/datafari/mcf/mcf_home/obfuscation-utility
And launch the script and indicate your new password, for example if I want to choose datafari as password :
bash obfuscate.sh datafari
There will be a line that appears. This string is the obfuscated password. Copy it.
4. Edit the file /opt/datafari/mcf/mcf_home/properties-global.xml and replace the postgresql password with the obfuscated password :
nano /opt/datafari/mcf/mcf_home/properties-global.xml
Change the line <property name="org.apache.manifoldcf.dbsuperuserpassword.obfuscated" and replace the value with the obfuscated password
5. Edit the file /opt/datafari/tomcat/conf/mcf-postgres.properties and replace the postgresql password with the obfuscated password :
nano /opt/datafari/tomcat/conf/mcf-postgres.properties
Change the line PASSWORD= and replace the value with the obfuscated password
6. Edit the file /opt/datafari/tomcat-mcf/conf/mcf-postgres.properties and replace the postgresql password with the obfuscated password :
nano /opt/datafari/tomcat-mcf/conf/mcf-postgres.properties
Change the line PASSWORD= and replace the value with the obfuscated password
7. Start Datafari
cd /opt/datafari/bin bash start-datafari.sh