Wednesday, 26 October 2016

Custom Security Challenge Question Localisation in OIM11gR2

To localise custom Challenge Question in OIM11gR2 we need to follow below Steps. I am providing the localisation of Challenge question for French language.
====================================================================

1. Create the Properties file with name- "customResources_fr_FR.properties_fr_FR" and put the below content with Challange question. In English question space is replaced with ~ sign.

-------------------------------------------------------------------------------------------------------------
# This a French custom resource template file. It will used if Browser locale related file is not found say
# "customResources_<lang>_<country>.properties". End user can use it to extend translation for custom lookup, fields etc.
# Below are the few examples of that :
# For lookup addition:

#global.<lookup_code>.<encode_data>=<unicoded_decodedata_string>

# For UDF Label addition:
# global.udf.<udf_column_name>=<unicoded_label_string>

# For UDF Lookup addition:
# For lookup by column and lookup by code :

# global.<lookup_code>.<encode_data>=<unicoded_decodedata_string>

###Challenge Questions - French ###
global.Lookup.WebClient.Questions.Who~is~your~childhood~sports~hero?=Qui était votre athlète  préféré lorsque vous étiez enfant ?
global.Lookup.WebClient.Questions.What~is~the~name~of~your~favorite~childhood~friend?=Comment s'appelait votre meilleur(e) ami(e) d'enfance ?
global.Lookup.WebClient.Questions.What~is~the~name~of~the~hospital~where~you~were~born?=Comment s'appelle l’hôpitaloù vous êtes né(e) ?
-------------------------------------------------------------------------------------------------------------------------

2. Copy "customResources_fr_FR.properties_fr_FR" file on OIM server through WinSCP on location-"/app/oracle/middleware/Oracle_IDM1/server/customResources".

3. Convert the Properties file from Native to ASCII. In this Process all the file content will be copied in new Properties file- "customResources_fr_FR.properties". For this we need to run below command on OIM Server box through Putty-

native2ascii customResources_fr_FR.properties_fr_FR customResources_fr_FR.properties

4. Now Upload the resource Bundle Properties file in Database through Upload Resource Bundle Utility. For this we need to follow below Steps-

1. For running the UploadResourceBundles.sh go to below path

$ cd /app/oracle/middleware/Oracle_IDM1/server/bin

2. Set the Environment variable.

 export DOMAIN_HOME=/app/oracle/user_projects/domains/OIMDomain1
export WL_HOME=/app/oracle/middleware/wlserver_10.3
export ORACLE_HOME=/app/oracle/middleware/Oracle_IDM1
export OIM_ORACLE_HOME=/app/oracle/middleware/Oracle_IDM1
export JAVA_HOME=/app/oracle/java/jdk1.7.0_80
export MW_HOME=/app/oracle/middleware
export APP_SERVER=weblogic

3. Run the below command-

$ ./UploadResourceBundles.sh

Steps are mentioned below for Running the UploadResourceBundle.sh-

[iamusr@sciamdas62 customResources]$ cd /app/oracle/middleware/Oracle_IDM1/server/bin

#####################Setting Path#####################################################
 [iamusr@sciamdas62 bin]$ export DOMAIN_HOME=/app/oracle/user_projects/domains/OIMDomain1
[iamusr@sciamdas62 bin]$ export WL_HOME=/app/oracle/middleware/wlserver_10.3
[iamusr@sciamdas62 bin]$ export ORACLE_HOME=/app/oracle/middleware/Oracle_IDM1
[iamusr@sciamdas62 bin]$ export OIM_ORACLE_HOME=/app/oracle/middleware/Oracle_IDM1
[iamusr@sciamdas62 bin]$ export JAVA_HOME=/app/oracle/java/jdk1.7.0_80
[iamusr@sciamdas62 bin]$ export MW_HOME=/app/oracle/middleware
[iamusr@sciamdas62 bin]$ export APP_SERVER=weblogic
[iamusr@sciamdas62 bin]$

#####################Running Upload Resource Bundle Utility#############################

