cancel
Showing results for 
Search instead for 
Did you mean: 

Change SDM password

sid-desh
Advisor
Advisor

Hi All,

I have lost my sdm password and i want to change it now. I have the administrator password for my J2EE engine however i cannot connect to the SDM server from the Remote GUI client.

Can anyone help me in this regard

Thanks

Sidharth

Accepted Solutions (0)

Answers (6)

Answers (6)

Private_Member_739866
Participant
0 Kudos

Hi Sidharth Deshpande,

Check that jdk is installed or not in your server.

If installed uninstall it and delete all environment variables if set.

Then stop the sapinst.

Restart your server.

and start sapinst again.

It will work sure.

I have faced this problem recently.

Regards,

Paramvirsinh Jetawat

former_member229542
Active Participant
0 Kudos

What are you talking about, Willis???

Former Member
0 Kudos

Hi Folks,

We followed the following sequesce of steps and it worked perfect for us. This procedure is for UNIX environment

for AS/400 we just have to call qsh and then follow the below steps. I have provided the steps for Windows too below

Login to OS as <SID>admin

cd /usr/sap/<SID>/<JC68>/SDM/program

1) ./StopServer.sh "sdmhome=/usr/sap/<SID>/<JC68>/SDM/program"

2) ./sdm.sh jstartup "sdmhome=/usr/sap/<SID>/<JC68>/SDM/program" "mode=standalone"

3) ./sdm.sh changepassword "sdmhome=/usr/sap/<SID>/<JC68>/SDM/program" "newpassword=XYZ1234"

4) ./sdm.sh jstartup "sdmhome=/usr/sap/<SID>/<JC68>/SDM/program" "mode=integrated"

5) ./StartServer.sh "sdmhome=/usr/sap/<SID>/<JC68>/SDM/program"

For Windows:

1) cd <Drive>\usr\sap\<SID>\DVEBMGS01\SDM\program

2) StopServer.bat "sdmhome=E:\usr\sap\<SID>\DVEBMGS01\SDM\program"

3) sdm jstartup "mode=standalone" "sdmhome=E:\usr\sap\<SID>\DVEBMGS01\SDM\program"

4) sdm changepassword "sdmhome=E:\usr\sap\<SID>\DVEBMGS01\SDM\program" "newpassword=<abc123>"

5) sdm jstartup "mode=integrated" "sdmhome=E:\usr\sap\<SID>\DVEBMGS01\SDM\program"

5) StartServer.bat "sdmhome=E:\usr\sap\<SID>\DVEBMGS01\SDM\program"

Reg,

Kishore Gadewar

Former Member
0 Kudos

Hi,

The following procedure worked for me on RHEL4, Oracle10 and SAP NetWeaver 7.0:

- determine master ABAP client (via Config Tool, search for 'client');

- check if J2EE_ADMIN is locked, and if the presumed password is correct (connect via SAPGUI);

- ensure that J2EE_ADMIN's password is correctly entered in the Secure Store (via Config Tool, details in SAP note 701654).

Then launch JSPM again and proceed with the deployment.

I also tested the following procedure to change SDM password (as user <sid>adm, from directory

/usr/sap/<SID>/DVEBMGS<nn>/SDM/program):

1. StopServer.sh

2. sdm.sh jstartup mode=standalone

3. sdm.sh changepassword sdmhome=/usr/sap/<SID>/DVEBMGS<nn>/SDM/program newpassword=<password>  #note: special characters aren't always accepted !

4. sdm.sh jstartup mode=integrated

5. StartServer.sh

Former Member
0 Kudos

But if the server installed on remote computer.

The command line

with the above commands to change the sdm password cannnot be run

It gives error ..

any solution after telnetting the server at the message port

Or

Is there any way to change it from visual composer or management console.

regards,

swathi rao

Benny
Product and Topic Expert
Product and Topic Expert
0 Kudos

There is not.

Regards,

Benny

Former Member
0 Kudos

From SAP Note 701654:

Symptom

After changing the administrator user's password on the J2EE Engine, deployment aborts with the error message:

ERROR: Cannot connect to Host: [...] with UserName: [...]

Check your Login Info.

Exception is:

com.sap.engine.services.jndi.persistent.exceptions. NoPermissionException

Exception during getInitialContext operation.

Wrong security principles/credentials

or

[Root exception is ...: User not authorized.]

Note: If the error message contains the following text, then the error is due to a connection problem and not the changed Administrator's password.

Cannot create new RemoteLoginContext instance

In this case, check the host name, port number and availability of the J2EE Engine.

Reason and Prerequisites

The administrator user's password is not only stored in the active user store, but also in secure storage in the file system so that certain applications such as the Software Deployment Manager (SDM) can use it to connect to the J2EE Engine.

Therefore, when you change the administrator user's password in the user store, you must also update the entry in secure storage in the file system. Otherwise, the SDM attempts to connect to the J2EE Engine using the old password and you receive the error message mentioned above.

Solution

Use the Config Tool to change the entry in secure storage as follows:

1. Start the Config Tool.

(Execute <SAPj2eeEngine_install_dir> \configtool\configtool.bat.)

2. Select the secure store node.

The configuration for the secure storage in the file system appears.

3. Select the admin/password/<SID> entry.

4. Enter the administrator user's new password in the "Value" field and choose "Add".

5. Choose "File" --> "Apply" to save the data.

Note: Contrary to the message that appears, you do not need to restart the server or cluster for this change to take effect.

6. Finally restart SDM server.

Result

The administrator user's password is changed in secure storage and you can deploy the application using the SDM.

