Sun idm 8.0.0.3: generate random password according to policy

Hi all,
probably a stupid question: using sun idm 8 I have an active-sync-source, containing employees but no passwords. So I should generate a new password in my active-sync-form and search for a way to export the password so new employees can be sent a letter "welcome at company, here is your password". Something like that.
However, I fail to generate a password in the first place. I think I read about a PasswordGenerator once, but can't find it.
So, what's the preferred way to generate a new password, if possible according to a selected password-policy?
CU,
Patrick.

OK, OK if the policy is set to generate my troubles go away.... I thought that was gone with metaview?
Anyway, what if I'd like to choose a special Policy for creation that differs from normal operations?
CU,
Patrick.

Similar Messages

  • How to create a javabean that generate random password?

    May i know how to create a javabean that can generate random password?
    that include character and string
    and length of 10.

    i created a class file for my java bean
    package autogenerate;
    import java.util.*;
    public class GeneratePwId
    private int MemId;
    private String Passwd;
    public GeneratePwId(){}
    public String getPasswd()
    return this.Passwd;
    public void setPasswd()
    char[] letters = { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
    'J', 'K', 'L', 'M', 'N', 'P', 'R', 'T',
    'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c',
    'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k',
    'm', 'n', 'p', 'q', 'r', 's', 't', 'u',
    'v', 'w', 'x', 'y', 'z', '0', '1', '2',
    '3', '4', '5', '6', '7', '8', '9' } ;
    String pwd = "" ;
    while( pwd.length() < 10 )
    pwd += letters[ (int)( Math.random() * letters.length ) ] ;
    this.Passwd = pwd;
    i successfully compile my java file. and try to test it by writing a jsp file.
    here is my jsp code
    <html>
    <head>
    <title>
    Try retrieving password
    </title>
    </head>
    <body>
    <jsp:useBean class"autogenerate.GeneratePwId" id="bean0" scope="page"/>
    <%=bean0.getPasswd()%>
    </body>
    </html>
    but i encounter this error
    org.apache.jasper.compiler.ParseException: /jsp/GetPasswd.jsp(7,18) Attribute class has no value
    anyone can teach me how to solve this problem?
    thanks a alot!

  • How can I generate random password

    Hello...
    I use oracle 10g for windows,,,I have an employee table , there are a lot of colunms , their names are employee_name , employee_id ,employee_pass .....
    employee_pass colunm is empty
    I want to generate random password for employee_pass colunm
    How can I generate random password for employee_pass colunm
    thanks
    omer faruk akyuzlu
    in Turkey

    SQL>  exec dbms_random.seed(to_char(sysdate, 'sssss'))
    PL/SQL procedure successfully completed.
    SQL> select dbms_random.string('X', 8) from dual
      2  /
    DBMS_RANDOM.STRING('X',8)
    4YT1H150
    SQL> select dbms_random.string('X', 8) from dual
      2  /
    DBMS_RANDOM.STRING('X',8)
    WIA3QCIP
    SQL> Please be aware that storing the actual passwords in a the EMPLOYEES table is a very bad idea. Oracle has a pretty good password implementation. It's not perfect but it's a darn site better than hand-rolling our own.
    Cheers, APC

  • How to generate random password

    Hi Experts,
    i using some cmdlets to generate random password.
    $ascii=$NULL;
    For ($a=97;($a –le 122);$a++) {$ascii+=,[char][byte]$a }
    $No_of_password  = 6
    $length_of_password = 10
    $TempPassword=$NULL     # To store single password
    $Morepassword=@()  # Variable to 'X' no. of passwords
     for ($lp=0; $lp -le $count; $lp++ )
    For ($loop=1; $loop –le $length; $loop++)
        $TempPassword+=($ascii | GET-RANDOM)   # this generate the random password
    $morepassword[$lp]= $TempPassword 
    $morepassword    # This should give the all random password
    Output is like --- 
    =zM;HFuElY
    =zM;HFuElYp88<kqTOVM
    =zM;HFuElYp88<kqTOVMfS1xR01VzY
    =zM;HFuElYp88<kqTOVMfS1xR01VzY4<$wG%Z>ft
    =zM;HFuElYp88<kqTOVMfS1xR01VzY4<$wG%Z>ft=a&ME7>&3T
    =zM;HFuElYp88<kqTOVMfS1xR01VzY4<$wG%Z>ft=a&ME7>&3T$98v$b>jSU
    This is not required output. It should give the output like
    =zM;HFuElY
    p88<kqTOVM
    fS1xR01VzY
    4<$wG%Z>ft
    =a&ME7>&3T
    $98v$b>jSU
    Total 6 passwords with a length of 10
    How do create a array like this ?

    I agree with Fred but here i shwo to manage two loops with PowerShell.
    $pwdchars=33..122|%{[char]$_}
    1..6|
    ForEach-Object{
    $pwd=''
    1..10 |
    ForEach-Object{
    $pwd+=$pwdchars | GET-RANDOM
    $pwd
    It is usually always better to write less code and to use the code correctly.  YOu have guessed at mmost of the code but have not used consistent variables.  My guess is that you have tried to modify somecode you found.  Look at this code
    to see how easy it is to build loops in PowerShell
    ¯\_(ツ)_/¯

  • How to generate random password as per password policy by knowing the resou

    Hi,
    Any body tell me, how to generate random password as per password policy by knowing the resource object in OIM11g
    Regards,
    Nishith Nayan

    Hi Nayan,
    You can try below code snippet:
    UserRepository ur = new DBUserRepository();
    UserInfo user = ur.getUserInfo(userKey);     
                   ResourceRepository rrepo = new ResourceDBRepository();
                   Resource resource = rrepo.findResource(resourceName);
                   PasswordPolicyAssignmentsRepository par = new PasswordPolicyAssignmentsDBRepository();
                   PasswordPolicyRepository ppr = new DBPasswordPolicyRepository();               
                   List passwordPolicyAssignments = par.getPasswordPolicyAssigments(resource);     
                   PasswordPolicy passwordPolicy;     
                                            PasswordPolicyAssignment passwordPolicyAssignment = (PasswordPolicyAssignment) passwordPolicyAssignments.get(0);
                             if (isApplicable(passwordPolicyAssignment, getMappedAttributes(userInfo.getAttributes()))) {                            
                                  passwordPolicy = ppr.find(passwordPolicyAssignment.getPasswordPolicyID());                    
                                                 RandomPasswordGeneratorImpl rpg = new RandomPasswordGeneratorImpl();
                             password = rpg.generatePassword(userInfo, passwordPolicy);
    regards,
    gyan

  • Parameterized Active Sync Form generating random password

    Hi im looking for an sample of an Parameterized Active Sync Form which generates a random password.
    Thanks!
    Michael

    --I think password from AD not put in to activeSync.
    --Why?
    You cannot change the user's password from the activeSync RA. The password is encrypted in Active Directory and you can't decrypt it.
    You can read the Idm Resources Reference - Active Directory. There's a table with all the supported fields; the userPassword field is write-only.
    If you want to take the AD password and send it to IDM, you want to use Password Sync.
    Good luck

  • Generate Random Password by policy

    Hey guys,
    I'm trying to put together some code to randomly generate a password for new users that would match up with the user's associated password policy. I have this code mapped as a entity adapter on the pre-insert. The problem i am having is trying to retrieve the password policy that is associated with the new user.....the tcPasswordOperationsIntf utility class has a method called getUserPasswordPolicy which takes the usr_key as an argument.....but since the user hasn't been created yet the method fails with an usr_key not found error.
    anyone know how i can get the password policy for a new user? has anyone done anything like this before?
    Thanks in advance!

    Well if you are trying to set the password for the Users created in OIM then the password policy must be attached to Xellerate Users resource object. So you have an option of fetching the password policy using another API getObjectPasswordPolicyDescription of the same interface. You need to pass the Object Key in this case. This must return the ResultSet for the same thing you are expecting.
    The you can validate the password accordingly.
    Thanks
    Sunny

  • Random password

    dear friends,
    please tell me how to generate random password using empno from emp table both from frontend forms and through plsql.

    Look at this.. I wrote this to generate password for one of the jobs that we run every 90 days..
    CREATE OR REPLACE procedure GENERATE_RANDOM
    IS
    cursor c1 is
    select username
    from password_age where FLAG='Y';
    V_Random_number binary_integer;
    V_Prefix varchar2(4);
    V_Password varchar2(9);
    begin
    FOR crec IN c1
    LOOP
    V_Random_number := dbms_random.random;
    V_Password := substr(to_char(abs(V_Random_number)),1,5);
    V_Prefix := substr(to_char(sysdate,'DAY'),2,1)||to_char(add_months(sysdate,substr(V_Random_number,2,3)),'MON');
    Update password_age set passwd = V_Prefix||V_Password where username = crec.username;
    commit;
    END LOOP;
    end;
    /

  • Error while Reading Idocs from ECC 6.0 to Sun IDM .

    Hi Gurus,
    We have a scenerio where we have to update the Sun IDM Server with all the changes in HR Data happening in ECC.
    For that... we have
    1. Created a Logical System for Sun IDM server, Port, RFC Connection (TCP/IP).
    2. Assigned Partner Profiles, Distribution Model etc. for msg. type HRMD_A ;
    3. We have created a Communications User used by the IDM server to connect to ECC.
    Idocs are created daily and are in status 03 - Data passed to Port OK !
    and on the In Sun Identity manager 8.0 we have created SAP resource adapter for ECC 6.0,
    after giving resource parameters our test connection is successful.
    We also changed edit synchronisation policy for the same but when we start synchronisation in IDM, it is unable to read any idocs although Idocs are generated in SAP .
    Log file gives the message as "Incoming IDoc list request containing 0 documents"
    We also have one more error ;
    some times while doing a connection test : JCO.Server could not find server function '剆䍟偉乇'
    while most of the times the connection is successful.
    Please suggest .

    Hi Gurus,
    The error got resolved .
    The changes in the settings i did :
    SAP SIDE : Made the RFC Connection Unicode.
    IDM SIDE : Checked on the "SAP Server Unicode" checkbox; while doing the HR Activ Synch Settings.
    This Resolved the error.
    regards
    Vaibhav

  • Sun IdM newbie - netbeans question

    Our Sun IdM configurator consultants have left and I'm trying to open our Development IdM project in Netbeans (just went to admin training and want to poke around). I have all the software ready on the workstation and the Sun IdM Netbeans plugin installed.
    I cannot create a successfull project on my Windows XP workstation and I think I'm missing a few steps.
    Here's what I did so far:
    1. Checked out the code in Netbeans.
    2. Ran the command "ant -verbose dist-war" and got a BUILD SUCCESSFULL message.
    3. I open netbeans and browse to the IdM directory but instead of opening the project, it traverses into the next folder.
    What are my next steps in order to open this in Netbeans as a project? I can copy the IdM/nbproject directory from the workstation our consultants developed the software on into the IdM directory on my workstation and Netbeans will allow me to open the project.
    But to do this the correct way, what do I have to do after the build to get the nbproject and other project related directories/files into my IdM directory so I can open the folder as a Netbeans project?
    Any help would be appreciated.
    Thanks,
    Ed

    OK, OK if the policy is set to generate my troubles go away.... I thought that was gone with metaview?
    Anyway, what if I'd like to choose a special Policy for creation that differs from normal operations?
    CU,
    Patrick.

  • Sun IDM Key based authentication

    Hi All,
    I've a requirement in SUN IDM for configuring an AIX resource with key based authentication.
    For this, first i created public and private keys in the AIX resource ( AIX Server) with a passphrase. The files id_rsa and id_rsa.pub are now available in /home/<UserID>/.ssh on the AIX Server . UserID is the ID used to login to the AIX server( no root access)
    Then, i created a file named authorized_keys and copied the contents of the id_rsa.pub and pasted in authorized_keys file.
    For key based authentication, i configured the resource with the following parameters on SUN IDM console :
    Host name=Specific to server
    TCP Port=22
    Login User= <UserID> <User ID used while creating publice and priavte keys on AIX server)
    Login shell Prompt=$
    SUDO authentication =TRU
    Connection Type= SSHPubKey
    Private key = (Contents of id_rsa file from AIX server)
    Passphrase = created from the server
    Now, if i do the Test Configuration, I get the error message : Auth Failed.
    Do I need to create the authorized_keys file under the /.ssh ( root .ssh folder of the AIX server ) instead of the .ssh folder of the UserID used for creating the keys?
    Am i missing something here?
    Thanks in advance.

    The issue is resolved.
    Steps done to solve:
    1. Logged in to the IDM Server via putty with a User ID which has better Sudo rights and generated the keys with passphrase.
    2. Logged in to the target resource ( AIX Server ) and appended the contents of public key ( From the IDM Server) in authorized_keys file ( in AIX server)
    3. Gave the private key and passphrase (generated from IDM Server ) in the Resource parameters in IDM console.
    After following the steps above, i was able to do a test configuration successfully.

  • Please help to write a java code for generate Random numbers

    I need a program for generate Random integer numbers by using roulette wheel theory. I search several ares, but I'm unable to find out at lease a Pseudo code for implement this. If you know or have a code for this, Please send me a mail to [email protected] or post here.

    Gagana wrote:
    I need a program for generate Random integer numbers Have a look at the java.util.Random class:
    [http://java.sun.com/j2se/1.5.0/docs/api/java/util/Random.html]
    Or Google:
    [http://www.google.com/search?q=random+java]
    by using roulette wheel theory. What is that?
    ... Please send me a mail to [email protected]
    No, that defeats the purpose of a public forum. And no one is going to e-mail you (other than someone trying to sell V1AGRA).

  • Using Sun IDM with Firefox 3.0.3

    We just upgraded to Firefox version 3.0.3. When I try to run a report in Sun IDM, I get the following error:
    There was an error while retrieving task status.
    This connection has timed out. Please login again.
    It works properly in IE, and previous versions of Firefox.
    Does anyone know of a fix for this, and has there been any other problems with Firefox 3.0.3?
    Thanks,
    Jody

    jweisbau wrote:
    There was an error while retrieving task status.
    This connection has timed out. Please login again.That error you're seeing is from the little java applet that runs when a report is generated. It's possible a new security restriction regarding applets is active in your browser.
    You can still see the report by looking in Server Tasks -> All Tasks and viewing the result of the report task there.

  • How to generate random integer?

    What is the func to generate random integer (at most 4-5 digits). Thanks.

    Luckily you asked an amazingly popular question - just take a peek at the answers found in this very forum:
    http://search.java.sun.com/search/java/index.jsp?col=javaforums&qp=%2Bforum%3A31&qt=Generate+Random+Integer

  • Sun IDM : License Expires

    Hello all,
    I have a random question here.
    We have been using Sun IDM (version 8.1) for the last 3 years or so.
    We purchased a subscription from Sun, which expires in May next year (2012).
    We are aware that, this means : we will no longer receive any form of support from Oracle, nor will we have access to any product updates.
    However, we are curious : will we still be able to use the product itself? Or, does the expiry of our license/subscription mean that our IDM system will suddenly shut down, and stop working?
    Thanks

    From what I understand, there are two components to the support contract, the level of support and the license to use the product. Please check with the Oracle sales guys or gals to get the details.
    I think the confusion stems from the fact that Sun used to give people a free to use license on most of their products and made the support contract for those products as a value-add option. However, not all products were available like that, some products actually had to be licensed in combination with a support contract. I think Identity Manager was one of the products which falls into the latter category.

Maybe you are looking for

  • Will not start after restore

    i have a 24" iMac that was regularly backed up to a time capsule via time machine.  when the hard drive crashed apple replaced the 320GB drive with their 500GB drive.  i anticipated a smooth and easy restore from the time machine backup, though it wo

  • I have a Movie In I tunes and when my new touch sync's it is not collecting

    I am a new user of the touch, i have downloaded a film which i can see in the itunes application on my pc, when my ipod syncs it is not picking up the movie, also it has picked up a couple of music videos, should the movie be stored in the same place

  • How can I listen to the local radio on my ipod when not on wifi?

    I used to have an ipod nano and was able to listen to local stations on the radio without being connected to wifi and now I have an ipod touch and no longer have that option.  Is there anyway that I can listen to the local radio stations on my ipod t

  • I cannot access the settings tab in the management console

    I am in the management console for my verizon d-link router and i cannot access the settings tab.. i got to the router/verizon management console via the default gateway ip address and used the default password which worked and then tried to access s

  • Cant find and uninstall

    I tried to download free trial but there is an window apperas ,,A conflicting or prerelease version of Adobe Photoshop Cs6 exit on this computer.The confliction version must be removed befor installing from curent media.,, I tried to search that exis