Sunday, 8 September 2019

Not able to run 'xclock' command using MobaXterm

Issue: Not able to run 'xclock' command using MobaXterm.

Error:
$ xclock
MobaXterm X11 proxy: Authorisation not recognised
Error: Can't open display: localhost:10.0

Solution:
Step1: open MobaXterm->Setting->X11->set 'X11 remote access' to full
Step2: export DISPLAY=<IP-Address>:0.0
example: export DISPLAY=127.0.0.1:0.0

now xclock should work without issues.

How to check WebLogic (WLS) server version

There four approaches to check WLSs version:

Here you go-

Approach-1:
 execute below command from the path: $WL_HOME/server/lib
 java -cp weblogic.jar weblogic.version

 Approach-2:
. $WL_HOME/server/bin/setWLSEnv.sh
java weblogic.version

Approach-3:
. $WL_HOME/server/bin/setWLSEnv.sh
  cd $MW_HOME/utils/bsu
./bsu.sh -prod_dir=$WL_HOME -status=applied -verbose -view

Approach-4:
WLS console->Servers->Admin Server->Monitoring

How to view a draft request in OIM (Oracle Identity Manager)

Tracking a Draft Request:

A requester can save a request for modifying, submitting, or deleting it later. This is useful if the requester is awaiting for additional information before submitting the request.

Only the requester can modify, submit, or delete the draft request. Users such as system administrators(ex: XELSYSADM) and beneficiaries cannot view draft requests saved by others.

Then how to track a draft request:

Note: Only requester can view the draft request using below approach.

In Identity Self Service, under Requests, click Track Requests. The Track Requests page is displayed.

From the Status list, select the Equals search operator, and then select Request Draft Created from the adjacent list.

In the Search Results region, from the Show list, select the Requests Raised by Me filter.

(Optional) Use any other search criteria as described in "Tracking a Request".

Click Search. The search results is displayed in a tabular format.

The draft request cannot be withdrawn or closed. To delete a draft request, select a request and click Delete Request.

To open a draft request to modify or submit it, click the link in the Request ID column. In the Edit Draft Request page, you can click Submit to submit the draft request. If the Submit button is not active, select and edit each cart item in the Cart Items region, and then click Ready to Submit. To modify and save the request data, click Update Draft Request.

Not able to provision user on AD from OIM

