OIM 11g - Set a default password when a user is created

Hi everybody,
I'm trying to set a default password when I create a user manually but I've got some errors.
I firstly created a pre-process event handler to generate automatically a login and an email for a user who is created and it worked fine. But now I'm trying to generate a default password (like "ChangeIt" for example) that the user will have to change the first time.
This is the code I wrote :
public EventResult execute(long processId, long eventId, Orchestration orchestration) {
String methodName = "EventREsult execute";
System.out.println("###### " + className + " - method " + methodName + " - STARTED");
HashMap<String, Serializable> parameters = orchestration.getParameters();
System.out.println("###### OK1");
String firstName = (String)parameters.get(UserManagerConstants.AttributeName.FIRSTNAME.getId());
System.out.println("###### OK2");
String lastName = (String)parameters.get(UserManagerConstants.AttributeName.LASTNAME.getId());
System.out.println("###### OK3");
String userKey = (String)parameters.get(UserManagerConstants.AttributeName.USER_KEY.getId());
System.out.println("###### OK4");
String userLogin = firstName + lastName;
parameters.put(UserManagerConstants.AttributeName.USER_LOGIN.getId(), userLogin);
System.out.println("###### OK5");
parameters.put(UserManagerConstants.AttributeName.EMAIL.getId(), firstName + "." + lastName + "@test.test");
System.out.println("###### OK6");
parameters.put(UserManagerConstants.AttributeName.PASSWORD.getId(), "ChangeIt");
System.out.println("###### " + className + " - method " + methodName + " - ENDED");
return new EventResult();
And When I try to create a user, I've got the error : "An error occured. Null input buffer"
This is what I have in the console :
<10 mai 2012 16 h 44 CEST> <Error> <oracle.iam.identity.usermgmt.impl> <IAM-3050030> <Exception lors de la rÚalisation de l'opÚration.
java.lang.IllegalArgumentException: Null input buffer
at javax.crypto.Cipher.doFinal(DashoA13*..)
at com.thortech.xl.crypto.tcDefaultDBEncryptionImpl.decrypt(tcDefaultDBEncryptionImpl.java:219)
at com.thortech.xl.crypto.tcCryptoUtil.decrypt(tcCryptoUtil.java:122)
at com.thortech.xl.crypto.tcCryptoUtil.decrypt(tcCryptoUtil.java:200)
at oracle.iam.platform.utils.crypto.CryptoUtil.getDecryptedPassword(CryptoUtil.java:136)
at oracle.iam.transUI.impl.handlers.user.UpdateUsrPwdFields.updateUserPwdFields(UpdateUsrPwd
Fields.java:124)
at oracle.iam.transUI.impl.handlers.user.UpdateUsrPwdFields.execute(UpdateUsrPwdFields.java:
71)
at oracle.iam.platform.kernel.impl.OrchProcessData.runPreProcessEvents(OrchProcessData.java:
898)
<10 mai 2012 16 h 44 CEST> <Error> <oracle.iam.identitytaskflow.logging> <BEA-000000> <IAM-3060023>
I know this is something due to the password parameter but I don't understand what is expected for this one ...
If you someone could help me with this it would be really helpful !
Thanks,
Thibault

Hi, Thanks for your quick answer !
So it solved half of the problem ! Now I've got an other error : decrypt failed
And this is the beginning of the error in the console :
<10 mai 2012 18 h 14 CEST> <Error> <XELLERATE.ACCOUNTMANAGEMENT> <BEA-000000> <Class/Method: tcDefau
ltDBEncryptionImpl/decrypt encounter some problems: Input length must be multiple of 16 when decrypting with padded cipher
javax.crypto.IllegalBlockSizeException: Input length must be multiple of 16 when decrypting with pad
ded cipher
at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)
at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)
at com.sun.crypto.provider.AESCipher.engineDoFinal(DashoA13*..)
at javax.crypto.Cipher.doFinal(DashoA13*..)
at com.thortech.xl.crypto.tcDefaultDBEncryptionImpl.decrypt(tcDefaultDBEncryptionImpl.java:2
19)
at com.thortech.xl.crypto.tcCryptoUtil.decrypt(tcCryptoUtil.java:122)
at com.thortech.xl.crypto.tcCryptoUtil.decrypt(tcCryptoUtil.java:200)
at oracle.iam.platform.utils.crypto.CryptoUtil.getDecryptedPassword(CryptoUtil.java:136)
at oracle.iam.transUI.impl.handlers.user.UpdateUsrPwdFields.updateUserPwdFields(UpdateUsrPwd
Fields.java:124)
at oracle.iam.transUI.impl.handlers.user.UpdateUsrPwdFields.execute(UpdateUsrPwdFields.java:
71)
at oracle.iam.platform.kernel.impl.OrchProcessData.runPreProcessEvents(OrchProcessData.java:
898)
What does it means ? My password must be encrypted or something like this ?
Thanks if you can help me with this !!
Thibault

