on 10-04-2005 5:54 PM
We are on EP 6 SP2 PL 34. When i click on Locked Users, it gives Java exception,our LDAP is MS ADS. We are assuming that a locked portal user has been deleted from LDAP. Did anybody face this situation.
We really need to this feature to unlock users,Is there a sample code to get the locked users and unlock them programmatically ?
Thanks for any suggestion.
Here is exception
[code]
Error occurred when performing Locked Users. Contact your system administrator.
java.lang.Throwable
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:232)
at java.beans.Beans.instantiate(Beans.java:202)
at java.beans.Beans.instantiate(Beans.java:46)
at sapportalsjsperror.doContent(_sapportalsjsp_error.java:69)
at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.service(PortalComponentItemFacade.java:343)
at com.sapportals.portal.prt.core.broker.PortalComponentItem.service(PortalComponentItem.java:817)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:386)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:463)
at com.sapportals.portal.prt.core.async.AsyncPortalComponentResponse.include(AsyncPortalComponentResponse.java:708)
at com.sap.security.core.admin.ComponentAccessToLogic.gotoPage(ComponentAccessToLogic.java:129)
at com.sap.security.core.admin.UserAdminLogic.getDeactivatedUsers(UserAdminLogic.java:1992)
at com.sap.security.core.admin.UserAdminLogic.executeRequest(UserAdminLogic.java:626)
at com.sapportals.portal.prt.component.usermanagement.admin.UserAdminComponent.doContent(UserAdminComponent.java:71)
at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:301)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:138)
at com.sapportals.portal.prt.core.async.AsyncIncludeRunnable$1$DoDispatchRequest.run(AsyncIncludeRunnable.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at com.sapportals.portal.prt.core.async.AsyncIncludeRunnable.run(AsyncIncludeRunnable.java:376)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:729)
at java.lang.Thread.run(Thread.java:479)[/code]
Tegala ,
R u facing the same prob in Sys Admn obj Lock.
Just try with Sytem Admin - > Monitoring - > obj Locking
and select the search cretria as User id .
Enables you to locate objects being edited and currently in locked mode. You can manually release or take over locked objects.
Rgds,
J
"Do Award Points if this is helful"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tagela,
Go to <b>User Administration -> User -> Search</b>. Enter the name of the user you want to unlock -> Enter. Once you get the name of the user in the list of the table.
Press the Unlock button there at the bottom of that table.
If this doesnt solve the problem. Then Click the checkbox for the user and click the edit option (You will see the pencil picture as a edit logo). There you will see the <b>Account Status</b> of this user. It will be reflecting as Inactive. Unlock the user from there and restart the portal. This time he will be active and unlocked.
I hope this will solve the problem.
Regadrs
Pravesh
PS: Please consider rewarding points if helpful.
Hi Parvesh,
Thanks for your detailed expl on how to unlock.I don't think portal resart is necessary when you unlock user. I knew this process.
Let me explain you my problem again. Your solution works for one user,I tried by using wild chars to get unlocked users (for e.g.a*),but only set of them are returned.
Let's say there are 100 users locked and i don't know who they are.best solution to unlock them is from Usermanagement/users/locked users, and this feature is failing for some reason. Any ideas.
Hi Tegala,
Sorry for misunderstanding your problem. I think you can get the list of all the locked user programatically, but you have to work for it. I can give you pointers to the Interface and the API's for getting that, but you have to code for it.
Please visit the link:
<b>https://media.sdn.sap.com/javadocs/NW04/SP9/ume/com/sap/security/api/IUserAccount.html</b>
In this the following functions can help you:
<b>1) isLocked()
2) setLocked()
3) getLockReason()
4) lockDate()</b>
For unlocking them may be the function <b>setLocked()</b> can help you. Personally I have not done this, but I feel this could help you. Please let me as well if this helped you.
Regards
Pravesh
PS: Please reward points if helpful.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.