on 12-08-2006 6:43 AM
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
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
did you restarted the java instance as specified in step 6 or not?
it was working fine with me
check port
regards
Samrat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.