Issue:
Exception Occurred while provisioning user on active directory from OIM(Oracle Identity Manager):
Error while creating user [[org.identityconnectors.framework.common.exceptions.ConnectorException: There is no such object on the server.^M

Investigation & Cause:
Check oim_server1-digaonistic.log and connector server logs for more details and to find the cause of provisioning failure.
This indicates that the specific object could not be found in directory. This issue may occur when:
1.    The Manager Name value is incorrect i.e the DN of the user's manager is incorrect.So when a provisioning requests goes to AD,it tries to set the user's manager with populated value during provisioning ,so the manager should be already present and should match.If incorrect manager DN is set ,then AD doesn't find a match and returns a "no such object on server exception".
2.    The OU where you're trying to provision user isn't exist.

Solution:
1.   Check the manager name is correctly populated. Manager Name is not a mandatory attribute, but if populated, it should be in proper DN format.(AD expects manager’s DN name)
 e.g: DN: cn=abc,ou=lmn,dc=corp,dc=com in AD,where abc is user's manager.

2.    Make sure that the organizational unit that you want to use exists in the Active Directory.

Not able to withdraw a submitted request from SOA worklist

Issue:
Not able to withdraw a submitted request from SOA worklist.

Error:
Action WITHDRAW on task 4719aca8-d4f9-4aad-b700-ea857fdb4c34 cannot be performed by User1.
Make sure that the action is valid with respect to the current state of the task or ensure that the user has privilege to perform this action on the workflow task.
 ORABPEL-30036, The operation withdraw on instanceid 1234 failed since the definition is not enabled.

Root Cause:
Privilege/permission issue on SOA approval task.

Solution:
-Login to soa composed as admin user(weblogic) using below link
  http://soa-host:port/soa/composer
-Open respective human task in edit mode
-Navigate to task actions option
-provide withdraw access to creator, save & commit.
That's it, you'll be able to withdraw the request.



Not able to open Deployment Manager (import/export) in OIM (Oracle Identity Manager)

Issue:
Not able to open Deployment Manager (import/export) in OIM (Oracle Identity Manager)

Solution:
* Un-installed existing JDK (1.8u121) from my laptop.
* Removed java temp files from below location, remove 'java' folder.
C:\Users\<username>\AppData\LocalLow\Sun
* Installed Jre 6u35(http://download.oracle.com/otn/java/jdk/6u35-b10/jdk-6u35-windows-i586.exe)
* I was able to access Deployment Manager.
* Then I've installed my previous JDK (1.8u121) back.

Sunday, 19 May 2019

Maven could not resolve dependencies

I've come across below issue while working on Maven project, wanted to share how it was resolved.
Error:
Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.1.5.RELEASE

Solution:
It is related proxy information in setting.xml (C:\Users\Jag\.m2\setting.xml) file under <proxies></proxies> tag. Somehow there was a proxy server details added under above tag, that caused connection issue.

In short - Make sure setting.xml appear like below when you don't use any proxy server.

<proxies>
</proxies>

Thank you for referring my blog, please post your comments for any queries/suggestions..Have a nice time :-) 

Friday, 6 July 2018

Migration/update default keystore of Oracle Identity Manager (OIM)

Product:

Oracle Identity Manager (OIM) - Version 11.1.2.3

Symptoms:

After upgrading jdk version to latest Security Eexceptions were seen in the SOA server logs post approving access request in OIM.

Error message:
oracle.fabric.common.PolicyEnforcementException: FailedAuthentication : The security token cannot be authenticated.
Supplemental Detail      at oracle.fabric.common.AbstractSecurityInterceptor.processResult(AbstractSecurityInterceptor.java:180)
at oracle.fabric.common.BindingSecurityInterceptor.processRequest(BindingSecurityInterceptor.java:95)

Caused by: oracle.wsm.security.SecurityException: WSM-00138 : The path to the certificate is invalid.
oracle.wsm.security.policy.scenario.processor.Wss11X509TokenProcessor.verifyRequest(Wss11X509TokenProcessor.java:1166)

Cause:

Latest JDK has more security limitations i.e. it only supports SHA2 singing algorithm and at the other hand OIM default keystore isn't SHA2 so it has led to trigger above exceptions.

Solution:

OIM default keystore needs to be migrated to SHA2 using below steps:

List the details of existing keystore:
-------------------------------------
cd $JAVA_HOME/jre/bin/
./keytool -list –v –keystore <DOMAIN_HOME>/config/fmwconfig /default-keytore.jks 
-storepass <kestore-password>

Delete the existing “xell” and “xeltrusted” alias :
-------------------------------------------------
$JAVA_HOME/jre/bin/keytool -delete 
-alias xeltrusted 
-keystore <DOMAIN_HOME>/config/fmwconfig /default-keytore.jks 
-storepass <kestore-password> 

$JAVA_HOME/jre/bin/keytool -delete 
-alias xell 
-keystore <DOMAIN_HOME>/config/fmwconfig /default-keytore.jks 
-storepass <kestore-password> 

Generate a new keypair :
----------------------
$JAVA_HOME/jre/bin/keytool -genkeypair 
-keystore <DOMAIN_HOME>/config/fmwconfig/default-keytore.jks 
-keyalg RSA 
-sigalg SHA256withRSA 
-keypass <kestore-password> 
-storepass <kestore-password> 
-alias xell 
-dname "CN=myhost, OU=Identity, O=My Corporation,C=US" -keysize 2048

Export self-signed certificate of keystore:
------------------------------------------
$JAVA_HOME/jre/bin/keytool -exportcert 
-keystore <DOMAIN_HOME>/config/fmwconfig /default-keytore.jks -v 
-alias xell 
-storepass <kestore-password> -rfc 
-file /tmp/cert.cer

Import the above exported certificate in same keystore with “xeltrusted” alias only:
-----------------------------------------------------------------------------------
$JAVA_HOME/jre/bin/keytool -importcert 
-keystore <DOMAIN_HOME>/config/fmwconfig /default-keytore.jks 
-alias xeltrusted 
-file /tmp/cert.cer 
-storepass <kestore-password> -noprompt

Post Migration Steps:
Now you need to update private key i.e. xell (<kestore-password>) password in CSF using the EM console. 
Note: If same password is used for generating the new key i.e. “xell” which is used for default keystore before this change, then you can skip this.
  1. Login to EM console.
  2. In Oracle Enterprise Manager, expand WebLogic Domain.
  3. Right-click the domain name, and select Security, Credentials. The Credentials page is displayed.
  4. In the Credential column, expand the “oim” map.Under “oim” map, we are having two CSF keys named as “xell”.
  5. Select “xell” CSF key and click the “Edit” option. Update the password field here with the password provided against <kestore-password> placeholder.
  6. Restart OIM servers.
I hope this solution will definitely help you to fix the issue.

Thank you for referring my blog, please post your comments for any queries/suggestions..Have a nice time :-) 

Monday, 27 November 2017

Error accessing OAM protected resource -Access Server has returned a fatal error OAM-02073

PRODUCT:
Oracle Access Manager (OAM)-version 11.1.2.2

SYMPTOMS:
Today I have faced issue in accessing OAM protected resource. After accessing protected URL faced below error instead of redirecting to SSO page.
ERROR CODE: Oracle Access Manager Operation Error, OAM-02073

Log Trace:
oam_diagnostics.logs
oblog.log
CAUSE:
1. Above errors indicate that in the Host Identifier configured for OAM Agent, there is no entry with agent-name defined under Host Name.
2. When adding additional entries for Host Name Variation section, the entry with agent-name should not be removed/replaced.

SOLUTION:
1. Login to oamconsole and double click on Host Identifiers link under Policy Configuration tab.
2. Enter name of the agent name and click Search
3. Click on agent name
4. under Host name variations
click +
add <agent name> under Host Name text box
keep port field empty
5. click apply

Thank you for referring my blog, please post your comments for any queries/suggestions..Have a nice time :)

