Skip to main content

Posts

Showing posts from 2014

Account Provisioning through API - OIM 11g R2

public class AccountManagement { OIMClient client=ClientOIM.initialise(); oracle.iam.provisioning.api.ApplicationInstanceService appInstanceService=client.getService(oracle.iam.provisioning.api.ApplicationInstanceService.class); ProvisioningService provisioningService=client.getService(ProvisioningService.class); ClientOIM oim=new ClientOIM(); public void provisionAccount(String accName,String userID) { try { if (accName!=null && !accName.equals("") && userID!=null && !userID.equals("") ) { ApplicationInstance appInstance=appInstanceService.findApplicationInstanceByName(accName); long appKey=appInstance.getApplicationInstanceKey(); System.out.println("AppKey is "+appKey); FormInfo formInfo=appInstance.getAccountForm(); String formKey=String.valueOf(formInfo.getFormKey()); System.out.println("formKey is "+formKey); HashMap parentData=new HashMap(); /*Madator

Searching and creating Organization Through API- OIM 11g R2

public class OrgManagement { static OrganizationManager orgManager=null; static OIMClient client=null; static Organization organization=null; public static void createOrg(String orgName, String orgType) { try { client=ClientOIM.initialise(); if (orgName!=null && orgType!=null) { orgManager=client.getService(OrganizationManager.class); System.out.println("OrgManagement :: createOrg :: org is "+orgManager); HashMap<String, Object> mapAttrs = new HashMap<String, Object>(); mapAttrs.put(OrganizationManagerConstants.AttributeName.ORG_NAME.getId(),orgName); mapAttrs.put(OrganizationManagerConstants.AttributeName.ORG_TYPE.getId(),orgType); Organization org=new Organization(null,mapAttrs); orgManager.create(org); System.out.println("OrgManagement :: createOrg ::  Organization created"); } }  catch (OrganizationManagerException e) { // TODO Auto-generated catch block e.printStackTrace();

Installation of Oracle Unified Directory (OUD) 11.1.2.2 - High Level Steps

Download the OUD from the Fusion Middleware download page: http://www.oracle.com/technetwork/middleware/id-mgmt/downloads/oid-11gr2-2104316.html  Unzip the Software and run ./runInstaller -jreloc <JDK_location> from Disk1. Provide the existing middleware location and it will install the OUD home under middleware (Oracle_OUD1). OUD can be installed in 3 different modes 1. Replication gateway 2. OUD-Proxy and 3. Directory server. Navigate to <Middleware_home>/Oracle_OUD1/ and run oud-proxy-setup for installing OUD as proxy server, oud-replication-gateway-setup for replication mode and oud-setup for directory server. Run oud-setup command and provide details like ports, root domain values to complete the setup. After running oud-setup command a instance of OUD would be created as as_inst1 in middleware. to start and stop the OUD navigate to <Middleware_home>/as_inst1/OUD/bin and run start-ds and stop-ds commands. OVD/OID ODSM can not connect to OUD for da

Providing System Admin Role to a user : OIM 11g R2 PS2

Login to the identity console with existing Admin credentials (xelsysadm). Create a user to whom System admin roles have to be assigned. Click on the Organization and search for Top organization. Select the System Admin role from the Admin Roles tab and select assign from action. Search the newly created user and add selected. Click apply and user will be provided the system role. Other Admin roles can also be provided by same method.

To Show Certification configuration in Sysadmin Console- OIM 11g R2 PS2

By default the certification configuration is not seen when a Admin user logs into the sysadmin console. To see this configuration login to the sysadmin console -->System Configuration. In the system configuration tab search for System Property "Display Certification or Attestation" If both is given as the value then certification and attestation both will be shown. To show only certification or attestation provide the value of either certification or attestation. 

Creating Role through OIM API - 11gR2

package com.oim.utilities; import java.util.HashMap; import oracle.iam.identity.rolemgmt.api.RoleManager; import oracle.iam.identity.rolemgmt.api.RoleManagerConstants; import oracle.iam.identity.rolemgmt.vo.Role; import oracle.iam.platform.OIMClient; public class RoleManagement  { static RoleManager roleManager=null; static OIMClient client=null; @SuppressWarnings("null") public static void createRole(String roleName){ System.out.println("RoleManagement :: createRole :: role name is "+roleName); try  { if (roleName!=null) { HashMap<String, Object> mapAttrs = new HashMap<String, Object>();; mapAttrs.put(RoleManagerConstants.ROLE_NAME, roleName); mapAttrs.put(RoleManagerConstants.ROLE_DISPLAY_NAME,roleName); mapAttrs.put(RoleManagerConstants.ROLE_DESCRIPTION, roleName); Role role = new Role(mapAttrs); // Initialising the OIM Connection client=ClientOIM.initialise(); System.out.println("RoleManagemen

OIM connection with API- 11g R2

package com.oim.utilities; import java.util.HashSet; import java.util.Hashtable; import java.util.Set; import Thor.API.tcUtilityFactory; import oracle.iam.identity.exception.NoSuchUserException; import oracle.iam.identity.exception.SearchKeyNotUniqueException; import oracle.iam.identity.exception.UserLookupException; import oracle.iam.identity.usermgmt.api.UserManager; import oracle.iam.identity.usermgmt.vo.User; import oracle.iam.platform.OIMClient; public class ClientOIM { private static OIMClient oimClient = null;     private static tcUtilityFactory util = null;     static UserManager userManager = null;     private static String hostName = "oim.server.com";     private static String port = "14000";     private static String userName = "xelsysadm";     private static String password = "Welcome123";     private static String serverURL = "t3://" + hostName + ":" + port;     private static String authC

UI Customization in OIM 11g R2 (Adding new Header Section)

Login to the sysadmin console and create a new sandbox and activate it. Click on System Entities --> User and add new UDF field as Manager. Create Manager field as check box. After adding the field publish the sandbox. Add Custom Attributes to the User Interface (Create User Form): 1.       Log into the Self Service interface. Create and activate a sandbox 2.       Go to Administration --> Users and click Create 3.       Fill out the required fields; Last name, Organization, User Type 4.       Click Customize 5.       Click on View --> Source 6.       Note:  If you are asked “Are you sure you want to edit this task flow” , click Edit 7.       Click on showDetailHeader:  Other Attributes and click Add Content 8.       Click on Web Components --> Open 9.       Click on Show Detail Header--> Add, then click close 10.   Cut the new object, and paste (after) showDetailHeader: Other attributes 11.   Find the newly created showDetailHeader:  Head

Monitoring and Managing OIM/OAM with Enterprise Manager 12C (EM)

Push agent on Target Host: On the target login as root and run the following commands:                             visudo Change Defaults !visiblepw to Defaults visiblepw. Change Defaults requiretty to Defaults !requiretty.(Changes directly can be made to /etc/suoders file with root user) Add oracle ALL=(ALL) ALL Log in to Enterprise Manager as an ADMIN user. Select Setup ->Add Target->Add Target Manually. Select the Add Host Targets option and click Add Host. Add the host names and select the platform. Click Next. Provide the Agent Install Location, click in the Instance directory field to auto-generate the path, create a named credential for the agent user (provide access to root user either by using sudo or pbrun), and clear the value in the port field (this will enable automatic selection of the port), click Next. Review all entered values, and click Deploy Agent. Agent is deployed on the target. Discover Oracle WebLogic Domain Log i

Enterprise User security(EUS) with OVD and Novell eDirectory

EUS set up for OVD 11.1.1.7 and Novell eDirectory 8.8 SP8 Prerequisites: Ø   Oracle Virtual Directory version 11.1.1.7 is already installed and running. Ø   Novell eDirectory server Version 8.8 SP8 is already installed and running. Ø   iManager version 2.7.7 is already installed. Password management plugin is downloaded and installed on iManager. RBS configuration wizard has run. Ø   Oracle Database (Version 11.2.0.1.0) is already installed and running.  Configuring Novell eDirectory server for EUS Integration For EUS integration a universal password policy has to be implemented on eDirectory and Admin should have access to retrieve the password of the user.   For setting up the universal password policy login to iManager with Admin credentials. Go to ‘Roles and Tasks’ tab and click Passwords. Click Password policies. Click New to create new password policy. Provide the container name, policy name, description and password change message.