[iamusr@sciamdas62 bin]$ ./UploadResourceBundles.sh
For running the Utilities the following environment variables need to be set
APP_SERVER is weblogic
OIM_ORACLE_HOME is /app/oracle/middleware/Oracle_IDM1
JAVA_HOME is /app/oracle/java/jdk1.7.0_80
MW_HOME is /app/oracle/middleware
WL_HOME is /app/oracle/middleware/wlserver_10.3
DOMAIN_HOME is /app/oracle/user_projects/domains/OIMDomain1
Executing oracle.iam.platformservice.utils.ResourceUploadUtility in IPv4 mode
[Enter Xellerate admin username :]xelsysadm                 #####Comment- Xelsysadm Username#######
[Enter the admin password :] *******                                  ##### Comment- Xelsysadm Password#######
[[Enter serverURL (Ex. t3://oimhostname:oimportno for weblogic or corbaloc:iiop:localhost:2801 for websphere)]:]t3://sciamdas62:14000                             ##### Comment- t3 URL#######
[[Enter context (i.e.: weblogic.jndi.WLInitialContextFactory for weblogic or com.ibm.websphere.naming.WsnInitialContextFactory for websphere)]:]weblogic.jndi.WLInitialContextFactory         ##### Comment- Weblogic Context#######
Logging configuration class "oracle.core.ojdl.logging.LoggingConfiguration" failed
java.lang.ClassNotFoundException: oracle.core.ojdl.logging.LoggingConfiguration
log4j:WARN No appenders could be found for logger (org.springframework.jndi.JndiTemplate).
log4j:WARN Please initialize the log4j system properly.
Enter the resource bundle type
 1.Custom Resource
 2.Connector Resource
 1                                                ######Select appion-1 as Custom Resource#######
Enter the path/location of resource bundle file :    #######Properties file with Path#######
/app/oracle/middleware/Oracle_IDM1/server/customResources/customResources_fr_FR.properties     
Do u want to load more resource bundles [y/n] :n                   ###Here provided “N” because this is last file if want to upload more file then Provide option  "Y"  and in last file Provide Option "N" ####
Upload resource executed successfully
[iamusr@sciamdas62 bin]$


These are the above Steps for localising the Custom Challenge Question in OIM11gR2. For testing the Challenge question set the Browser language as French and test the Security Challange Question for Particular Language.

If we need to delete the uploaded Properties file then we need to follow below Steps-

 Steps are mentioned below for Running the DeleteResourceBundle.sh-

[iamusr@sciamdas62 customResources]$ cd /app/oracle/middleware/Oracle_IDM1/server/bin

#####################Setting Path#####################################################
 [iamusr@sciamdas62 bin]$ export DOMAIN_HOME=/app/oracle/user_projects/domains/OIMDomain1
[iamusr@sciamdas62 bin]$ export WL_HOME=/app/oracle/middleware/wlserver_10.3
[iamusr@sciamdas62 bin]$ export ORACLE_HOME=/app/oracle/middleware/Oracle_IDM1
[iamusr@sciamdas62 bin]$ export OIM_ORACLE_HOME=/app/oracle/middleware/Oracle_IDM1
[iamusr@sciamdas62 bin]$ export JAVA_HOME=/app/oracle/java/jdk1.7.0_80
[iamusr@sciamdas62 bin]$ export MW_HOME=/app/oracle/middleware
[iamusr@sciamdas62 bin]$ export APP_SERVER=weblogic
[iamusr@sciamdas62 bin]$

#####################Running Delete Resource Bundle Utility#############################

[iamusr@sciamdas62 bin]$ ./DeleteResourceBundles.sh
For running the Utilities the following environment variables need to be set
APP_SERVER is weblogic
OIM_ORACLE_HOME is /app/oracle/middleware/Oracle_IDM1
JAVA_HOME is /app/oracle/java/jdk1.7.0_80
MW_HOME is /app/oracle/middleware
WL_HOME is /app/oracle/middleware/wlserver_10.3
DOMAIN_HOME is /app/oracle/user_projects/domains/OIMDomain1
Executing oracle.iam.platformservice.utils.ResourceUploadUtility in IPv4 mode
[Enter Xellerate admin username :]xelsysadm                 #####Comment- Xelsysadm Username#######
[Enter the admin password :] *******                                  ##### Comment- Xelsysadm Password#######
[[Enter serverURL (Ex. t3://oimhostname:oimportno for weblogic or corbaloc:iiop:localhost:2801 for websphere)]:]t3://sciamdas62:14000                             ##### Comment- t3 URL#######
[[Enter context (i.e.: weblogic.jndi.WLInitialContextFactory for weblogic or com.ibm.websphere.naming.WsnInitialContextFactory for websphere)]:]weblogic.jndi.WLInitialContextFactory         ##### Comment- Weblogic Context#######
Logging configuration class "oracle.core.ojdl.logging.LoggingConfiguration" failed
java.lang.ClassNotFoundException: oracle.core.ojdl.logging.LoggingConfiguration
log4j:WARN No appenders could be found for logger (org.springframework.jndi.JndiTemplate).
log4j:WARN Please initialize the log4j system properly.
Enter the resource bundle type
 1.Custom Resource
 2.Connector Resource
 1                                                ######Select appion-1 as Custom Resource#######
Enter the Name of resource bundle file :    #######Properties file Name which need to be deleted#######
customResources_fr_FR.properties     
Do u want to load more resource bundles [y/n] :n                   ###Here provided “N” because this is last file if need to delete more file then Provide option "Y" ####
Upload resource executed successfully
[iamusr@sciamdas62 bin]$


14 comments:

  1. Thank you for the auspicious writeup. It in fact was a amusement account it.
    Look advanced to far added agreeable from you! However, how can we communicate?

    ReplyDelete
  2. I needed to thank you for this fantastic read!! I definitely loved every little bit of it.

    I have got you book-marked to look at new things you post...

    ReplyDelete
  3. I'm really loving the theme/design of your web site.
    Do you ever run into any browser compatibility issues?

    A couple of my blog audience have complained about my website not
    working correctly in Explorer but looks great in Safari. Do
    you have any suggestions to help fix this issue?

    ReplyDelete
  4. For most recent information you have to visit web and on internet
    I found this site as a most excellent site for most up-to-date updates.

    ReplyDelete
  5. Hi my family member! I want to say that this post is amazing, great written and include approximately all significant infos.
    I'd like to peer extra posts like this.

    ReplyDelete
  6. I'll right away seize your rss as I can not find your e-mail
    subscription link or e-newsletter service.
    Do you have any? Kindly permit me recognize in order that I may just subscribe.
    Thanks.

    ReplyDelete
  7. Thank you for the good writeup. It in fact was a amusement account it.
    Look advanced to far added agreeable from you!
    However, how could we communicate?

    ReplyDelete
  8. Terrific work! That is the type of information that should be shared around the net.

    Shame on the seek engines for now not positioning this put up higher!
    Come on over and discuss with my web site . Thanks =)

    ReplyDelete
  9. Does your blog have a contact page? I'm having trouble locating
    it but, I'd like to send you an email. I've got some ideas for your blog you
    might be interested in hearing. Either way,
    great site and I look forward to seeing it expand over time.

    ReplyDelete
  10. There is obviously a lot to identify about this. I believe you made some
    good points in features also.

    ReplyDelete
  11. This is very attention-grabbing, You are a
    very skilled blogger. I've joined your rss feed and look ahead
    to looking for extra of your excellent post.
    Additionally, I've shared your web site in my social networks!

    ReplyDelete
  12. I love it whenever people get together and share thoughts. Great site, continue the good work!

    ReplyDelete
  13. Thanks for sharing your thoughts on comprehensive program.
    Regards

    ReplyDelete
  14. Amazing! This blog looks just like my old one!
    It's on a entirely different topic but it has pretty much the same layout and
    design. Wonderful choice of colors!

    ReplyDelete