Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Account locking is a security feature in Identity Server that prevents users from logging in to their account and from authenticating themselves using their IS account. A user account can be locked in one of the following ways:

...

  1. Start the IS server if you haven't already and log in to the management console using admin credentials.
  2. Navigate to Claims>List on the Configure menu and select the http://wso2.org/claims claim dialect. For more information about claims, see Claim Management
  3. Select the Account Locked claim and click Edit.

  4. Select the "Supported by Default" checkbox and click Update. This is done to make the "Account Locked" status appear in the user's profile. 
  5. Navigate to Users and Roles>List>Users on the Main menu and click on User Profile of the user you want to lock. 
  6. If it is the first time this particular account is being locked, a textbox will appear in front of the Account Locked field as seen below. To lock the account, type true in the textbox and click Update.

...

4. Restart the server once the configuration changes are made.
 

Note
titleNote

For the account locking/unlocking process, IS uses the following Identity claims to store the related attributes


Storing claims in the user store 
 

By default, IS stores these claim values in the JDBC datasource configured in the identity.xml file. If needed, you can configure IS to store the claim values in the userstore as well. For that, open the

  1. Open the <IS_HOME>/repository/conf/identity/identity-mgt.properties file and change

...

  1. the Identity.Mgt.User.Data.Store

...

  1.  property to the datastore you have configured.

    Code Block
    languagebash
    Identity.Mgt.User.Data.Store=org.wso2.carbon.identity.mgt.store.UserStoreBasedIdentityDataStore
    Info

    The default valueorg.wso2.carbon.identity.mgt.store.JDBCIdentityDataStore is the Identity datasource. Changing the store

...

  1. to UserStoreBasedIdentityDataStore

...

  1.  ensures that identity claims are stored in the userstore.

...

 

Code Block
languagebash
Identity.Mgt.User.Data.Store=org.wso2.carbon.identity.mgt.store.UserStoreBasedIdentityDataStore

...

  1.  

  2. The identity claims mentioned below should be mapped correctly to the attributes in the underlying user store.

...

  1. For more information on how to do this, see Claim Management.

...

  1.