Showing posts with label ODSM. Show all posts
Showing posts with label ODSM. Show all posts

Friday, 5 December 2014

[OID]: Disabling the User Account in OID

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.
  • We need to add an optional attributes 'orclIsEnabled'.



       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 :-)

Saturday, 29 November 2014

Creating User in Oracle Internet Directory(OID)


Follow below steps to create a new user in OID:


1) Log in to weblogic console & check whether ODSM (Oracle Directory Server Management) console is up & running:

    http://<host:port>/console


    Note: The console for ODSM is 'wls_ods1' in my setup & running on port 7005.

2) Now log in to the ODSM Console - http://<host:7005>/ODSM


     Note: This setup is a freshly created, so we need to create a connection first.


3) Create a User Connection:




  • Provide the details such as hostname, password etc.



4) New connection is created:




5) Choose Data Browser Option:



  •  Expand the tree dc=com


  •  Double Click the user cn=orcladmin



6) Now we need to create a user: Here i have selected the option 'Create a new entry like this one'




7) Complete the process for new user creation:


  • Choose 'Next' on first page:


  •  Provide 'cn' entry name & choose the relative distinguished name as 'cn'


  •  On Optional Properties page, i have provided the new user password. Although this is a non-mandatory field.


  •  Choose 'Finish' to complete the process.


  •  New user is created.... Hurrahhhhh !!!!!!



Enjoy :-)