Former Member
0 Kudos

Just a tip, PLEASE RESTART THE ENTIRE SAP INSTANCE, restarting only SDM will not work, you can bet on that.

Regards.

EP7.0 / win2003 + sqlserver / sun jdk 1.4.2_19

esameer
Participant
0 Kudos

Hi Siddharth,

You can refer to my blog esameer hxxp://esameer.blogspot.com/ (replace xx tt)

which mentions a step by step procedure with screen shots on how to reset the SDN password if you have lost SDM as well as Administrator password.

Please keep me postedm if you fnd it usefull and need some extra help with NWDS.

Enjoy!!

Samir Kulkarni

call: +919922111479

blog: hxxp://esameer.blogspot.com/

Former Member
0 Kudos

Hi,

from what I've found on SDN, no single post covered all steps necessary to change the SDM password. So I will sum my experience up and share it with you :

Open the command line.

Go to the SDM\program directory.

Execute :

sdm jstartup "mode=standalone" "sdmhome=C:/usr/sap/<SID>/<Instance>/SDM/program"

Wait for a confirmation that your setting was saved.

Execute:

sdm changepassword "sdmhome=C:/usr/sap/<SID>/<Instance>/SDM/program" "newpassword=abc123"

Again wait for a positive confirmation.

Execute :

sdm jstartup "mode=integrated" "sdmhome=C:/usr/sap/<SID>/<Instance>/SDM/program"

Just to make sure it's set back to integrated.

NOTICE the "/" instead of the "\" in the sdmhome path !

Former Member
0 Kudos

hi philipp koock,

thank for your message but when i typed in , the command to make it standalone i got an syntax error saying return code :12 so i did not run the command to change the password .

i am new to nwd and trying to work with it

Former Member
0 Kudos

Thanks Philipp Koock.

alfonso
Explorer
0 Kudos

Letter perfect, many thanks !

Former Member
0 Kudos

Philipp,

Thanks for putting this out here. I worked like charm!

Rex L. Farris

former_member307453
Discoverer
0 Kudos

> Hi,

>

> from what I've found on SDN, no single post covered

> all steps necessary to change the SDM password. So I

> will sum my experience up and share it with you :

>

> Open the command line.

>

> Go to the SDM\program directory.

>

> Execute :

> sdm jstartup "mode=standalone"

> "sdmhome=C:/usr/sap/<SID>/<Instance>/SDM/program"

>

> Wait for a confirmation that your setting was saved.

>

> Execute:

> sdm changepassword

> "sdmhome=C:/usr/sap/<SID>/<Instance>/SDM/program"

> "newpassword=abc123"

>

> Again wait for a positive confirmation.

>

> Execute :

> sdm jstartup "mode=integrated"

> "sdmhome=C:/usr/sap/<SID>/<Instance>/SDM/program"

>

> Just to make sure it's set back to integrated.

>

> NOTICE the "/" instead of the "\" in the sdmhome path

> !

Thank you Phillip! This works just fine.

Since I was working on a windows server I went to the SDM home in the cmd. prompt, thus being able to leave out the path parameters.

This gives me 3 short cmd's.:

1) sdm jstartup "mode=standalone"

2) sdm changepassword "newpassword=abc123"

3) sdm jstartup "mode=integrated"

Thanks again, this was very helpfull!

Best Regards Peter Egmose Hansen

Former Member
0 Kudos

Hi

the solution which u gave for changing the sdm password is not work for us.can u suggest me any other solution.............

former_member198228
Active Participant
0 Kudos

Hello Siddarth,

Please take a look at the following file. There is a field called hashed password and you can rehash it.

C:/usr/sap/J2E/JC00/SDM/program/config/sdmrepository.sdc

Hope that helps

Regards

Abdul

sid-desh
Advisor
Advisor
0 Kudos

Hi Abdul,

By rehashing of password you mean just type in a new one there and restart the J2EE server or something else.

Thanks for the help.

Regards

Sidharth

former_member198228
Active Participant
0 Kudos

Hi Siddharth,

try to put yPLDEBe3oOb6H2mmjJ0zztOgw/A in that field. This is the hash for the password being sdm.

Hope that helps

Regards

Abdul

former_member198228
Active Participant
0 Kudos

I would actually suggest you to change the password using command line

changepassword command

sdm changepassword sdmhome=<...> newpassword=<...> [password=<...>]

where

newpassword: New password

password: Old password. Since 6.30 SP5, this parameter has been set optional so that the password can be changed without reference to its current value. If this parameter is specified, its value will be ignored.

Regards

Abdul

Former Member
0 Kudos

Abdul,

What is the "sdmhome" parm? I am not sure what value to put in there.

Thanks!

David

juergen_kremp
Explorer
0 Kudos

Hi,

set to program directory of SDM.

Example from my Windows based engine:

C:\usr\sap\JKS\JC00\SDM\program>sdm changepassword "sdmhome=C:/usr/sap/JKS/JC00/SDM/program" "newpassword=abc123"

Kind regards,

Juergen Kremp

Former Member
0 Kudos

Siddarth,

I had this problem too and was finally able to fix it. The hashed value for "sdm" is actually "yPLDEBe3oOb6H2mmjJ0zztOgw/A="

David

yonko_yonchev
Active Participant
0 Kudos

Hello everyone,

please refer to

for a discussion on changing the SDM password.

Regards,

Yonko

Former Member
0 Kudos

hi david ,

this helped me

RaminS
Participant
0 Kudos

Thanks Philip. That worked perfectly.

SDM is nothing but a big pain in the butt!

Message was edited by: Ramin Shafai