cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to login to Visual Admin

Former Member
0 Kudos

Hi All,

I have successfully installed SAP NetWeaver 2004s Java Trial Version on my local machine but when I try to login to visual admin using the administrator account I get the user authentication failed. I followed the blog enclosed below to reset my administrator password - /people/benny.schaich-lebek/blog/2004/04/13/how-to-unlock-your-java-admin but, when i reach step7 i am still unable to login to the visual admin using SAP*. I have set the security->userstores->UME User Store to Emergency User Store in the config tool.

I have also reset the superadmin account to active and password to init1234 within the com.sap.security.core.ume.service -> ume.superadmin.activated = TRUE and ume.superadmin.password=init1234 in the config tool.

Where could I have gone wrong?

Thanks for all your help in advance.

regards,

Divya

Accepted Solutions (0)

Answers (5)

Answers (5)

former_member185864
Active Participant
0 Kudos

Hi,

If you forgot or lock "Administrator or J2EE_ADMIN" password just follow below steps:

<b>STEP-1: Enable "SAP*"</b>

1.Start the Config Tool C:\usr\sap\<SID>\<engine-instance>\j2ee\configtool\configtool.bat

Ex: D:\usr\sap\F02\JC00\j2ee\configtool --> configtool.bat

2.Goto cluster-data --> Global server configuration --> services --> com.sap.security.core.ume.service

3.Double-click on the property "ume.superadmin.activated = TRUE"

4.Double-click on the property "ume.superadmin.password=<Enter any password ex: abc123>"

5.Save.

6.Restart the engine.

<b>STEP-2: Login with "SAP*" into portal</b>

1. http://<host>:<Port>/useradmin/index.jsp

2. Enter userid / password as" SAP* / <password ex: abc123>"

3. Search for "Administrator" user

4. Reset or change password for "Administrtor"

<b>STEP-3: Disable "SAP*"</b>

1.Start the Config Tool C:\usr\sap\<SID>\<engine-instance>\j2ee\configtool\configtool.bat

Ex: D:\usr\sap\F02\JC00\j2ee\configtool --> configtool.bat

2.Goto cluster-data --> Global server configuration --> services --> com.sap.security.core.ume.service

3.Double-click on the property "ume.superadmin.activated = FALSE"

4.Save.

5. Restart the engine.

<b>STEP-4: Login with "Administrator"</b>

1. http://<host>:<Port>/useradmin/index.jsp

2. Enter userid / Password as "Administrator / <password>

3. it will ask change password just change it.

<b>Thanks,

Nagaraju</b>

Former Member
0 Kudos

Hi Divya,

After you launch Visual admin, enter with the default password u gave in installation . (Example abcd1234). It will ask u for changing to the new password. Which u will configure in the secure store using the Config tool. Hope this will help.

Regards,

Sam

Former Member
0 Kudos

Hi,

did you restarted the java instance as specified in step 6 or not?

it was working fine with me

check port

regards

Samrat

Former Member
0 Kudos

Hi,

As shyam informed you that you can unlock the user from SU01 if you have ABAP+JAVA

else you need to activate the emergeny user in configtool and restart the java instance.

then try to loginto visula admin using SAP* user

if still problem exists let me know

D.Samrat

Former Member
0 Kudos

Hi Samrat,

I have just the Java stack and hence I have activated the SAP* user but I am still unable to logon user the SAP* user, its gives a user authentication failed message.

regards,

divya

Former Member
0 Kudos

Hi Divya and everyone concerned,

I am facing the exact same problem like you did. I just can't seem to be able to log on at the Visual Administrator, but i made all necessary changes in the config tool - at least i think so

So my question is: Could you already solve it?

Thanks to any ideas and answers!

Best regards,

Tobias

Former Member
0 Kudos

Hi Tobias,

I tried all kinds of solution but was only able to fix the problem as described below:

1. I created a webdynpro component which checks for the user's password set as that set during master password step or config tool. I realised it does not set the password and hence I reset the admin password using the webdynpro code enclosed below:

This code checks the password assigned:

