Skip to main content

ManageEngine ServiceDesk Plus - Reset password

Let's reset the default administrator's password to 'admin'

# Search for psql
sudo find / -name psql
# Change directory
cd /home/tuyendq/ManageEngine/ServiceDesk/pgsql/bin
# Login to postgres, database servicdesk
./psql -U postgres -p 65432 -d servicedesk -h localhost
# Check login_id with SDAdmin role (administrator)
select al.login_id"Login ID",au.first_name"Name",al.name"Login Name" from aaaauthorizedrole aar left join aaarole ar on aar.role_id=ar.role_id left join aaaaccount aa on aar.account_id=aa.account_id left join aaalogin al on aa.login_id=al.login_id left join aaauser au on al.user_id=au.user_id left join sduser sd on au.user_id=sd.userid where aar.role_id=2 and sd.status='ACTIVE';
# Reset login_id's password to 'admin'
update AaaPassword set password='$2a$12$fZUC9IK8E/AwtCxMKnCfiu830qUyYB/JRhWpi2k1vgWLC6iLFAgxa', SALT='$2a$12$fZUC9IK8E/AwtCxMKnCfiu' where algorithm='bcrypt' and password_id in (select ap.password_id from aaaaccpassword ap left join aaaaccount ac on ac.account_id=ap.account_id left join aaalogin al on al.login_id=ac.login_id where al.login_id=2);
# #Quit
# \q

Popular posts from this blog

IIS: Delete cached files on server running IIS

Delete cached files on server running IIS When changing css, javascript files, check to delete if IIS still caches old files in the default folder C:\inetpub\temp\IIS Temporary Compressed Files\<sitename>\$^_gzip_D^\ Apply to: IIS 8.5

Expo: Notes

Expo is an open-source platform for making universal native apps for Android, iOS, and the web with JavaScript and React.

Linux command: du - disk usage

Where have all my storage gone? du summarize disk usage of the set of FILEs, recursively for directories.