Get the challenge questions and responses of OIM 11 g PS2 (11.1.2.2.0) using a code
Hello
I have to write code to pick up the challenge question and answer for a user (a user has only a matter of challenge), that's the feature 'Reset password', I have to create a webservice that can retrieve this information for the portal application (it is that we have a custom interface). My webservice was working fine until 11g PS1 I could to the query table "DMP" and get relevant data for the user, but after upgrading to 11g PS2 (11.1.2.2.0) the old code does not work it is back * to challenge and answer question. So, I updated the code, now instead of directly querying table PCQ I use the API of the IOM, I am able to make the issue of the challenge for a user by using the getChallengesForUser method, but I don't know how to recover the answer to this question... Please help it is a little urgent.
PS. : If the soil is to use the getChallengesForLoggedInUser method if you please how can I create a session in the same method for the user.
Concerning
Dheeraj
Code snippet:
oimConn = new OIMConnect();
Customer OIMClient = oimConn.connect ();
usrMgr = client.getService (UserManager.class);
ChallengeResponseService responseServi = (ChallengeResponseService.class) client.getService;
ClientSession = client.getService (ClientLoginSessionService.class) ClientLoginSessionService;
System.out.println ("inside the getSecretQues()...");
System.out.println ("inside the getSecretQues ()... userId..." + userId);
clientSession.loginSessionCreated (userId); I thought that it would create a user login session so that I could use 'getChallengesForLoggedInUser '.
Set setForQues = responseServi.getChallengesForUser (username, Locale.US);
Iterator setForQuesItr = setForQues.iterator ();
If (setForQues.Size () > 0)
{
Defy challQuestion = (Challenge) setForQuesItr.next ();
question = challQuestion.getDisplayValue (); This works very well and retrieves the question
}
The code below is to get the answer works but doesn't
SER value = responseServi.getChallengesForLoggedInUser (Locale.US);
Object [] challengeQuesAns = ser.toArray ();
for (co int = 0; co < challengeQuesAns.length; ++ co)
{
Defy challengeAns is challengeQuesAns (Challenge) [co];.
System.out.println ("Inside getSecretQues ()... challengeQuesAns..." + challengeAns.getId () + "" + challengeAns.getResponse () + "" + challengeAns.getResponse ());
If ((challengeAns.getDisplayValue (). Equals (question)))
{
response = challengeAns.getResponse ();
}
}
clientSession.loginSessionDestroyed (userId);
Can you try below extracted and see if you are able to print the answer decrypted?
try {}
tcUserOperationsIntf userOperationsIntf = (tcUserOperationsIntf) oimClient
.getService (tcUserOperationsIntf.class);
resultSet tcResultSet = userOperationsIntf
.getChallengeValuesForUser (Long.parseLong (take));
If ((resultSet == null) |) ((resultSet.isEmpty ())) {
System.out.println ("the ResultSet is empty or null");
Return challengeQuestionAnswers;
}
rowCount int = resultSet.getRowCount ();
for (int j = 0; j)< rowcount;="" j++)="">
resultSet.goToRow (j);
String columnNames = resultSet.getColumnNames ();
for (int i = 0; i)< columnnames.length;="" i++)="">
String question = resultSet
.getStringValue ("Users.Password challenge Question.Question");
String response = resultSet
.getStringValue ("Users.Password challenge Question.Answer");
challengeQuestionAnswers.put (question, answer);
}
}
} catch (Exception e) {}
e.printStackTrace ();
}
Tags: Fusion Middleware
Similar Questions
-
where are the challenge questions and answers stored in OAM?
Hello
OAM 10g, where the challenge questions and answers are stored?
What is the best way to migrate the OAM 10 g challenge questions and answers in OIM 11 g? Is it recommended to migrate or users request to reset the challenge questions and answers in OIM 11 g?
Thank you
Khanh
Hello
As a best practice after the migration of 10g OAM, you can force the user to set the questions and answers of security. The chances of error will be zero in this case.
Also in the years/qus secuirty IOM are stored in table PCQ in encrypted form.
~ J
-
When I go to a favorite websight how can I get the user id and the password to open the view without having to put in me? Barry was soon
Hi Barry,.
Please contact Microsoft Community.
It would be great if you can answer the following question:
What browser you use on the computer?
If you are using Internet explorer, I suggest you to follow these steps to turn on the AutoComplete feature and check if it helps:
(a) open Internet Explorer.
(b) click on the Tools button and then click on Internet Options.
(c) click on the content tab.
(d) under AutoComplete , click settings.
(e) check the address bar, Forms, usernames and passwords on formsand ask me before saving passwords check boxes.
(f) click OKand then click OK again.
Let us know if this can help, and if you need further assistance.
-
After the merger of 7 shots in panorama he tooks nearly 5-6 minutes to get the final result and this result have only something above 1000 pixels edge long photo resolution? Why is this happening? I've been fusion 7 24Mpix of Nikon D750 RAW files. I saw a promo video where he introduced and there the panorama was above 10 000 pixel wide, so it is not a limit of lightroom, but something is not. Maybe some strange décor? Thank you.
Well, the good news is... This isn't your files.
I produced a pano 17310 x 6039 in less than 3 minutes. With or without adjustment.
The only differences that we have so far is the platform. Mac/Pc
Wrong guess you managed to repeat the question. Maybe a reinstall?
I hope that someone else (on PC) may be able to provide alternative suggestions. Let us know if you yourself are able to find a solution.
-
query to find the dependent task, attached to the task on a response in OIM 11 g
can someone help me to do a sql query to find the dependent task, attached to the task on a response in OIM 11 g
Published by: user13331347 on Sep 3, 2012 14:09Use under query to find the dependent task in OIM 11 g: -.
Select pkg.pkg_name, mil.mil_name, rsc.rsc_data, rsc.sta_key, sta.sta_status, sta.sta_bucket, mil2.mil_name
pkg pkg, tos tos, mil mil, mil mil2, rsc rsc, sta sta, rgm the rgm
where pkg.pkg_key = tos.pkg_key
and tos.tos_key = mil.tos_key
and mil.mil_key = rsc.mil_key
and rsc.sta_key = sta.sta_key
and rgm.rsc_key = rsc.rsc_key
and rgm.mil_key = mil2.mil_key
order of pkg.pkg_name, mil.mil_name, rsc.rsc_data, sta.sta_status, mil2.mil_name -
I can't get the number 5 and 6 of my key Board that is
I can't get the number 5 and 6 on my key Board that happen about two hours ago please help me on fixing the problem
Hello bigarthur, this is what is happening in the different programs that you use on your computer or just in firefox?
-
should I get the 32 gig and increase storage icloud or get the 128 gig?
Should I get the 32 gig and increase storage icloud or get the 128 gig?
iCloud can't complete really the iPads of storage on board. You can't have apps to run from iCloud, you can't the films played to iCloud, etc...
If you plan to use more than the 32GBs go for bigger sizes.
-
I have Firefox 8.0.1 and since the update to it, some sites, I need to go so that Firefox will not accept certificates which is accepted in the previous version. I can not get the permanent exception and must uncheck permanent
You can use this button to go to the Firefox profile folder:
- Help > troubleshooting information > profile directory: opens showing the file
It is not usually necessary to create an exception for the certificates.
Possible causes are that a server does not send the full (intermediate) certificate chain or self signed certificates. -
How to change the secret question and the answer if I've forgotten my email to rescue?
You have to ask Apple to reset your security questions. To do this, click here and choose a method; If this page does not list one for your country or if you are unable to call, complete and submit this form.
(137073) -
Get the Max values and average of the different cycles in the single channel
Hello
I'm trying to get the Max values and average of the single channel that has different cycles it contains. I tried to use commands such as Chnclasspeak3 and chnpeakfind, but they were not useful for me. What I need is the Max values and average of the different cycles numbers saved in the data channel.
Exampld if the string contains 5 numbers of repetitive cycles, then we must find the maximum values and the average of these 5 cycles in the single channel. Attached reference data. This is the .raw file and I have the plugin for it to use in diadem 11.1.
Kind regards
X. Ignatius
Hello, Ignatius,.
Sorry, it took some time to provide a replacement based on the script for the function. Please take a look at the attached script. I changed the script to use my function if the tiara-version is less than 12. My script function is not as fast and more stable than the implementation of tiara, but for now, it does the job
Andreas
-
How can I get the exact time and date on my FAX LOG
I have a new HP Officejet 6500 has more on my Dell Inspiron Windows XP computer. How can I get the exact time and date on my FAX log?
Hi FrederickFrank7,
Journal of faxes would just follow the time of your printer. Please set the time and date of your printer.
I am an employee of HP.
Please indicate the position that solved your problem as "acceptable Solution". -
I lost my laptop screen after trying to set my display properties. I reformatted recently, everything seemed to work, I loaded SP2 who gave me the poor quality screen while trying to fix it. Now, I get the Dell logo and Microsoft Windows XP, then a blue black screen... but I can hear loader behind it. What gives?
"Ineedafix" wrote in message News: * e-mail address is removed from the privacy * .com...I lost my laptop screen after trying to set my display properties. I reformatted recently, everything seemed to work, I loaded SP2 who gave me the poor quality screen while trying to fix it. Now, I get the Dell logo and Microsoft Windows XP, then a blue black screen... but I can hear loader behind it. What gives?
Start the computer in safe mode (press F8 continuously immediately after power and don't worry beeps when you press the button) and let it boot without a network. Once there right click on the desktop and then click Properties. Click settings and the value of the monitor mode (640 X 480) VGA or SVGA (800 X 600). Accept the changes and restart the computer. You should have a mediocre screen, but you should see it now. Download and install the appropriate drivers for your video card in the laptop to the web site of the manufacturer of the laptop. Install the drivers and then you should be able to set the display of the laptop to the correct native resolution for your computer monitor (must be in the documentation of the laptop). -
Original title: help & support files
Windows 7 Professional. All help & support files have disappeared. I get the message "help and support files cannot start."
How to return please?.
Perhaps. An analysis of file system I think would replace the help files, but you can try it, there is no harm. Just open a command prompt (right click and "open as Administrator"), and then type sfc/scannow
-
How to get the battery level and status in the cpp file?
Hi all
BatteryInfo class so I can I know how to get the battery level and the State in .cpp class?
Hi Benecore,
I have Add method below,
#include
But I only variable BatteryInfoPrivate not get variable BatteryInfo. You can also check on your side.
So let me know how to get batteryInfo instance?
-
How to get the friend list and their IDS in the integration of Facebook using Facebook SDK
can any body send me the code
How to get the friend list and their IDS in the integration of Facebook using Facebook SDK
I did after connection and wallWelcome on the support forums.
Please check the strawberry sample that ships with the SDK
Maybe you are looking for
-
How do I print a web page in Firefox "helps," said 1. at the top of the window f'fox, click the f'fox, however, when, on the page where I want to print, no button is visible f'fox! What can I do?Do I need to save the page and print it, if so, how do
-
I have completely exhausted the forum Windows Media Center for response to the resolution of this problem. I replaced my unit ATI TV Wonder Digital Cable Ready, as well as my graphics card tuner, and WMC still says 'No TV Tuner Found"and the message"
-
Hello How to multiply two binary matrices in labview? tried using Boolean OR operator, but it does not work Thank you
-
Xc0000225 Boot\BCD error 0 after factory restore
So I recently did a restore of the configuration system once the OS has been fairly well watered on the PC of my mother. I don't know what someone did to her the last time that they 'fixed', but kept getting tons of errors and do not load the system
-
Microsoft Windows Explorer 8 update: KB967715 constantly reinstall OS - Windows XP
I rebooted my computer Dell 4 times and after I reload everything... The Explorer of Windows 8's and automatic updates... The history shows KB967715 as file being properly installed... but after I reboot - windows Explorer 8 automatic update attemp