Problem with changing password to adapter

Hello
We need to change password user IOM after AD account creation. I use following my adapter code:

* public class PassswordGenerator {* +}

Public Shared Sub NewPassword (String usrID, boolean isUserLogin) throws all AccessDeniedException,+.
NoSuchUserException,+.
UserLookupException,+.
SearchKeyNotUniqueException,+.
* UserManagerException {* +}

UserManager userService = Platform.getService (UserManager.class); +
User user = userService.getDetails ("User Login", usrID, null); +
RandomPasswordGeneratorImpl randomPasswordGenerator = new RandomPasswordGeneratorImpl(); +
char [] nouveau_mdp = randomPasswordGenerator.generatePassword (user); +
Pass string = new String (new_pwd); +
System.out.println ("new password:" + pass); +
userService.changePassword (usrID, pass.toCharArray (), isUserLogin); +

*}*

*}*


but when I try to perform tasks on the user ad process I get special suite:

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
+........+
Caused by: oracle.iam.identity.exception.UserManagerException: the password change operation failed.
at oracle.iam.identity.usermgmt.impl.UserManagerImpl.changePassword(UserManagerImpl.java:3027)
at oracle.iam.identity.usermgmt.impl.UserManagerImpl.changePassword(UserManagerImpl.java:2962)
at oracle.iam.identity.usermgmt.api.UserManagerEJB.changePasswordx (unknown Source)
+........+

I need to change my code to use OIMClient? Password is generated according to the password policy, I can't test my external customer code, so I have no idea what is wrong.
The best
MP

Published by: J23-2012-05-28 04:12

Approach is very good. You can call the task of password change to the success of creating the task from the user.
You can have a simple code like this:

Import oracle.iam.passwordmgmt.api.PasswordMgmtService;
public String changePassword (Long usr_key, String password) {}
UPOS tcPasswordOperationsIntf = Platform.getService (tcPasswordOperationsIntf.class);
upos.setXelleratePassword (usr_Key, password);
}

I hope this helps.

Kind regards
GP

Tags: Fusion Middleware

Similar Questions

  • problem with user password change request

    Hi all

    I'm about to ask a question that I don't have much info. I'm not experienced with oracle forms or States but one my customer use them, my client decided to change the user password request forms and did. After that, developers are looking for config files and change the passwords in files of that too. is the application works fine but has reports of problems. as I said, there are two ways to run reports, web and run_product. When the URL is used, reports work well, but in forms (fmb) screens when the run_product procedure is used, they received the error "name of username/password invalid.

    even if they change the password user return application, there always the same error. should consider what could be the possible error and what are the files? I know, that it is forms 6i application.

    If your customer base is 11G, this could be a problem with the passwords case-sensitive. Try to set a password with only UPPERCASE letters.

  • Problem with the password Bank on Portege M700-116

    I have problem with database password on my laptop with win Vista Business SP1 OS.
    When I start windows and open the Mozilla Firefox web browser after a few seconds pwdbank.exe does not work and is disabled.

    Can you help me please?

    Hello

    Just a question: is the message of Firefox or something else. I installed Firefox on M700 friends and there is no message. I didn't test it extensively, but the message is not is not displayed.

  • I HAVE COMPAQ MINI 110 HAVE A PROBLEM WITH THE PASSWORD OF PIOS. SYSTEM HAULT CODE IS; CNU9243TDY

    I HAVE COMPAQ MINI 110 HAVE A PROBLEM WITH THE PASSWORD OF PIOS.

    SYSTEM HAULT CODE IS; CNU9243TDY

    ways to help

    Hello

    Try to enter: e9lo7vfati (3rd character is a lowercase L)

    Kind regards

    DP - K

  • I have a problem with my password for my MSN account.

    I'm having a problem with my password for Windows Live.  It does not recognize the sensitive passwords case.  I asked cela before and you refered me to Windows Live.  And I give them credit.  They tried several times to fix my problem and failed.  Then they refered back me to you.  And guess what, you refered me to Windows Live.  I'm stuck in limbo between you two.  CAN SOMEONE HELP ME WITH MY PROBLEM PLEASE?  PLEASE...  PRETTY PLEASE...

    This is a forum for issues relating to security, privacy and user for the Windows XP operating system accounts.

    Post Windows Live questions in the appropriate forum found here:
    http://windowslivehelp.com/

  • Problems with "" change in "in Lightroom 4"

    I just installed Lightroom 4. Problems with "change in ' under 'PHOTO', when I select a program to edit photo in I download a message error - ORDER of EXECUTION ERROR INATTENDUE: bad argument #1 to 'down' (string expected, got the draw). I tried uninstalling and reinstalling, still have the problem. Any suggestions?

    Thank you

    http://feedback.Photoshop.com/photoshop_family/topics/lr4_external_editor_failure

    Frans

  • problems with change of password

    I'm trying to change my password, but whenever I have it try always said (this service is not available at this time. Please try again later) why is this and how do I get my password

    Hello

    Welcome to the Microsoft community.

    You can refer to the suggestions posted by Ganesh Achar B responded April 30, 2014, on a similar issue.

    http://answers.Microsoft.com/en-us/Windows/Forum/windows8_1-security/cant-change-password-in-win81-this-service-isn ' t/e1e0610f-a64f-4e73-8983-cd0072b10bab

    Let us know if you need more assistance. We will be happy to help you further.

  • Problems with WiFi Centrino N2230 adapter. Many potential bugs applied but not resolved.

    I keep losing WiFi connection.  Network is good, many other features is hung in.  Wired LAN connection is good.  HP technical support has not been able to resolve with BIOS or driver changes.  By checking on the web, there only seems to be a lot of similar problems with the WiFi adapter.

    I'm willing to do some surgical interventions like recommendations on a level appropriate to this N2230 Centrino.   Can anyone help?

    Notebook is a 17 HP Touchsmart laptop

    Model: m7-j020dx

    Product: E4S19UA #ABA

    OS: Windows 8.1 Pro

    Hello:

    Some members of the forum reported to solve the problems of loss of connection with this card by installing the driver and proset instead of just the driver package only.

    The last file on the list would be what you want to try...

    https://Downloadcenter.Intel.com/Detail_Desc.aspx?DwnldID=24220

    Insofar as a replacement card, I don't know if your model has this feature of white list of BIOS.

    If this is the case, you wouldn't be able to install one of the cards described in Chapter 3 of the manual of your PC and they must have the part number HP on it or it won't work.

    If the laptop was made last year or so, you can probably install any wireless card you want as it appears that HP has done away the white list of BIOS locking not wireless cards supported.  See the thread below...

    http://h30434.www3.HP.com/T5/wireless-Internet-home-networking/why-no-dual-band-NIC-card/m-p/4019924#M69140

  • Problem with the microsoft ISATAP adapter.

    Original title: DEVICE DISC

    Hello.

    I continue to told to reinstall the legacy player.

    Problem with the microsoft ISATAP card reader. Do not understand this.

    Myrna Hello,
     
    Thanks for choosing the Microsoft forums.
     
    I would like to know some information about the problem so that we can help you further.
     
    1. What is the brand and model of the computer?
    2. are you on ISTAP adapter yellow exclamation?
    3. are you an error code during the installation of the drivers for the adapter ISTAP?
    4. what he invites you to reinstall the device driver?

    I would suggest trying the following methods and check if they work for you.

    Method 1:
    Uninstall and reinstall the device in Device Manager.
    Steps to uninstall the device:
    1. start.
    2. in the search box type run.
    3. in the Run dialog box, type devmgmt.msc and press on enter key.
    4 locate Microsoft ISTAP peripheral adapter.
    5. right click on the device and select uninstall.
    6 restart the computer so that the changes occur.
     
    Pilots should be re-installed automatically after the computer restarts.
     
    Method 2:
    Try to update the latest drivers for the card and check if it helps, here is the link:
    Updated a hardware driver that is not working properly
    http://Windows.Microsoft.com/en-us/Windows7/update-a-driver-for-hardware-that-isn ' t-work correctly

    Method 3:

    Automatically get recommended drivers and updates for your hardware
    http://Windows.Microsoft.com/en-us/Windows7/automatically-get-recommended-drivers-and-updates-for-your-hardware

    Hope this information is useful. Please let us know if the problem persists, we will be happy to help you further.
     
    Thank you.

  • I have a problem with the password on the virtual machine.

    Original title: passwords & Windows 7 virtual machines

    Hello

    I am running windows 7 pro 32 bit, with a windows XP virtual to develop existing software.

    The hosts & VM connect to a file on the network server. The file server is running windows XP, the network is a simple working group. I've manually created a limited user on the file server with the same name and password as my logon to windows 7.

    Today, I changed my password to connect to windows 7, which I am not as often as the security people recommend that I do. I changed the password on the file server to synchronize and also the password on the virtual computer.

    The virtual machine is maintaining however, somewhere the old password, which crashes, and I get the logon screen. If I enter the new password it connects then. I went into the settings of the VPC and delete the credentials saved, without effect. I removed "enable on startup" of integration features, also without effect.

    So I get the password in the VPC, but then I have to enter the password to access the network share. Or I can enter the password each time I start the virtual machine. The second is less painful, but still annoying.

    Any thoughts?

    Hello

    Thanks for posting in the Microsoft Community.

    According to the description, it looks like you are facing a problem with windows Virtual PC.

    The question you posted would be better suited in the TechNet Forums; We recommend that you post your question in the TechNet Forums to get help:

    http://social.technet.Microsoft.com/forums/en-us/w7itprovirt/threads

    If you need Windows guru, do not hesitate to post your questions and we will be happy to help you.

  • I have a problem with the password admin on XP/SPe

    When the computer that I use now was bought a few years ago for my husband, he created an administrator with a password account. He did not have a password reset disk that I can find (he died a few years ago) and its index for the password means nothing to me. I know that I can reinstall the sys op but who loses a lot of put the info that I don't know and would not be able to restore.

    I guess I have two questions:

    1. is it possible, other than of the reinstall, to pass the admin password so that I can connect to the admin account?

    2. If I export my settings to transfer them to my new computer Win7, with the admin password transfer to the new system?

    Unfortunately, the only way to change the password for the admin on a computer is with specialized programs that are generally not available. If someone you know IT, they are able to help you.

    Are you using another user account and just have not tried the admin account in the last couple years?

  • Problems with the password Windows Mail 0x800CCC17

    Separated from this thread.

    Original title:

    Problems with Windows Mail password

    Have the same problem with the provider of the internet called Ox800CCC17 error message and they me returned to microsoft that might fix it isn't fast, but couldn't for $99 serv.  So, I always read... Cannot get rid of the paper in the box username and password... frustrating.  Help someone else?

    Hey Joe,

    Sorry for the delay in response.

    You can refer to:

    https://support.Microsoft.com/kb/942495?WA=wsignin1.0

    Try to reconfigure your Mail account;

    http://answers.Microsoft.com/en-us/windowslive/Forum/LIVEmail-email/how-can-i-resolve-machine-configuration-issues-in/7462aa67-6131-4504-A11b-7060a95c694b

    I hope this helps.

  • Are there problems with changing the IP address of a system of v5.3 ACS after the initial Setup?

    I'm migrating from ACS v4.2.1 to v5.3.  I want the final v5.3 system to assume the IP address of the machine 4.2 of origin so I don't have to change any configs on network devices.

    Are there problems with the change of the IP address of the system AFTER the initial installation v5.3?

    I tried without problem. I changed the ip address of the WLC several times.

    You must ensure that:

    1-) you change the switchport accordingly to the appropriate vlan if the new ip address belongs to a subnet of a vlan different.

    2-) make sure that all clients AAA configured to use the new IP address of the ACS servers.

    Here is the procedure how to change the ip address of the interface (according to the doc of cisco):

    http://goo.GL/0BYqVT

    I also changed parIP normal address and it works. but of course, the server must be autonomous before doing this step (i.e. no secondary ACSS registered to him and he is not on the other ACSS in a distributoin).

    HTH

    Amjad

  • I have a problem with the password being filled automatically.

    Original title: automatic password with filling points

    My Windows log in password auto fills points after clicking on a key shot. I closed and re-tried 3 times.  I emptied the usb ports and that did not help either.  I'm not sure that reset my password will help.  Any suggestions?

    If the keys are pressed (locked/stuck) or keyboard error may raise this issue.

    You can try the following:
    Go to the page of the BIOS Setup, create a password (for this process, see your system manual). Now, enter a text of your choice. If you find the same mistake, it's a problem with the keyboard.
    You can consult your PC manual contact the manufacturer of your PC of any troubleshooting this utility in your PC to test the keyboard.
    Response if the issue is not with the keyboard.
  • Problem with changes saved in files Excel download (APEX 3.2.1)


    Hello community,

    I have a Table and store Documents in there.

    I would give a link for users to open a file downloaded Excel, make changes, save them and finally to close the file.

    Unfortunately, the changes are not saved.

    I think it's a problem with the privileges. But those that need me?

    When I go on ' save under ' in a file Excel open, the owner is "Apache IO" and I don't have any directory on the server to save.

    I hope someone has a solution

    Thanks in advance

    JO

    Before you create a shared directory (this is not a DBA, but a sysadmin task incidentally) and a background process, you need to specify what and how you want to do something first. Maybe a shared directory is not possible (for example in the case of a Web application). Talk to your system administrator before you build anything.

    Even with a shared directory, you must do a lot more than just put a file there. If a user saves a "myfile.xlsx", but what to do with this file? Is he related to something, such as a purchase order, the invoice, the project...?

    Maybe you have seen the document management systems where you open a file in the application and save by clicking the Word or Excel records. But these are based on plugins, Office and other software installed locally on a PC.

Maybe you are looking for

  • How to install firefox to $OEM Unattended Setup $ WINDOWS XP

    I WANT TO INSTALL FIREFOX WHEN INSTALLING WINDOWS XP UNATTENDED

  • 2000-2d29WM HP: HP 2000 enter administrator password or power on password?

    I'm not sure of the operating system, because it's my portable nephews and I've never used it before.  I am the tech family and it has been brought to me because he has "beep and blue screening! She asks for administrator password or power on passwor

  • iPhone 6 blocked

    Hi all I have an iPhone 6, 64 GB 9.2 running iOS. When to end calls, disconnects the line but the phone seems to handle it too well, and it just gets stuck. This gives other softs becomes unresponsive too. I tried to force stop the calling function,

  • Pilot lost after service Pack 2

    I have already installed Service Pack 2 and Service Pack 2 KB948465 KB974469. I got a lot of wrong with SP2 including duty re - install windows. PC now under Vista Home premium, fully implemented to date. I lost the Driver for my Panasonic camera dur

  • BlackBerry 10 Help!

    I have the BlackBerry Curve & this afternoon when I checked my phone, I noticed a star in the status bar. I clicked it, but nothing shows that mean exactly the star & its driving me crazy! Anyone know what this means?