Similar Messages

  • How to programmatically set initial password when a user is created in OID

    We are using the odihragent synchronization process to automatically create users in OID when an employee record is created. We would like to set the initial password for the newly created user to their last name + the last 4 digits of their SSN.
    The odihragent process is successfully creating the user in OID and populates the last name and the last 4 digits of the SSN in OID. According to an open SR I have with Oracle, we cannot use the odihragent process to set the initial password because any time the employee record is updated, the synchronization process will reset the password to last name + SSN. They have recommended that we use a pl/sql plug-in to set the password using the WHEN_ADD plug-in procedure.
    I am new to using OID and plug-ins and the examples provided in the Developer's Guide are limited.
    I would like to know if anyone else is using plug-ins or another process to set initial passwords when a user is created? If you are using plug-ins would you be willing to share a code sample?

    I am surprised that I have not received any responses... Surely there are others who are experienced with programmatically setting passwords when new users are programmatically created. Does anyone have any pointers on how to best accomplish this?

  • Set default password for all users including csv file

    I would like to set the default password for all users
    including the ones imported in the csv file?
    Also now the default passwrd in set to the email address. How
    do i change that setting to the "login" setting in the csv file so
    those users can loin with that password?
    Kinda the same question but do yuo get the idea?
    Thank you,
    Chip

    You could download and install RCDefaultApp 2.1 for all users: check the Read Me and then test it on something to see if it accomplishes what you want.
    http://www.rubicode.com/Software/RCDefaultApp/

  • I did set up the password when I got the phone and iPad months ago but never turned it on. Now it is asking for the passwords for both my iPhones and iPad and I cannot select not the have the passwords active.  ???

    I did set up the password when I got the phone and iPad months ago but never turned it on. Now it is asking for the passwords for both my iPhones and iPad and I cannot select not the have the passwords active.

    If you do not want to use passcodes, why don't you just go to Settings > General > Passcode Lock and delete the passcode and set the lock to OFF.  That will eliminate the problems all together.

  • I signed up yesterday with synch. I dont know my password and I need it to reset a new password. Please advise how to set a new password when I dont know old 1

    I signed up yesterday with synch. I don't know my password and I need it to reset a new password. Please advise how to set a new password when I dont know old 1
    I set it up on my "upstairs computer" and then came to my "downstairs computer" to synch and I can not get into the account because of the above password problem. I write down my passwords. I must have mistyped it or mis written.
    I want to change my password

    The new Sync version uses the Firefox account and stores the login data (username/email and password) under the https://accounts.firefox.com site heading in the Password Manager and use the signedInUser.json file in the profile folder to store the credentials once connected to the account to avoid having to enter the master password on each start.

  • CMDLET commands regarding setting a default font for all users using OWA on an exchange 2010 platform

    HI,
    We are running Exchange 2010 and are migrating users from 2003 to 2010 with no problems.  The client has asked me to set OWA font to LuidaSans which I can do for individuals with no problems.  However, when I try and run the following command
    Get-Mailbox -Resultsize Unlimited | Set-MailboxMessageConfiguration -LucidaSans but then got a message to state
    "property composefontname can't be set on this object becuase it requires the object to have version 0.1 <8.0.535.0> or later.  The object's currant version is 0.0 <6.5.6500.0>"
    What object is this reffered to?  Can anyone help please?
    Thanks
    Paul

    Hi,
    To set a default font for all users, you can use this command: -
    Get-Mailbox | Set-MailboxMessageConfiguration -DefaultFontName "Trebuchet"
    You can use any font style in place of “Trebuchet”.
    I hope this information will be helpful for you.
    Thanks and regards
    Ashish@S 
    Ashish@V

  • Set a default layout for all users via DIAPI

    Hello everyone,
    I am attempting to set a default report for all users/business partners using the DI-API. 
    I can accomplish this in the B1 application via Tools> Layout Designer...>Set as Default
    If there are entries in the RDFL table for this layout, I am prompted to delete these entries and set this layout as the default for all users/BP's
    Based on the SDK Documentation, the following code should accomplish the same thing via the DI-API
    (stripped down for clarity)
    Dim oDefaultReportParams As DefaultReportParams
    oDefaultReportParams = oLayoutService.GetDataInterface(ReportLayoutsServiceDataInterfaces.rlsdiDefaultReportParams)
    oDefaultReportParams.LayoutCode = sMyLayoutCode
    oDefaultReportParams.ReportCode = sMyReportCode
    Me.oLayoutService.SetDefaultReport(oDefaultReportParams)
    Code executes fine, but it doesn't have the expected impact on settings.  The above code adds an entry to the RDFL table rather than changing the DfltReport field in the RTYP table like I expected, so instead of setting the default report globally for all bps/users, its adding an entry to the RDFL table to set the value for a specific user/bp
    I experimented by including and setting the following properties to every combination I could think of with the same results
            oDefaultReportParams.UserID = 'tried 1, 0, -1
            oDefaultReportParams.CardCode = 'tried "", "0", "-1"
    Am I misunderstanding the API, or using the wrong objects/calls...? If all else fails I could accomplish this via the UI-API instead, but the application was intended to be a stand alone app that didn't rely on SAP B1 application running, so any help or suggestions would be much appreciated.
    Thanks!

    Hi,
    Please repost at SDK forum to get quick response. Close this thread here with helpful answer.
    Thanks.

  • WHAT IS THE DEFAULT PASSWORD FOR GUEST USER

    what is the default password for guest user?

    There is no default password for a guest user unless you've created one:
    (screenshot from the System Pref Guest User Pane)

  • Call adapter when Xellerate User is created

    How can I attach an adapter when an Xellerate User is created? I see that the Add User task for Xellerate User process definition does not have any adapter attached to it. Can I just attach my adapter from the integration tab so that it will get called when the user is created in OIM ?
    Previously I have attached an Task on a response code but I don't see any response codes for "Add User" task.
    Edited by: DJ on Aug 16, 2011 2:16 PM

    Here are the steps I performed:
    1. Changed MIL data level of "Add User" to 0
    2. Added a task in Xellerate User - "Create User on Target"
    3. Tried to add "Add User" as precedding task in "Create User on Target" task but failed with the error.
    I found this thread to which points to editing Data Object Manager on post-insert. I'm not sure which Form do I need edit, User Tasks? Users.User Defined tasks?
    OIM Xellerate: how to trigger external actions from a create user event

  • How do you re-set an iPhone password when your child, the comedian, thought it was funny to change the four digit code, and now cannot remember what he put in? Thanks

    How do you re-set the four digit password when your son, the comedian, thinks it was funny to change the password, but now cannot remember what he changed it to? the phone goes inactive for 60 minutes, but I can't figure out how to get a reset.  Thanks, kel

    You're in trouble. You'll have to force the phone into recovery mode & restore it to remove the passcode:
    Leave the USB cable connected to your computer, but NOT your phone, iTunes running, press & hold the home button while connecting the USB cable to your dock connector, continue holding the home button until you see “Connect to iTunes” on the screen. You may now release the home button. iTunes should now display that it has detected your phone in recovery mode, if not quit and reopen iTunes. If you still don’t see the recovery message repeat these steps again. iTunes will give you the option to restore from a backup or set up as new.

  • Set a dynamic default property when a page is created?

    Is there a way to set a default property that is dynamic for a page when it is created? For example, i want to capture a user id from our system and store it in an "author" property when the page is first created. This value can be changed to a different user by the author but in case they don't set it i want to have it default on page creation.
    I guess a better question would be, is there somewhere i can put code so that it will be executed when a page is created?
    I considered writing a custom widget and putting this in page properties, but that won't actually run unless page properties has been opened.
    Thanks

    For anyone in the future, here is how i implemented the event handler -
    @Component
    public class PageCreationObservation implements EventListener {
        Logger log = LoggerFactory.getLogger(this.getClass());
        private Session adminSession;
        @Reference
        SlingRepository repository;
        @Activate
        public void activate(ComponentContext context) throws Exception {
            log.info("Activating PageCreationObservation");
            try {
                String[] nodetypes = {"cq:Page"};
                adminSession = repository.loginAdministrative(null);
                adminSession.getWorkspace().getObservationManager().addEventListener(
                    this, //handler
                    Event.NODE_ADDED, //binary combination of event types
                    "/content/appname", //path
                    true, //is Deep?
                    null, //uuids filter
                    nodetypes, //nodetypes filter
                    false
            } catch (RepositoryException e) {
                log.error("Unable to register session",e);
                throw new Exception(e);
        @Deactivate
        public void deactivate(){
            if (adminSession != null) {
                adminSession.logout();
        public void onEvent(EventIterator eventIterator) {
            try {
                while (eventIterator.hasNext()) {
                    Event newEvent = eventIterator.nextEvent();
                    log.info("something has been added : {}", newEvent.getPath());
                    //Check if node exists and it is a content node of the newly created page
                    if (adminSession.nodeExists(newEvent.getPath())
                            && adminSession.getNode(newEvent.getPath()).getProperty("jcr:primaryType").getString().equals("cq:PageContent")) {
                        Node contentNode = adminSession.getNode(newEvent.getPath());
                        if (contentNode.getProperty("jcr:createdBy") != null) {
                            contentNode.setProperty("author", contentNode.getProperty("jcr:createdBy").getString());
                adminSession.save();
            } catch(Exception e){
                log.error("Error while treating page creation events",e);

  • Changing the default password when configuring.

    Hi,
    can anyone tell me how to change the default password and username when you are first configuring your router?  You know when you go to http://192.168.1.1/?
    I know the default password is admin and there is no user name but I would like to change that so that not just anyone who knows the default password can see the wep incryption I have in place.  Please can someone help?

    What router are you using?
    On most Linksys routers, you cannot change the User Name.  You must leave it blank.
    To change the Password, login to the router, and go to the "Administration" tab.  You should find the Password somewhere nearby.

  • Setting the default format when exporting to spreadsheet

    Can I set the default format to be used when my end users export a report to a spreadsheet? I would like to set the default to Excel (in Office 2003 XML format).
    Currently the end user has 7 choices for creating spreadsheets if the selecte the "All Available Formats" option when generating a spreadsheet. Those options are:
    - Excel (in MHTML format)
    - Excel (in MHTML format for 2000/97)
    - Star Office 8
    - Excel (in Office 2003 XML format)
    - SAP internal XML format
    - SAP Standard (internal table)
    - Excel (in previous XXL format)
    I ran the report SALV_BS_ADMIN_MAINTAIN and selected the following criteria:
    1.) Action = create
    2.) General Data = ALL
    3.) ALV GUI / EXCEL VERSION = Excel (in Office 2003 XML format)
    If I examine the table SALV_BS_ADMIN there is a new entry where:
    OBJECT = GUI_ALV_XML_VER
    M_USER = *
    VALUE = 04
    When I run a report and export to a spreadsheet I do not see any change in my selection criteria.
    I read SAP note 1080608. This note tells you that by running the report SALV_BS_ADMIN_MAINTAIN you cannot set the default value. Is there a report I can run that will set the default value for alll the users on the system?

    Hi
    You execute the report SALV_BS_ADMIN_MAINTAIN and selected the following criteria:
    1.) Action = change
    2.) General Data = Detailed Selection
         a) Client = SAP client no.
         b) User All = User ID
    3.) ALV GUI / EXCEL VERSION = Excel (in Office 2003 XML format)
    Execute the report and Excel 2003 will be defaulted in export to excel.

  • How to set username and password when using Proxy class for SOCKS5?

    Hi all,
    I use the proxy class for SOCKS5, so need to set username and password, I don't find where can I set the value. whether the API support it.
    Thanks in advance!

    System.getProperties().put("proxySet", "true");That does nothing. Remove.
    System.getProperties().put("proxyHost", getProxyHost());
    System.getProperties().put("proxyPort", getProxyPort());You should be setting socks.proxyHost and socks.proxyPort here.
    System.setProperty("java.net.socks.username", getSOCKSUsername());
    System.setProperty("java.net.socks.password", getSOCKSPassword());
    Authenticator.setDefault(new ProxyAuth(getSOCKSUsername(), getSOCKSPassword()));You either need the first two lines or the third, not both. See the last link posted above.
    1. After I set the value, I connect internet by proxy, how the proxy server knows the values?Because Java tells it during the SOCKS handshake.
    2. In my app, I just set the values in the system properties, then JVM does remaining work? Remaining work is not concerned?Should be OK unless you have to connect to a different SOCKS proxy from the same JVM, but that kind of thing is problematic anyway due to the curious Authenticator design which is set globally, not per connection as you might expect.

  • How can we set the Default to "New Window" for the "Create Link" – "Specify Open Preference"?

    We would like to set the "New Window" as default but can't find where to set it..  I looked through all the Perferences and could not find where this is set.
    We see this when creating Links.
    Thanks in advance for any suggestions.

    Thanks for your reply.  We are using Acrobat Pro 10.1.3 on Windows 7 64 bit workstation. 
    We see this when adding a link in a PDF.
    Go to Tools, Content, Link.  Highlight something, Creat Link, click Next.  Pick somthing to Link too.  Like another PDF and the Window in the first screen shot comes up.
    I ran a Regshot and here are the results.  Looks like all user keys which would be normal but there must be a way to set the default in the Preferences?  This does not seem to be a setting that stays if you will so there must be something over-riding it.

Maybe you are looking for