Friday, November 23, 2012

WebLogic unlock account with WLST

/opt/oracle/fmw11_1_1_5/osb/common/bin/wlst.sh

connect('myuser', 'weblogic1', 't3://hqchnesoa104.acme.com:7001')

serverRuntime()

cd('ServerSecurityRuntime/osbts1as/DefaultRealmRuntime/myrealm/UserLockoutManagerRuntime/UserLockoutManager')

cmo.clearLockout('weblogic')

ls()

-r--   InvalidLoginAttemptsTotalCount               21171
-r--   InvalidLoginUsersHighCount                   2
-r--   LockedUsersCurrentCount                      1
-r--   LoginAttemptsWhileLockedTotalCount           20909
-r--   Name                                         UserLockoutManager
-r--   Type                                         UserLockoutManagerRuntime
-r--   UnlockedUsersTotalCount                      50
-r--   UserLockoutTotalCount                        51

-r-x   clearLockout                                 Void : String(userName)
-r-x   getLastLoginFailure                          Long : String(userName)
-r-x   getLoginFailureCount                         Long : String(userName)
-r-x   isLockedOut                                  Boolean : String(userName)
-r-x   preDeregister                                Void :



see also for Java code:
http://weblogic-wonders.com/weblogic/2010/11/12/userlockout-feature-of-weblogic-server/





No comments: