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

Printer Support

Microsoft SQL Versions

Source:  https://support.microsoft.com/en-us/help/321185/how-to-determine-the-version-edition-and-update-level-of-sql-server-an -- Check version -- PRINT @@VERSION Microsoft SQL Server 2012 (SP1) - 11.0.3000.0 (X64)  Oct 19 2012 13:38:57  Copyright (c) Microsoft Corporation Enterprise Edition (64-bit) on Windows NT 6.2 <X64> (Build 9200: ) (Hypervisor) -- Check version -- PRINT @@VERSION Microsoft SQL Server 2012 (SP1) - 11.0.3128.0 (X64)  Dec 28 2012 20:23:12  Copyright (c) Microsoft Corporation Enterprise Edition (64-bit) on Windows NT 6.2 <X64> (Build 9200: ) -- Check version -- PRINT @@VERSION Microsoft SQL Server 2012 ( SP4 ) (KB4018073) - 11.0.7001.0 (X64)  Aug 15 2017 10:23:29  Copyright (c) Microsoft Corporation Enterprise Edition (64-bit) on Windows NT 6.3 <X64> (Build 9600: ) (Hypervisor) -- Check version -- PRINT @@VERSION Microsoft SQL Server 2012 ( SP4-GDR ) (KB4057116) - 11.0.746...

Hydra: Notes

Hydra v9.1 (c) 2020 by van Hauser/THC & David Maciejak - Please do not use in military or secret service organizations, or for illegal purposes (this is non-binding, these *** ignore laws and ethics anyway).