try{

IUserFactory fact = UMFactory.getUserFactory();

IUserSearchFilter filter = fact.getUserSearchFilter();

filter.setDisplayName("*",ISearchAttribute.LIKE_OPERATOR,false);

ISearchResult result = fact.searchUsers(filter);

if(result.getState()==ISearchResult.SEARCH_RESULT_OK){

while(result.hasNext()){

String uniqId = (String)result.next();

IUser user = fact.getUser(uniqId);

String name = user.getUniqueName();

IUserAccount acct = UMFactory.getUserAccountFactory().getUserAccountByLogonId(name);

IUserAccount acct1 = UMFactory.getUserAccountFactory().getUserAccount(acct.getUniqueID());

boolean check = acct.checkPassword("init*123");

if(check){

wdComponentAPI.getMessageManager().reportSuccess(name);

String email = user.getEmail();

wdComponentAPI.getMessageManager().reportSuccess(email);

wdComponentAPI.getMessageManager().reportSuccess(String.valueOf(check));

}

}

}

}catch(UMException e){

wdComponentAPI.getMessageManager().reportSuccess(e.getLocalizedMessage());

}

Code enclosed to change password:

try

{

IUserFactory fact = UMFactory.getUserFactory();

IUserSearchFilter filter = fact.getUserSearchFilter();

filter.setDisplayName("Administrator",ISearchAttribute.LIKE_OPERATOR,false);

ISearchResult result = fact.searchUsers(filter);

if(result.getState()==ISearchResult.SEARCH_RESULT_OK){

while(result.hasNext()){

String uniqId = (String)result.next();

IUser user = fact.getUser(uniqId);

String name = user.getUniqueName();

IUserMaint newUser = UMFactory.getUserFactory().getMutableUser(uniqId);

newUser.setEmail("administrator@divya.com");

newUser.save();

newUser.commit();

IUserAccount uacc1 = UMFactory.getUserAccountFactory().getUserAccountByLogonId(name);

IUserAccount uacc = UMFactory.getUserAccountFactory().getMutableUserAccount(uacc1.getUniqueID());

uacc.setPassword("init1234");

uacc.setPasswordChangeRequired(false);

uacc.save();

uacc.commit();

wdComponentAPI.getMessageManager().reportSuccess(newUser.getEmail());

}

}

}catch (UMException umex){

wdComponentAPI.getMessageManager().reportSuccess(umex.getLocalizedMessage());

}

2. I logged into the portal with the administrator user and password set above in step1.

3. I created a new user with all admin rights for myself within the portal. This ensures who have an alternate backup admin account.

4. Logged into the visual admin with the new password set for administrator.

This worked for me.

Thanks,

Divya

Former Member
0 Kudos

Hi,

thats gr8 you have solved problem your self and also published in your link

thank for this solution.

Samrat

Former Member
0 Kudos

Hi Rao,

you are not supposed to use SAP* ( this user is emergency user)

you need to login as either j2ee_admin / administrator and password which you gave during installation.

regards

D.samrat

Former Member
0 Kudos

Hi Samrat,

Since I am unable to login with j2ee_admin/administrator I am trying to reset these passwords using visual admin. In order to login to visual admin I turned on the SAP* user on. But I am not able to login to visual admin with the SAP* user as well..Any other inputs?

Regards,

Divya

Former Member
0 Kudos

Try logging onto configtool (\usr\sap\<SID>\DVEBMGS<SYSNO>\j2ee\configtool\configtool.bat) and changing the password for admin/password/<SID>

Then log onto Admin Console with this new password and J2EE_ADMIN.

Former Member
0 Kudos

Hi Barry,

No this doesn work as I guess my admin account is locked in order to unlock it I enabled the emergency user. But once I try and login with the SAP* user I get the following error.

Error while connecting

com.sap.engine.services.jndi.persistent.exceptions.NamingException: Exception while trying to get InitialContext. [Root exception is com.sap.engine.services.jndi.persistent.exceptions.SecurityException: Naming permission jndi_get_initial_context not defined on the server.]

Any idea whats wrong?

Thanks for all your help in advance.

Regards,

Divya

Former Member
0 Kudos

Hi Divya,

Can you check/unlock the user j2ee_admin in abap stack client 001 and try to login to the visual admin.

Cheers,

Shyam