Unlock user during reset of password in "GetSupport" page

Hi gurus,
I'm quite fresh in Portal development, and one of my first task would be to unlock the user id when the user ask for reset its password in "GetSupport" page.  I found the page umLogonProblemPage.jsp into the Logon par file. 
And after some research in forums, I found this piece of code which unlock the user id. 
<%
public void unlock(String uniqueNameOfUser) throws UMException {
+     IUserFactory userFactory = UMFactory.getUserFactory();+
+     IUserAccountFactory userAccountFactory = UMFactory.getUserAccountFactory();+
+     try {+
+          IUser user = userFactory.getUserByUniqueName(uniqueNameOfUser);+
+          Iterator userAccounts = user.getUserAccountUniqueIDs();+
+          while (userAccounts.hasNext()) {+
+               IUserAccount userAccount =      userAccountFactory.getMutableUserAccount(userAccounts.next().toString());+
+               userAccount.setLocked(false, IUserAccount.LOCKED_NO);+
+               userAccount.commit();+
+          }+
+     }+
But I really have no idea how to call this java code into the html code.  I assume that into the tag <FORM ... I should call the java method as an ACTION of the FORM.
Does anybody as an idea how to do such thing ? Maybe a better way how to do this unlock of user after we the reset of password ?
Thank you for all your help
Hadrien
%>

Hi,
it is not possible to run that java code in HTML - it has to run in the Portal-Server.
A .jsp page is a script that runs on the server, normally it is called by a action form the browser (e.g. submit of a form).
The jsp can contain java code in so called scriptlets, they are indicated by
<%
       // java code here
%>
So you should find the part of the jsp's that is execute, then you want to reset the user. ther yoou may place like this:
<%
IUserFactory userFactory = UMFactory.getUserFactory();
IUserAccountFactory userAccountFactory = UMFactory.getUserAccountFactory();
try {
IUser user = userFactory.getUserByUniqueName(uniqueNameOfUser);
Iterator userAccounts = user.getUserAccountUniqueIDs();
// rest of the java - code
%>
I would recommend to revisit the basics of jsp's and java programming at java.sun.com
Hope this helps
Johannes

Similar Messages

  • Unlock User and Reset Password via DB

    Hi,
    I've a SAP FI running on Oracle. I have the SAP ID but no password.
    I've the access to the Oracle DB. How do I unlock the ID and reset the password via the DB.
    Please advise.
    TIA !
    Desmond

    Hi Desmond,
    You can unlock SAP user id from DB level, but there is no way you can reset password for SAP user id from DB level.
    Below is the command for unlocking user id from DB level.
    Connect to orasid.
    sqlplus "/as sysdba"
    SQL>update sapr3.user02 set uflag=0 where bname='userid' and mandt='<clientno>'; -- for older SAP versions
    From ECC 5
    SQL>update sap<SID>.user02 set uflag=0 where bname='userid' and mandt='<clientno>';
    Thanks,
    Phani.

  • AD User Cannot reset their password on Child Domain

    I have windows server 2008r2 which is my Parent Domain and child domain on windows server 2003. All my users on Child domain stuck on resetting their password
    and following error message appears 
    "The password does not meet the password
    policy requirements"
    Although I have not applied any password policy, don't know why this error message is appearing.
    Please help...

    Hi,
    In addition to the above information, you can check the resultant password policy settings applied for an AD user account by following the below steps,
    - Login to a client machine as AD user
    - Go to Start -> Run -> Type RSPO.msc.
    - In the RSOP console, navigate to the node Computer Configuration\ Windows Settings\ Security Settings\ Account Policies\ Password Policy.
    - In Password Policy page, you can confirm, what is the current password settings applied to that AD user.
    - Now based on the password policy settings you can try to change the password.
    Regards,
    Gopi
    JiJi
    Technologies

  • Forcing Windows Users to Reset Their Passwords when accessing server

    If I set a Windows user's password to "be changed at next login", then hop on to \\our.servers.ip.address\ the user is never prompted for a password and instead is told that the login failed. However, I can hop on a Mac and login with the same username and will be instantly prompted to fill out a new password.
    Is there a way to get Windows to play nicely with this?
    The server uses OD, but the server does not serve as a PDC. And I have no need to bind our laptops. Is it possible to get this to work with the current setup? I imagine not, but I'm optimistic today.
    Clarified a few things.

    I setup the server as a PDC, but even then the same hiccup is encountered. It won't let the user set a new password but rather denies the login completely.

  • Portal: Password reset and unlock User via UME?

    I'm new to Portal and SAP.  I'm trying to find options to have a username unlocked and password sent to user based on a userid from our Portal logon page.
    The end user needs only to know their user ID, and based on this user ID I need their username to be unlocked, and a temporary password to be emailed to them (Looked up from their user ID via Database) 
    From what I've been reading UME can do this, but when I look into configuration of it I'm not seeing anything that can define this to show up on the Portal logon page.  Does this have to be developed and built in or linked as a separate page or is there a prefab one made already(nothing I could find showed evidence of this, although the documentation regarding UME hinted at this)?
    The end user doesn't need to answer security questions because to get access to the portal they already have to be on my secured network. 
    Any help would be great!
    Edited by: Andrew Urban on Aug 7, 2008 12:09 AM
    Edited by: Andrew Urban on Aug 7, 2008 12:10 AM
    Edited by: Andrew Urban on Aug 7, 2008 12:16 AM

    Andrew,
    This link might help explain what is possible with SAP Portal in terms of allowing the user to reset their password from the logon screen.
    http://help.sap.com/saphelp_nw04s/helpdata/en/45/7e6313d8780dece10000000a11466f/frameset.htm
    As for allowing a user to unlock their account from the logon page, there is no such functionality that I know of.  This would need to be developed.  We are doing something similar.  In our case, we are developing a module that allows user to retreive their user ID if they forget it.  This also is not functionality that SAP provides.  The user can specify their email address, and it emails them their user ID.  This is being developed in Web Dynpro for Java utilizing the UME APIs.
    - Andrew Castillo

  • Can user Reset the Password without Administrator help in MS Exchange server 2013

    Hi Team 
    IT is possible  for user to reset the password
    in MS Exchange server 2013 without Administrator help? (by getting mobile verification code how we get in Gmail ,& Outlook )   
    if it is possible ,kindly send me the configuration URL to my Mail ID [email protected] & [email protected]
    Thanks & Regards
    Dinesh.s
    +91 9566958700 

    You would have to assign Admin role permission to users in EAC.
    To understand this concept in more depth, I would refer you at this well described article : http://www.mustbegeek.com/reset-user-password-in-exchange-2013/
    Or, you may use any third party like, (http://www.selfservicepasswordreset.org/) that seems to be an appropriate approach in your environment. This tool allows end-users to perform self password reset
    and self account unlock from any computer in the network through a web-browser or directly from the login screen without any assistance from the administrator. Administrator can configure strong policy for automatic account unlock and automatic reset
    password at a specified time for any particular domain OU's.

  • Prevent user from resetting password more than once in a day

    Hi,
    1) my requirement is that, i want to prevent a user from resetting his password more than once in a day in OIM 11g.
    i guess that has to be implemented using a pre-process event handler on reset password page.
    is that achieveable? i dont have much idea on which places i can attach a pre-process event handler to.
    2) I want to restrict a user from using sequential passwords. eg: abhi1, abhi2, abhi3
    This is not present OOTB. just want to know. can we do it via custom code.? but this will expose that password (security breach- which i dont want)
    is there any way i can achieve this via configurations in OIM or some event handler.?
    Thanks in advance.

    1.yes, update "Minimum Password Age" to 1 for the password policy.
    2. you can't achieve this by configuration. But, yes write an event handler and put your validation there. probably this is required on manual create or update so use pre-insert and pre-update eventhandler for validation.
    --nayan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Resetting the Password using wwsso_ls_private.ls_reset_password

    While resetting the password using wwsso_ls_private.ls_reset_password, an exception is thrown.
    Here is the exception:
    ERROR at line 1:
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "PORTAL30_SSO.WWSSO_LS_PRIVATE", line 2546
    ORA-06512: at "PORTAL30_SSO.RESET_PASS", line 10
    ORA-06512: at line 1
    Any idea why this exception is thrown?
    Any help is greatly appreciated.
    Thanks.
    Bala
    null

    Some more information that might be helpful:
    Installing the Password Reset Feature for 3.0.7
    Sometimes users forget their passwords and want to reset them. The Login Server offers a
    feature that resets a user's password to a random value and then notifies the user of the new password.
    This feature potentially presents a security issue, because the user is unauthenticated when requesting a password reset for a particular user account. For this reason, the password reset feature is not enabled by default and must be set up by the following steps.
    Perform the following steps to install the password reset feature:
    1. On the database where the Login Server is installed, log on to SQL*Plus as the Login Server schema
    Example: sqlplus portal30_sso/portal30_sso
    2. Enter the following command:
    @ssoreset
    This script creates a package called WWSSO_APP_ACCOUNT in the Login Server
    schema and grants execute privileges on the WWSSO_APP_ACCOUNT package to PUBLIC. WWSSO_APP_ACCOUNT contains a single procedure, reset_password, that resets a password to a random value.
    3.After resetting the password, the reset_password procedure calls another procedure WWSSO_ALERT.password_reset_notification). The purpose of the
    password_reset_notification procedure is to inform the user of the new password. However, the default implementation of the password_reset_notification
    procedure, created during the installation of the Login Server, does nothing.
    The specification of the WWSSO_ALERT package is:
    CREATE OR REPLACE PACKAGE wwsso_alert
    IS
    /* General failure exception. This will be used by the UI to alert the user that the notification
    Note: You must replace the WWSSO_ALERT package body with an
    implementation that sends the user his or her new password, for example, through e-mail (using UTL_SMTP), or workflow. If you do not replace this package body, the password will be reset to a value that no-one will ever know, and the user will still be unable to log on.
    NOTIFICATION_FAILURE EXCEPTION;
    PROCEDURE password_reset_notification
    p_user VARCHAR2,
    p_password VARCHAR2,
    p_email VARCHAR2 DEFAULT NULL
    END wwsso_alert;
    CREATE or REPLACE PACKAGE BODY wwsso_alert
    IS
    PROCEDURE send_mail
    p_sender IN VARCHAR2,
    p_recipient IN VARCHAR2,
    p_message IN VARCHAR2
    IS
    mailhost VARCHAR2(80) := '&smtp_server';
    mail_conn utl_smtp.connection;
    BEGIN
    mail_conn := utl_smtp.open_connection(mailhost, 25);
    utl_smtp.helo(mail_conn, mailhost);
    utl_smtp.mail(mail_conn, p_sender);
    utl_smtp.rcpt(mail_conn, p_recipient);
    utl_smtp.data(mail_conn, p_message);
    utl_smtp.quit(mail_conn);
    END;
    PROCEDURE password_reset_notification
    p_user VARCHAR2,
    p_password VARCHAR2,
    p_email VARCHAR2 DEFAULT NULL?)
    IS
    BEGIN
    send_mail
    p_sender => '&password_administrator',
    p_recipient => p_email,
    p_message => p_user &#0124; &#0124; 'Your new password is ' &#0124; &#0124; p_password
    EXCEPTION
    when OTHERS then
    raise NOTIFICATION_FAILURE;
    END;
    END wwsso_alert;
    show errors PACKAGE BODY wwsso_alert
    4. Create a page that calls the reset_password procedure to allows users to
    reset their passwords.
    Reset Password Page Example
    The following is an example of how to design a page for resetting a user's password.
    <HTML>
    <HEAD>
    <TITLE="Reset password">
    </HEAD>
    <BODY>
    <H1>Reset password</H1>
    <FORM ACTION="http://server.domain[:port]/pls/dad/
    schema.WWSSO_APP_ACCOUNT.RESET_PASSWORD">
    <B>User Name: </B>
    <INPUT TYPE="TEXT" NAME="p_user">
    <BR><BR>
    <INPUT TYPE="HIDDEN" NAME="p_back_url"
    VALUE="http://server.domain[:port]/pls/dad/schema.home">
    <INPUT TYPE="HIDDEN" NAME="p_error_url"
    VALUE="http://server.domain[:port]/pls/dad/schema.error">
    <INPUT TYPE="SUBMIT" VALUE="Reset Password">
    <FORM>
    </BODY>
    </HTML>
    After the password for a user name has been reset (p_back_url) to the reset_password proced ure, the page must pass at least a user name (p_user) and the URL of a page to which to return. The page may also pass the URL of a page to display if any errors are encountered (p_error_url).
    null

  • Lost password   Trying to reset admin. password. Help, please!

    I'm trying to reset the administer password on my ibook g4 because for the life of me I can't remember my password! I've followed the advice posted below and come to a screen that is black with foreign languages on the bottom of the screen. That as far as it will go. Does anyone know what I'm doing wrong? Thank you to whoever can help me.
    Resetting the original administrator account password
    Follow these steps to reset a password when there is only one administrator account on the computer, or if the original administrator account (of several) needs a password reset. "Original" administrator account refers to the one that was created immediately after installing Mac OS X. If the original administrator password is known, the original administrator user may reset the passwords of other administrator accounts using the steps described above.
    Start up from a Mac OS X Install CD (one whose version is closest the the version of Mac OS X installed). You should first disable Open Firmware password protection, if it is enabled. Hold the C key as the computer starts.
    Choose Reset Password from the Installer menu (or Utilities menu in Mac OS X 10.4 Tiger). Tip: If you don't see this menu or menu choice, you're probably not started from the CD yet.
    Select your Mac OS X hard disk volume.
    Set the user name of your original administrator account.
    Important: Do not select "System Administrator (root)". This is actually a reference to the root user. Do not confuse it with a normal administrator account.
    Enter a new password.
    Click Save.

    You're Welcome Bobbi!
    "I am using our Mac OS X install Disc 1 from our Mac desktop computer. ... Do you think that matters?"
    Absolutely! That is causing the problem!
    That is a Model Specific disc, and probably not version Panther 10.3.x, and will not work.
    You can call Apple Customer Service 1-800-767-2775, and with the Serial Number of the iBook G4, you can order a replacement set, of the original system discs.
    If you have the Full Retail Version, of the Panther Install CDs, you should also be able to use that.
    Info about a Kernel Panic HERE.
    ali b

  • How to trigger email notification when users fail to give correct answers to reset your password in fim 2010 r2

    Hi,
    How to trigger email notification when users fail to give correct answers to reset your password in fim 2010 r2
    Senario:I want put wrong answering to the Questions that i was during registration if i give wrong answers to the questions then a Email Notification should be trigger to Users.
    Regards
    Anil Kumar

    Hi Sylvain,
    I did all thing as you told me.First i created Criteria based Set after this we created a Workflow type Action and Actvities Type Notifcation Email template and finally i called this Workflow in MPR as Set Transition and call Set that i was created below.and
    check Advance View of Set this gives
    <Filter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Dialect="http://schemas.microsoft.com/2006/11/XPathFilterDialect"
    xmlns="/Request[(Creator">http://schemas.xmlsoap.org/ws/2004/09/enumeration">/Request[(Creator = 'b0b36673-d43b-4cfa-a7a2-aff14fd90522') and (RequestStatus = 'Denied or PostProcessingError')]</Filter>
    But this is not working for me so please tell me where i am wrong.
    Regards
    Anil Kumar

  • HT2518 How do you reset the password on a migrated user account? Mac wants the old password putting in before we can set a new password and the old password won't work.  How do we get around this?

    Used Migraton Assist to transfer data from old Dell PC onto new Macbook Pro.  Data has come across but cannota access the User Account from the Dell.  It is displayed on the desktop of the Mac but is requesting and new password.  Before we can reset the password we have to put in the old password.  We have put in the old password but it doesn't work and therefore we can't reset the password and get into the User Account. 
    How do we get around this problem so that we can access the User Account.
    Although the data has transferred we cannot see our contacts transferred from Outlook into Mail.  We are wondering if they are contained within our User Account, but can't find out until we can access the it?
    Help wold be much appreciated.
    Pensos

    Hello:
    Hopefully this will help you:
    http://support.apple.com/kb/PH4117
    Barry

  • I am trying to sign in to attend a session and it says 'Invalid user or password. Please try again.' I have reset my password and it still doesn't work. I created a new AdobeID and it still doesn't work. I need to attend this training. How can I get in?

    I am trying to sign in to attend a session and it says 'Invalid user or password. Please try again.' I have reset my password and it still doesn't work. I created a new AdobeID and it still doesn't work. I need to attend this training. How can I get in?

    Sorry to hear about this problem. What site are you trying to log in on? Is it a Mozilla site? Usually you don't need to register or sign in to a Mozilla site to use Firefox. Usually you can just go straight to where you want to go.

  • How to force password policy requirements on password resets for user accounts reset by the Administrator?

    OS: Windows Server 2008 R2 Enterprise
    Domain Level: 2008
    Forest Level: 2000
    We have Domain Administrators in our domain that reset passwords for user accounts, and the passwords the Administrators set them to are not being enforced follow our default domain password policy. For example, I log on the domain controller, as an administrator
    and can reset a password for a user account to be blank. 
    Is there a reason Domain Administrator password resets for user accounts are not enforced by our default domain password policy? Is there a way to enforce this on password resets by Domain Admins? 

    Do you have fine grant password policy? If not ; by default all the usrs are effected by domain level password policy even domain admins,
    Regards~Biswajit
    Disclaimer: This posting is provided & with no warranties or guarantees and confers no rights.
    MCP 2003,MCSA 2003, MCSA:M 2003, CCNA, MCTS, Enterprise Admin
    MY BLOG
    Domain Controllers inventory-Quest Powershell
    Generate Report for Bulk Servers-LastBootUpTime,SerialNumber,InstallDate
    Generate a Report for installed Hotfix for Bulk Servers

  • HELP!!!!  ORA-01858 By creating user or reset password get this error

    By creating user or reset password get this error:
    Data Error: ORA-01858: found a non-digital world where expecting one numerical ORA-06512: at "DERWEB.ORA_ASPNET_MEM_RESETPASSWORD", line 80 ORA-06512: at line 1

    Hi
    You get this error when profile class amounts are not set for all the currency.  Go back to your profile and ensure that the profile amounts are set for all the currencies found, whether you are using it or not.
    Regards

  • Hey,i forgot my login password,so i changed the password by using terminal command(reset password).now i have new user name with new password,but i can't find  my data which i have saved on mac.please help me out in this matter.

    hey,i forgot my login password,so i changed the password by using terminal command(reset password).now i have new user name with new password,
    but i can't find  my data which i have saved on mac.the storage is showing data used and free space on the disk
    please help me out in this matter.

    How did you change your user name?
    resetpassword wouldn't have done it. If you managed to create a new user, then your data is still in the old account.

Maybe you are looking for

  • What Does It Take To Get A Speed Reduction?

    I had a lot of problems with my download speed earlier this year, but since the last engineer's visit, my line has be fairly stable and I have been getting a download speed of around 1.5mbps. I can go for weeks at this sort of level and get no proble

  • Z10 encoding issue in outgoing email

    Hoping someone can help me. I've been an avid bb fan for years and my husband and I both handed in our bonds a week ago to move to the z10. We are both loving it. While my husband has had no issues with his I am very close to having no issues - excep

  • Setting the cell width in a Tabular Form (SQL Query (updateable report) )

    version 3.2.1 I have a Tabular Form (SQL Query (updateable report) ) and I have a column that is a VARCHAR2(4000) that when displayed extends the cell to the full length (which of course makes sense). How can I set the width of this cell to something

  • Automatic answer? or just too lazy to read question?

    I came across this post in ABAP Dictionary: How to make custom append search help tab default for all users? The poster was asking a question about search help defaults, but did mention the word "Append" in the title. The first response posted to the

  • Smart playlist dilemna

    I import a number of live-music concerts into my iTunes library weekly. Each contains 20-25 tracks. All are from the same artist. I'm trying to create a smart playlist that contains only the most recently imported album. ie. If I import 3 albums on a