Tuesday, September 29, 2015

OIM-OAM-OAAM Integration Part2

To circumvent the issues discussed in Part1, the user should be forced to login by signing out the user from the current OAM session and forcing the user to login using the TAP scheme.

In some cases this could be a potential user experience issue.

Steps to follow

  •  Create a temporary holding page where the OAM session is cleared by calling the OAM logout url. 
  • Update the configurations for passwordexpiryurl,first time login url in oam-config.xml file with the above URL (holding page/jump page ) 
  • Update the version in oam-config.xml.
  • Restart OAM Domain.
  • Provide an end_url that is protected with TAP Scheme. This forces the user to login with the TAPScheme and continue with password changes/registration as needed.


I will update the blog with a solution more cleaner than the above if I find any. Also, please comment on the blog if anyone finds a more cleaner solution.


Wednesday, April 22, 2015

OIM-OAM-OAAM Integration Part1

In this two post series, I will not discuss about how the integration is done between OIM-OAM-OAAM, but I will discuss more on what works and what doesn't with the integration.

Product versions: 11gR2 PS2

OIM-OAM-OAAM Integration  can be performed by following  the documentation from oracle.

What works well with the integration

In the integration, OIM Resources are protected with TAP Scheme. 
For the password management flows and the Challenge Q&A , OIM delegates the functionalities to OAAM.  The following scenarios works well as documented.
  • Self-Service User Creation
  • Create User (from UI/ reconciliation)
  • Change Password
  • Forgot Password
  • Challenge Questions Registration
  • Challenge Questions Modification
For all these flows to work, the resources the user accesses should be protected with TAP scheme.
What if the resources are not protected with TAP Scheme, instead with Kerberos ? I will discuss that scenario later in this post.

When all the resources are protected with TAP scheme, in each of the scenarios mentioned above, based on the "obchangepassword" and based on the user registration in OAAM, password change screens and/or user registration flow in OAAM are triggered.

In the case of self-service user creation, "obpasswordchangeflag" is set to false, so the user will go through only "registration" flow in OAAM.

Create User - "obpasswordchangeflag" flag is set to "true", so the user will go through the "password change" and "registration" flows in OAAM.

"Change Password" and  "Challenge Questions Modification" - OAAM links are displayed in the "My Information" page and the corresponding flows are triggered in OAAM.

"Forgot Password" - As the resources are protected with TAP scheme, OAAM login page is displayed and the "forgot password" link points to OAAM url.

What doesn't work well with OOTB Integration

As I mentioned earlier, what if all my resources are not protected with TAP scheme?
In any enterprise, kerberos or WNA is most commonly used for internal users, and probably TAP for external users. In this scenarios, the following assumptions are  made with the integration
  • Challenge Q&A are part of OAAM
  • Password Management is part of OAAM
  • Resources are protected with WNA /Kerberos Authentication Scheme.
What happens when a new user created by the administrator logs in to the system?
  • The user tries to access a resource protected with Kerberos Scheme.
  • "obpasswordchangeflag" is true , and OAM redirects the user to  OIM "firstlogin" page. If the OIM urls are not protected with TAPScheme, the firstlogin page in OIM is displayed - Not expected
  • "oaam.uio.oam.integration.stepup.enabled" - This property in OAAM controls if stepup needs to be performed or not,
    • When this value is true, stepup is not performed but OAM sends the existing cookie to OAAM. A jump screen with"Login In progress"  message is displayed. But, because the "obpasswordchangeflag" is set to "true" - OAM redirects to "firstlogin" page and the loop fails giving a "Bad Request" page - Not Expected
    • When this value is false, stepup is performed. when OIM urls are protected with TAP Scheme, the user is taken through the password management and registration flows , but still gets the "first login" page not the resource he tried to access - Not Expected
What should be done to avoid these issues? I will discuss them in the upcoming post. Stay tuned.

Note: This is the behavior I have noticed in the labs I have setup. Comment on this post, if you have seen a different behavior. 

Wednesday, December 24, 2014