Operation failed when PeopleSoft hrms tries to give a call to OIM to create/modify user

Issue: Operation failed when PeopleSoft hrms tries to give a call to OIM to create/modify user

PRODUCT: 
Oracle Identity Manager (OIM)-version 11.1.2.2
PeopleSoft HRMS

SYMPTOMS: 

ERROR CODE: java.lang.SecurityException: [Security:090304]Authentication Failed: User xelsysadm javax.security.auth.login.FailedLoginException: [Security:090302]Authentication Failed: User xelsysadm denied

Log Trace:
OIM logs:
[ACTIVE].ExecuteThread: '11' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 70cd304c0a93c1f8:-74d80069:156bc012dd9:-8000-00000000000002cc,0] [APP: PeopleSoftOIMListener] Class/Method: tcUtilityFactory/tcUtilityFactory(Hashtable env, tcSignatureMessage poUserIDMessage) encounter some problems: javax.security.auth.login.LoginException: java.lang.SecurityException: [Security:090304]Authentication Failed: User xelsysadm javax.security.auth.login.FailedLoginException: [Security:090302]Authentication Failed: User xelsysadm denied[[
javax.security.auth.login.LoginException: javax.security.auth.login.LoginException: java.lang.SecurityException: [Security:090304]Authentication Failed: User xelsysadm javax.security.auth.login.FailedLoginException: [Security:090302]Authentication Failed: User xelsysadm denied

PeopleSoftOIMListener] oracle.iam.connectors.psft.common.handler.APIProvider: initializeOIMApiFactory: Unable to login into OIM. Login would be retried.
[2016-08-24T17:09:48.403+05:30] [oim_server1] [ERROR] [] [ORACLE.IAM.CONNECTORS.PSFT] [tid: [ACTIVE].ExecuteThread: '11' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 70cd304c0a93c1f8:-74d80069:156bc012dd9:-8000-00000000000002cc,0] [APP: PeopleSoftOIMListener] oracle.iam.connectors.psft.common.handler.APIProvider: initializeOIMApiFactory: Login attempt #2 out of 2 failed.
[2016-08-24T17:09:48.404+05:30] [oim_server1] [ERROR] [] [ORACLE.IAM.CONNECTORS.PSFT] [tid: [ACTIVE].ExecuteThread: '11' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 70cd304c0a93c1f8:-74d80069:156bc012dd9:-8000-00000000000002cc,0] [APP: PeopleSoftOIMListener] oracle.iam.connectors.psft.common.handler.APIProvider: initializeOIMApiFactory: Login would be retried after 1000 miliseconds
[2016-08-24T17:09:49.406+05:30] [oim_server1] [ERROR] [] [ORACLE.IAM.CONNECTORS.PSFT] [tid: [ACTIVE].ExecuteThread: '11' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 70cd304c0a93c1f8:-74d80069:156bc012dd9:-8000-00000000000002cc,0] [APP: PeopleSoftOIMListener] oracle.iam.connectors.psft.common.listener.PeopleSoftOIMListener: process: Error logging into OIM
[2016-08-24T17:09:49.407+05:30] [oim_server1] [ERROR] [] [ORACLE.IAM.CONNECTORS.PSFT] [tid: [ACTIVE].ExecuteThread: '11' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 70cd304c0a93c1f8:-74d80069:156bc012dd9:-8000-00000000000002cc,0] [APP: PeopleSoftOIMListener] oracle.iam.connectors.psft.common.listener.PeopleSoftOIMListener: process: Error occurred while processing message[[
Error logging into OIM

CAUSE:
1. PeopleSoft application tries to login to OIM application before doing any user creations/modifications with oim admin user "xelsysadm".
2. But PeopleSoft is not able to login with Xelsysadm user credentials because "OIMAuthenticationProvider" is not present under Providers in weblogic Server where OIM managed server is running.Find below screenshot from WLS.
3. Ideally "OIMAuthenticationProvider" should present like below: 


SOLUTION:

1. Create OIMAuthenticator like below in weblogic Server where OIM managed server is running:
2. Restart the domain, you should be able to resove the issue.

Thank you for referring my blog, please post your comments for any queries/suggestions..Have a nice time :)

Sunday, 26 November 2017

Issue while starting OID services

Issue while starting OID services

PRODUCT:

Oracle Internet Directory 11g - Version 11.1.1.7

SYMPTOMS:

 While starting OID services getting below error:

ERROR CODE: [tid: 1] ProcessDispatcher: Exec of OIDLDAPD failed with error 13

Log Trace:
#################################
[OID] [NOTIFICATION:16] [] [OIDLDAPD] [host: localhost] [pid: 2245] [tid: 1] ProcessDispatcher:  Thread Started

[OID] [NOTIFICATION:16] [] [OIDLDAPD] [host: localhost] [pid: 2245] [tid: 2] DispatcherListener: Thread Started

[OID] [ERROR:8] [23124] [OIDLDAPD] [host: localhost] [pid: 2245] [tid: 1] ProcessDispatcher: The server with Process ID = 2270 is not running.

[OID] [NOTIFICATION:16] [] [OIDLDAPD] [host: localhost] [pid: 2245] [tid: 1] ProcessDispatcher: Starting OIDLDAP Server,PID=2416

[OID] [NOTIFICATION:16] [] [OIDLDAPD] [host: localhost] [pid: 2245] [tid: 1] ProcessDispatcher: Exec of OIDLDAPD failed with error 13

[OID] [ERROR:8] [23124] [OIDLDAPD] [host: localhost] [pid: 2245] [tid: 1] ProcessDispatcher: The server with Process ID = 2416 is not running.

[OID] [NOTIFICATION:16] [] [OIDLDAPD] [host: localhost] [pid: 2245] [tid: 1] ProcessDispatcher: Starting OIDLDAP Server,PID=2428

[OID] [NOTIFICATION:16] [] [OIDLDAPD] [host: localhost] [pid: 2245] [tid: 1] ProcessDispatcher: Exec of OIDLDAPD failed with error 13

[OID] [ERROR:8] [23124] [OIDLDAPD] [host: localhost] [pid: 2245] [tid: 1] ProcessDispatcher: The server with Process ID = 2428 is not running.

[OID] [NOTIFICATION:16] [] [OIDLDAPD] [host: localhost] [pid: 2245] [tid: 1] ProcessDispatcher: Starting OIDLDAP Server,PID=2442

[OID] [NOTIFICATION:16] [] [OIDLDAPD] [host: localhost] [pid: 2245] [tid: 1] ProcessDispatcher: Exec of OIDLDAPD failed with error 13

[OID] [ERROR:8] [23124] [OIDLDAPD] [host: localhost] [pid: 2245] [tid: 1] ProcessDispatcher: The server with Process ID = 2442 is not running.

[OID] [NOTIFICATION:16] [] [OIDLDAPD] [host: localhost] [pid: 2245] [tid: 1] ProcessDispatcher: Starting OIDLDAP Server,PID=2479

[OID] [NOTIFICATION:16] [] [OIDLDAPD] [host: localhost] [pid: 2245] [tid: 1] ProcessDispatcher: Exec of OIDLDAPD failed with error 13

[OID] [ERROR:8] [23124] [OIDLDAPD] [host: localhost] [pid: 2245] [tid: 1] ProcessDispatcher: The server with Process ID = 2479 is not running.



#################################

CAUSE:


$ORACLE_HOME/bin/oidldapd file have the wrong permissions:

SOLUTION:

Follow below action plan:

 cd $ORACLE_HOME/bin
chown oracle:oinstall oidldapd
chmod 0710 oidldapd

Note:
In my case OID services are configured with oracle user and oinstall

Now, OID services should come up.

Thank you for referring my blog, please post your comments for any queries/suggestions..Have a nice time :)

Saturday, 3 June 2017

Issue (Exception while seeding OIM Resource Policies in OAM) while running 'OIMUpgrade.sh online' script

Product: 

      Oracle Access Manager - Version 11.1.2.3 and later
     WebLogic - Version 10.3.6.0.12

Symptoms:

 While upgrading OIM/OAM integrated environment from 11.1.2.2 to 11.1.2.3 (PS3), "OIMUpgrade.sh online" script needs to be executed.
But it failed with following error:
    
        Error Code: SEVERE: Exception while seeding OIM Resource Policies in OAM
     Log trace:
#########################################
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Draft//EN">
<HTML>
<HEAD>
<TITLE>Error 404--Not Found</TITLE>
</HEAD>
<BODY bgcolor="white">
<FONT FACE=Helvetica><BR CLEAR=all>
<TABLE border=0 cellspacing=5><TR><TD><BR CLEAR=all>
<FONT FACE="Helvetica" COLOR="black" SIZE="3"><H2>Error 404--Not Found</H2>
</FONT></TD></TR>
</TABLE>
<TABLE border=0 width=100% cellpadding=10><TR><TD VALIGN=top WIDTH=100% BGCOLOR=white><FONT FACE="Courier New"><FONT FACE="Helvetica" SIZE="3"><H3>From RFC 2068 <i>Hypertext Transfer Protocol -- HTTP/1.1</i>:</H3>
</FONT><FONT FACE="Helvetica" SIZE="3"><H4>10.4.5 404 Not Found</H4>
</FONT><P><FONT FACE="Courier New">The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.</p><p>If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.</FONT></P>
</FONT></TD></TR>
</TABLE>
</BODY>
</HTML>

[org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 55; <Line 1, Column 55>: XML-20190: (Fatal Error) Whitespace required.]
        at javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(AbstractUnmarshallerImpl.java:335)

SEVERE: Exception while seeding OIM Resource Policies in OAM
oracle.iam.oimupgrade.exceptions.OIMUpgradeException: Exception while seeding OIM Resource Policies in OAM
        at oracle.iam.oimupgrade.standalone.feature.resourceseed.OIMResourceSeedUpgrade.seedOIMResourcePolicies(OIMResourceSeedUpgrade.java:125)
################################################################

Cause:

After applying mandatory patches on WLS 10.3.6 to upgrade to WLS 10.3.6.0.12 (since it's pre-requisite for IDM 11gR2PS3) policies were not able to evaluate.

To Re-produce the issue try to access below URL and login with OAM Admin user, you will see 

"Not Authorized" output.


You will see below errors in Admin server logs with Error Code: OAMSSA-06252
#########################################
5su9lZC_zDK6yW1MJrnv000002,0] [APP: oam_admin#11.1.2.0.0] Unable to start policy admin instance[[
oracle.security.am.common.policy.admin.PolicyManagerException: OAMSSA-06252: The policy store is not available; please see the log file for more details.
#########################################

Solution:

Upgrade WebLogic from "10.3.6.0.0" to "10.3.6.0.12"

After applying the latest patches to Oracle WebLogic Server, the WL_HOME/server/lib/weblogic.policy file must be edited to include the following entry

grant codeBase "file:MW_HOME/WLS/patch_jars/-" {
      permission java.lang.RuntimePermission "oracle.*","read";
};

Example:

grant codeBase "file:/opt/oracle/Middleware/patch_wls1036/patch_jars/-" {
      permission java.lang.RuntimePermission "oracle.*","read";
};

Note: Now you should be able to proper output upon access URL (
) with OAM Admin user.

Now execute "OIMUpgrade.sh online" script, it should run without any issues.

Thank you for referring my blog, please post your comments for any queries/suggestions..Have a nice time :) 

Not able to run 'xclock' command using MobaXterm

Issue: Not able to run 'xclock' command using MobaXterm. Error: $ xclock MobaXterm X11 proxy: Authorisation not recognised Err...