How to reset administrator password in ServiceDesk Plus.

How to reset administrator password in ServiceDesk Plus.



1. Access your ServiceDesk Plus server and browse to [your drive]:\ManageEngine\ServiceDesk\bin.
2. Click changeDBServer.bat.  Information on the configured database will be displayed. 
  If the database is MSSQL, go to the SQL Management Studio, go to the 6th step.
3. If the database is PGSQL , connect to it. 
4. Click the Windows icon and select  Command Prompt (Run as administrator).
5. Go to [your drive]:ManageEngine\ServiceDesk\pgsql\bin and run 
If SDP versions less than 10.5/ AE version less than 6.5:
psql.exe -U postgres -p 65432 -d servicedesk -h 127.0.0.1

If SDP versions greater than 10.5/ AE version greater than 6.5:
psql.exe -U sdpadmin -p 65432 -d servicedesk -h 127.0.0.1
Enter password sdp@123 when prompted.

6. Copy and paste the below query and press Enter.

To Fetch Active SDOrgAdmin (after
SDP 11.0 / AE 6.6):

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 ar.name like 'SDOrgAdmin' and sd.status='ACTIVE';


To Fetch Active SDAdmin (before SDP 11.0 / AE 6.6 )
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 ar.name like 'SDAdmin' and sd.status='ACTIVE';
7. From the result, select the user and use their login_id in the below query to reset the password.
If the version/build is or greater than SDP 10.5 / AE 6.5 execute the below query:

PGSQL:
update AaaPassword set password='$2a$12$fZUC9IK8E/AwtCxMKnCfiu830qUyYB/JRhWpi2k1vgWLC6iLFAgxa', SALT=pgp_sym_encrypt('$2a$12$fZUC9IK8E/AwtCxMKnCfiu','SChar@123Mas!er','s2k-mode=1, cipher-algo=aes256'), algorithm='bcrypt' where 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= Login_ID);

MSSQL:
OPEN SYMMETRIC KEY ZOHO_SYMM_KEY DECRYPTION BY CERTIFICATE ZOHO_CERT;update AaaPassword set password='$2a$12$fZUC9IK8E/AwtCxMKnCfiu830qUyYB/JRhWpi2k1vgWLC6iLFAgxa', SALT= EncryptByKey(Key_GUID('ZOHO_SYMM_KEY'), N'$2a$12$fZUC9IK8E/AwtCxMKnCfiu'), algorithm='bcrypt' where 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= Login_ID);CLOSE SYMMETRIC KEY ZOHO_SYMM_KEY ;


NOTE FOR MSSQL:  APPLICATION SHOULD BE RUNNING WHILE EXECUTING THE ABOVE QUERY
I f the version/build is less than SDP 10.5 / AE 6.5 execute the below query:
update AaaPassword set password='$2a$12$fZUC9IK8E/AwtCxMKnCfiu830qUyYB/JRhWpi2k1vgWLC6iLFAgxa', SALT='$2a$12$fZUC9IK8E/AwtCxMKnCfiu', algorithm='bcrypt' where 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= Login_ID);


If the version/build is less than SDP 9.3 / AE 6.2   execute the below query:
update AaaPassword set password='2+uYvE3SLfO3XaHl+CaGLA==', SALT='1103287238602', algorithm='MD5' where 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=Login_ID);

 After resetting the password, you will be able to log in with password as 'admin'. Ensure that you have selected 'Local Authentication' in the "Log on to" drop-down list. 

8. If Local Authentication is disabled in the application, execute the query below in the database to enable it.
update globalconfig set paramvalue='true' where parameter='Enable_LocalAuthentication_Login';


9. Restart ServiceDesk Plus once after executing the above query.

      New to ADManager Plus?

        New to ADSelfService Plus?

          Resources

              • Related Articles

              • Script to reset password and enable local authentication

                Purpose :       Interactive mode of resetting the password of a user by entering his username. Also, to enable local authentication in the application. This script can be used in builds on or above 9400 version How the script works ?      Invoking ...
              • How Pass Through Authentication Works

                NTLMV2 is a protocol supported by Microsoft in order to overcome the security issues of NTLMV1 and the same is implemented in ServiceDesk Plus. What's the protocol defines? When a service wants to initiate the Single-sign-on, first a secure channel ...
              • How to integrate ServiceDesk Plus with OpManager

                Log in to ServiceDesk Plus. 1. Go to Admin>>General Settings >>ME Integrations. 2. Click on OpManager. 3. Provide the OpManager server name, port number, and protocol information. 4. Click Test Connection and Save. Log in to OpManager. 1. Go to Basic ...
              • How to migrate ServiceDesk Plus from one server to another

                Following are the steps to move data from the existing server to a new server, Step 1: Stop ManageEngine ServiceDesk Plus service. Step 2: Kindly Upgrade ServiceDesk Plus if required. Refer to the link below to check if you are in the latest version, ...
              • How to redirect ServiceDesk Plus URL from HTTP to HTTPS

                Follow the steps given below to set up the redirection from HTTP to HTTPS, For version 9.4 and above Step 1: Go to the below location and open the file 'server.xml' with a word pad and add the below entry in the file as shown in the image. ...