Metalink Notes for OIM and OAM Patch History

Master Note for Fustion Middleware Patch set updates: 1494151.1
OIM : Doc ID 1676169.1
OAM : Doc ID 736372.1


Thursday, November 6, 2014

Oracle DB - Configure Password - No Expiry

There are times when service accounts /accounts used by applications should be configured with no restrictions on password expiry.

Create a new security profile

To create a security profile , administrator access to the db is required.

CREATE PROFILE serviceaccounts_profile LIMIT PASSWORD_LIFE_TIME unlimited;

Attach the profile to the users (service accounts in db)

ALTER USER <Schema Name> PROFILE serviceaccounts_profile;

eg: ALTER USER DEV_OIM PROFILE serviceaccounts_profile;

Reset the password of the user after attaching the new profile.

ALTER USER <Schema Name> identified by <New Password>;

Eg: ALTER USER DEV_OIM identified by <new password>;


Unlock the user, if the user is already locked.

ALTER USER <Schema Name> ACCOUNT UNLOCK;

Eg: ALTER USER DEV_OIM ACCOUNT UNLOCK;

Now, query the database to verify if the 'profile' and 'password expiry date' has been updated.


Use WLST to update OIM details (Host Name/ Port) in OAM integrated environment

Using WLST, OIM host name and port number can be updated runtime.
The values can be updated only through online mode.

Invoke the WLST command from IAM home directory/common/bin ($ORACLE_HOME/common/bin)

Eg: /data/app/oracle/Middleware/Oracle_IDM1/common/bin



Connect using weblogic administrative credentials.


In the serverconfig context, enter one of the below commands,

For ssl :
updateOIMHostPort(hostName = "hostname", port = "ssl port", secureProtocol = "true")

For non-ssl:
updateOIMHostPort(hostName = "hostname", port = "non ssl port", secureProtocol = "false")


The updated URL's can be verified from the OAM login  page.

OIM11gR2 PS2 - LDAP Sync - Referential Integrity

OUD - Adding ACL


ACL to give access on an OU in OUD.

dn: dc=ovm,dc=com
changetype: modify
add: aci
aci: (target = "ldap:///dc=ovm,dc=com")(targetattr = "*")(version 3.0; acl "Allow OIMAdminGroup add, read and write access to all attributes"; allow (add, read, search, compare,write, delete, import,export) (groupdn = "ldap:///cn=oimAdminGroup,cn=systemids,dc=ovm,dc=com");)

 
./ldapmodify -h iamnode1.ovm.com -p 1389 -D "cn=Directory Manager"  -j  /data/workspace/oudpassword.txt -c -v -f /data/workspace/aclmodify.ldi

To check the added ACL

./ldapsearch -h iamnode1.ovm.com -p 1389 -D "cn=Directory Manager"  -j  /data/workspace/oudpassword.txt -b "dc=ovm,dc=com" -s base "objectclass=*" aci


Referential Integrity needs to be enabled on the underlying LDAP server for rename of role names /move users to a different organizational unit.

To enable referential integrity on a OUD server, run the following command

./dsconfig -h <hostname> -p <adminserver port> -D "cn=Directory Manager" -j "/data/stage/ldapsync/oudpassword.txt" -n set-plugin-prop --plugin-name "Referential Integrity" --set enabled:true --trustAll

Configure the following system property in OIM to indicate "referential integrity" is enabled on the underlying LDAP Server.

XL.IsReferentialIntegrityEnabledInLDAP - Default Value is "FALSE" , change this to "TRUE"
LDAPEvaluateContainerRulesForModify - true

Tested Environment
OIM11gR2 PS2

OAM Custom Authentication Plugin - Deployment issues

In OAM, when the load balancer is setup to run on SSL and the underlying access servers are configured on non-ssl ports on weblogic, distribution of the plugin may fail.

To fix this issue, change the load balancer url to a single OAM server url (non-ssl) url and try to distribute and activate the plugin. It should work as expected.

Tested Environment:

OAM 11g R2 - PS1