Let's disable the User Account in OID:
Note: We are considering that you have created a user account in OID. In case you have not follow Creating User Account in OID
Follow the steps:
1) Before we lock/disable the user account, let's first access the protected resource.
- Access the url: http://<host:port>/resource
Note: I have logged in using username - clk, that i will be disabling in the OID Server.
2) Now let's log in to the OID Server:
- Log in to OID: http://<host:port>/odsm
- Choose the OID Connection:
- Provide the password & connect.
- Now open the 'Data Browser' tab & expand the 'dn=com' tree.
- Select the user you want to disable: I will be disabling 'clk' user
- Now we need to add an attribute that will disable the account. Open the 'Attributes' tab on the right pane.
Note: Once you have added the 'orclIsEnabled' the attribute, than do 'Add Attributes'.
- Default value of 'orclIsEnabled' attribute is 'ENABLED' but we need to set it as 'DISABLED'
Note:
- Once you set the attribute value, click 'Apply' on the top right.
- Also remember that value of this field has to be set as 'DISABLED' even if you set as 'FALSE' it won't work. Account will be still accessible.
3)
- Access the Protected Resource URL: http://<host:port>/resource
- Provide the credentials, here i will be using 'clk' as username that i have disabled.
- And you see that when i tried to log in, it shows that 'User account is locked or disabled'....
Whooohoooh.... we have done it...
4) Now in case you need to enable the user account again, just set the attribute value:
orclIsEnabled=ENABLED
Enjoy :-)