Allow DB user to change their password

Greetings,
DAD authenticated access to HTMLDB 2.0 on 10gR1 on hpux.
I have built a "account" page where among other things the users can change their passwords, I have built the page over anonymous PL/SQL (below). When a DAD authenticated user runs the page via HTMLDB, they get
ORA-01031: insufficient privileges
Error. Yet if I copy the PL_SQL as is into sqlplus and bind it... it works like a charm. Any ideas?
the PL/SQL
DECLARE
BEGIN
if (:P17_NEW_PASSWORD_1 IS NOT NULL) AND (:P17_NEW_PASSWORD_2 IS NOT NULL) AND (:P17_OLD_PASSWORD IS NOT NULL) THEN
if :P17_NEW_PASSWORD_1 != :P17_NEW_PASSWORD_2 then
raise_application_error(-20300,'New passwords do not match');
end if;
execute immediate 'alter user '||user||' identified by '||:P17_NEW_PASSWORD_1||' replace '||:p17_old_password;
htp.p('Password Changed Successfully');
end if; --passwords not null
exception when others then
htp.p('Error changing password:'||sqlerrm);
null;
end;

The application parsing schema (owner) needs ALTER USER privilege. It probably works in SQL*Plus because that schema has obtained the privilege through a role.
Scott

Similar Messages

  • ISE 1.2 Guest portal user cannot change their passwords

    I have a WLC 5508(version 7.6) and a server installed  the ISE (version 1.2.1.198),Now we configured the CWA,Use guest portal as an employee and guest login url,We can use the manually create internal user and password successfully logged in, and we set up allow guest users to change password in Multi-Portal, but the user can not change the password in the guest portal ,I suspect the change password option on the Guest  Portal actually works? Can anyone tell me how to change their own username password in the guest portal ?

    Requiring Guests to Change Password
    You can allow or require guest users to change their password after their initial account credentials are created by the sponsor. If guest users change their passwords, sponsors cannot provide guests with their login credentials if they are lost. The sponsor must create a new guest account.
    You can either allow guests to change their passwords, or you can require that they do it at expiration and at first login. To require internal users using a guest portal to change their password upon their next login, choose Administration > Identity Management > Identities > Users . Select the specific internal user from the Network Access Users list and enable the change password check box.
    Before You Begin
    Create a Guest portal or modify the DefaultGuestPortal. This setting is specific to each Guest portal.
    Step 1 Choose Administration > Web Portal Management > Settings > Guest > Multi-Portal Configuration.
    Step 2 Check the Guest portal to update and click Edit .
    Step 3 Click the Operations tab.
    Step 4 Check either or both options:
    Allow guest users to change password
    Require guest users to change password at expiration and first login
    Step 5 Click Save .

  • How to restrict users cannot change their password

    Hi all,
    If i logon to E-Business Suite home page, click on the preferences icon on the right hand top corner of the home page, i have an option to change my password.
    How will i diable or restrict this such that no users can change their passwords after first time creation.
    Regards,
    Prasad

    hi prashant,
    i could do this by logging in as sysadmin, personalizing that particular page (preferences) and setting it for only site and org. it is effected for all the users
    Thanks for reply
    Prasad

  • Allow Domain Users to Change Their Time On Workstation

    Is there a way to allow authenticated users on the domain to change their time on their workstations?  Ive added Domain Users, Domain Computers and Users to the Computer Configuration/Policies/Windows Settings/Security Settings/Local Policies/User Rights
    Assignment in the Default Domain Policy but nothing seems to change.  Ive forced the GP update as well.
    Any help would be appreciated.

    Hi Scottdog129,
    Based on my understanding, you have configured a GPO which allow that authenticated users  can change system time. However, this GPO does
    not apply successfully. Right?
    In addition to jkrato's suggestion, please follow the steps below to check if the GPO is applied to the clients. It is useful for us to narrow down the cause:
    Click
    Start, type rsop.msc in the search box to access
    Resultant set of policy.
    Check if the GPO is applied to these clients and the setting of the GPO is correct.
    In addition, if the GPO has applied to these clients, please check if there are some other GPOs have conflicts with this GPO in these clients.
    For your information ,please refer to the article Change the system time to get more help:
    http://technet.microsoft.com/en-us/library/dn221970.aspx
    Regards,
    Lany Zhang

  • Allowing people to change their password

    Hi
    I want to allow users to change their password but be
    compelled to put in at least eight characters. I'm a regular
    expression novice, but I thought this would do it:
    <cfinput name="pword"
    value="#pword#"
    type="password"
    required="yes"
    size="20"
    maxlength="100"
    validate="regular_expression"
    pattern="[\w][\w][\w][\w][\w][\w][\w][\w]?"
    message="your password must be at least seven characters from
    A-Z, a-z, @ a dot(.) or 0-9"
    label="Password">
    However, this allows me to put in just a single character.
    Any advice on correcting whatever mistake I've made would be much
    appreciated
    Regrads
    Dave S

    Your message implies that you are looking for an e-mail
    address. If so, don't worry about the 8 character thing.

  • Windows 2008 R2 Active Directory User can not change their password

    Our AD domain already having two domain controllers with windows 2008 (not R2),  last week we added one more domain controler with windows 2008 R2 for that we run domain prep and forestprep. After this domain no  users can change their password by pressing ALT+CTRL+Del--Change password. Administrators can still reset the password, and if administrator provide the option change password and at next logon, it works, users can reset the password. But after login they can not.
    The error telling the new password does not meet length,complexity, history requirements. We are sure their is no Group policy which setting password/account policy. And even we tried to attach a simple password policy domain level with out complexity.
    Please provide a feedback..waiting for your response.
    Thanks

    additional info: up to Server 2008 R2, Windows ONLY supports ONE Password policy PER Domain. (exept: the R2 supports more pw-policies, but not with gpo, it has to be congifured with ADSI-Editor)
    So, in case you still use the 2008 / R2 - you Need to know that ;))
    regard..
    Stephan Ertel - MCITP/MCSA -
    From Windows 2008(Non R2) and higher is supported for more than one password policy with fine granted password polcy.DFL should be 2008.
    HTH
    Biswajit Biswas
    My
    Blogs|MCC
    |
    TNWiki
    Ninja  
    Best regards Biswajit Biswas Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights. MCP 2003,MCSA 2003, MCSA:M 2003, CCNA, MCTS, Enterprise Admin

  • How to enable ebs users to change their own passwords.

    Hi,
    Is there any profile option which will enable the users to change their passwords on their own from EBS front-end applications...?

    Hi,
    Is there any profile option which will enable the users to change their passwords on their own from EBS front-end applications...?Users can change their password from the application itself (Edit > Preferences > Change Password).
    If you want to force all users to change their password, see (How To Force All Applications Users To Change Their Password? [ID 414976.1]).
    Also, see old threads for similar discussion -- http://forums.oracle.com/forums/search.jspa?threadID=&q=414976.1&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Using alter user to change oracle password for logged in web user on XE

    Hi All
    I'm building an app using the pl/sql web toolkit on XE (installed on Win XP Pro SP2). (I'm not using the APEX front-end).
    I'm using basic authentication and oracle database user accounts, and when a user registers for the first time I create them an oracle user account with dynamic sql, followed by some initial setup stuff, and they then log in with it.
    All fine so far.
    However I want to allow the user to change their oracle password as part of maintaining their user details. I've done this in the past using the web toolkit and Oracle 9i and it has worked fine using dynamic sql.
    Unfortunately I can't get the same thing to work in XE.
    For example, if I create the following procedure in the schema aligned to the DAD which holds my application and then run it from a browser (IE or Firefox) then the
    Browser and the db just hangs - not even an error message:
    CREATE OR REPLACE PROCEDURE ut
    AS
    v_stmt varchar2(300);
    BEGIN
    HTP.htmlOpen;
    HTP.headOpen;
    HTP.title ('User Test');
    HTP.headClose;
    HTP.bodyOpen;
    v_stmt := 'alter user "'||user||'" identified by "BERT"';
    htp.print(v_stmt);
    EXECUTE IMMEDIATE v_stmt;
    htp.print('Done');
    HTP.bodyClose;
    HTP.htmlClose;
    END;
    If I run the same statement in SQL*plus it's fine, and if I run the same proc for a different user then it's fine too.
    I'm sure it's something to do with trying to change the credentials of the currently logged in user, but I would at least have expected an error message.
    I'd be grateful for any ideas.
    Thanks
    Steve

    Hi g.myers
    Thanks for your response.
    Sorry, yes, bad turn of phrase there. It's not the entire db that hangs. The web browser (either IE or FF) hangs, and if I look at v$session at this point, I can see that the user STATUS=ACTIVE and the STATE=WAITING.
    I should also point out that I am using standard Oracle users as users of the application, (e.g. create a new user account called TESTER1). These users are then granted the appropriate privileges on the owning schema in order to run the app, access the tables etc.
    Therefore it is the user account (e.g. TESTER1) that is running the password change procedure that is owned by the SYS schema. (However again, this is the exact code and method that I've used in the past and it has worked fine).
    If I leave the browser hanging long enough, it will eventually return with the following error:
    Proxy Error
    The proxy server received an invalid response from an upstream server.
    The proxy server could not handle the request POST /h/hopapp.pwdmaint_do.
    Reason: Error reading from remote server
    cheers
    Steve

  • DS console operators cannot change their passwords?

    I've setup named developer accounts with the operator role, so that (among other things) they can tell who has an object checked out. But it seems that console users cannot change their own passwords: someone with administrator access needs to do it for them? Is that correct? This goes against best practices, where an administrator can reset a password but the user then changes (preferably, the are forced to change it on first logon). If that is the case, hopefully it's addressed in the next release (we are using SAP BusinessObjects Data Services, version: 12.2.3.0).
    Regards,
    Sean

    Requiring Guests to Change Password
    You can allow or require guest users to change their password after their initial account credentials are created by the sponsor. If guest users change their passwords, sponsors cannot provide guests with their login credentials if they are lost. The sponsor must create a new guest account.
    You can either allow guests to change their passwords, or you can require that they do it at expiration and at first login. To require internal users using a guest portal to change their password upon their next login, choose Administration > Identity Management > Identities > Users . Select the specific internal user from the Network Access Users list and enable the change password check box.
    Before You Begin
    Create a Guest portal or modify the DefaultGuestPortal. This setting is specific to each Guest portal.
    Step 1 Choose Administration > Web Portal Management > Settings > Guest > Multi-Portal Configuration.
    Step 2 Check the Guest portal to update and click Edit .
    Step 3 Click the Operations tab.
    Step 4 Check either or both options:
    Allow guest users to change password
    Require guest users to change password at expiration and first login
    Step 5 Click Save .

  • User cannot change expired password at logon

    Hi
    I've got 4 Fujitsu laptop with Windows 7 business SP1 x64 (Fujitsu setup). When the domain password expired, users cannot change their password at logon. Also, they can change password in their opened session before it expire (CTRL+ALT+DEL ==>
    change password).
    The change password at logon windows is buggy : It only display one field to put password in, the confirmation field does not display.
    When user valid is change, Windows display error "wrong username or password ". Only way to unlock this situation is to reset user password in ADUC and never let expire.
    I seen no sofware or driver wich could interfe.
    Domain controler (only one) is Windows server 2012 standard.
    Has somebody ever seen this type of problem ?

    Hi,
    Can you post a screenshot for this situation?
    Sometimes, the third party credential provider would lead to some issue like this, I suggest you check the
     current credential provider via the following path:
    HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\SessionData\x\LastLoggedOnProvider
    You should compare the result with the values in the following path:
    HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\credential providers
    If the current value is third party credential provider, try to disable it:
    To disable the provider add a REG_DWORD value "Disabled"=1 to that provider’s CLSID subkey.
    The provider will be disabled on the next session creation (sessions are created when you log off, switch users, or reboot.
    If you have any feedback on our support, please click
    here
    Alex Zhao
    TechNet Community Support

  • Is there a way to prevent an end-user from changing their own password?

    All you guru's out there, I need your help. Is there a way to prevent an end-user from changing their own password? Is there a function or procedure I can create or what?

    In this case, you do not want someone (whoever they are DBA etc) to connect as that
    particuler user to change the password.Yes, but I wouldn't expect the users to[i] know that password. The connnect would be handled automatically, behind the scenes.
    The clear implication of the OP's question and response was that users would not be allowed to change their own passwords. I'm guessing this is in response to a policy that says users mustn't have simple passwords like 123abc or mom. In such a scenario a better approach would be to apply regexp to a user's password to ensure it contains a mix of letters, numbers, punctuation, etc to achieve the desired level of complexity.
    So questions, should not be regarded as daft Agreed, but the same is unfortunately not always true of business decisions. As the OP has told us not to ask we cannot know why they want to do this. Personally, I think a user's individual password should always be their responsibility; anything else strikes me as insecure. YMMV.
    Cheers, APC

  • User's changing their own password

    Is it possible to allow user to change their own password when logged onto a portal applicastion I have written ?

    Presumably, the application you say you have written, is a Login Server partner application. So changing the user's password means changing it on the login server.
    The URL that you need to go to, to do this, is something like: http://server.domain.com/pls/portal30_sso/portal30_sso.wwsso_app_user_mgr.change_password?p_done_url=xxxxx
    Where xxxxx is the URL where you want control to go after the user submits their new password.
    null

  • Force all users to change their Enterprise passwords with a batch operation

    Hello,
    Do you know if there is a way to force all users to change their Enterprise passwords with a batch operation in the SDK? Is there any implementation done?
    Many thanks!
    Bea

    You can logon to Enterprise as Administrator in your SDK application. Query all users using following query:
    select * from ci_systemobjects where si_kind='user'
    then loop through the collection InfoObjects returned and cast east object to IUser.
    Either call setPasswordToChangeAtNextLogon(true) so that the user logs on next time will be forced to change his\her password. Call commit on InfoObjects collection at the end to save the changes.
    Otherwise you can call setNewPassword("new password") to reset password for that user.
    Depending upon number of users you can do bath commit. You can use commit(infoObjects,true). The 2nd argument is true for batch commit.

  • How does a user change their password?

    I have been using OS X server to provide, among other things, centralised user accounts, such that any user can logon to any mac on the network by providing mobile accounts. However, if a user wants to change their password, this only appears to affect the local (cached) copy of the account and doesn't appear to change it centrally. i.e. use System Preferences-> Accounts
    How does a user change their 'network' password in OS X Server?

    There is no inbuilt functionality to change the user password from SharePoint. All user account details need to be managed from AD.
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • Read this to find out how to add/update/delete users and change/reset passwords programmatically

    WebLogic 7.0
    I have read a number of questions on how to do these but not many answers, so
    after figuring it all out, I thought I would post a message describing all these
    tasts (It would be great if BEA would start something like 'HOW-TOs for Linux'
    for WebLogic)
    -1. Imports required :
    import weblogic.jndi.Environment;
    import weblogic.management.MBeanHome;
    import weblogic.management.WebLogicObjectName;
    import weblogic.management.configuration.DomainMBean;
    import weblogic.management.configuration.SecurityConfigurationMBean;
    import weblogic.management.security.RealmMBean;
    import weblogic.management.security.authentication.AuthenticationProviderMBean;
    import weblogic.management.security.authentication.GroupEditorMBean;
    import weblogic.management.security.authentication.UserEditorMBean;
    import weblogic.management.security.authentication.UserPasswordEditorMBean;
    import weblogic.security.providers.authentication.*;
    0. Code to retrieve DefaultAuthenticatorMBean (this code is running inside WebLogic
    server - I have it inside EJB):
    DefaultAuthenticatorMBean authBean;
    Context ctx = new InitialContext();
    MBeanHome mbeanHome = (MBeanHome) ctx.lookup(MBeanHome.ADMIN_JNDI_NAME);
    //Find UserEditorMBean
    DomainMBean dmb = mbeanHome.getActiveDomain();
    SecurityConfigurationMBean scmb = dmb.getSecurityConfiguration();
    RealmMBean rmb = scmb.findDefaultRealm();
    AuthenticationProviderMBean[] providers = rmb.getAuthenticationProviders();
    for (int i = 0; i < providers.length; i++) {
    if (providers[i] instanceof DefaultAuthenticatorMBean) {    
    authBean = (DefaultAuthenticatorMBean) providers;
    break;
    1. Create/Drop/Update users
    to perform these tasks, the user must be logged in into weblogic and be in Administrators
    group. Then, the code is as follows:
    create user: authBean.createUser(username, password, description);
    remove user: authBean.removeUser(username);
    change user's description: authBean.setUserDescription(username, newDescription);
    remove user from group: authBean.removeMemberFromGroup(groupname, username);
    add user to group: authBean.addMemberToGroup(groupname, username);
    2. Change other users' passwords (MUST BE ADMIN TO DO THIS - by Admin I mean be
    a member of Administrators group)
    authBean.resetUserPassword(username, newPassword);
    3. Change your own password:
    this is a bit trickier, because if you are not an admin, you can't change your
    own password!!!! This is a part that I personally don't understand - seems like
    a screw up on BEA's part. So, to allow users to change their own passwords, you
    must change security context in the middle of processing to that of Admin user
    and run this function as Admin user. Although a bit ackward, it's very easy to
    do. Suppose you have two EJBs - EJB A and EJB B. EJB A does normal processing
    for the user and always runs in logged in user's security context. Now, suppose
    you want to add a method to EJB A to change current password. The method may
    look like:
    public void changePassword(String logon, String oldpwd, String newpwd)
    throws some exceptions
    Now, there is no way to do it in EJB A, because for most users, it will run in
    a 'non-admin' security context. So, to get around it, you create another
    EJB - EJB B. This EJB has one method:
    public void changePassword(String logon, String oldpwd, String newpwd)
    throws some exceptions
    and one major difference - this EJB always runs in a secrity context of admin
    user. To get an EJB B running 'as admin user', all you have to do in EJB A is
    the following
    EJB A:
    public void changePassword(String logon, String oldpwd, String newpwd)
    Hashtable props = new Hashtable();
    props.put(Context.SECURITY_PRINCIPAL, "wlmanager");
    props.put(Context.SECURITY_CREDENTIALS, "password");
    // get context that with different credentials
    Context ctx = new InitialContext(props);
    EJBBHome home = (EJBBHome) ctx.lookup("EJBBHome");
    EJBBLocal adminEJB = home.create();
    adminEJB.changePassword(logon, oldpwd, newpwd);
    adminEJB.remove();
    of course, this poses a problem of hardcoding user id and password for admin user
    in your application - you can come up with your own ways to secure that.
    THAT's IT!!! You can use the method explained in part 3 to allow non-admin users
    to do pretty much everything, however for the sake of security, I would definetly
    vote against it and use part 3 to ONLY allow users change their own passwords
    Enjoy
    Andrey

    I have a similar question, I would like to edit the artwork for EACH episode in the podcast, as well as have one artwork for the entire podcast series. Any suggestions? This is a podcast that I've created -- I did the same thing for a TV Show where I was able to do custom artwork for each episode, but not one single artwork for the entire series. Does anyone have suggestions of how i should proceed?
    Recap:
    One image for entire Podcast Series (or TV show)
    Different Set of Images for each episode in Podcast. (Understand how to do this in TV show)
    Thanks!

Maybe you are looking for

  • My editor has stopped working in Photoshop Elements 10!

    I keep getting a "RUNTIME ERROR PROGRAM C:\ PROGRAM FI..." and then it reads THIS APPLICATION HAS REQUESTED THE RUNTIME TO TERMINATE IT IN AN UNUSUAL WAY" everytime I try to access the editor program in Photoshop Elements 10!  Shuts down every time,

  • How can i get the lists of native custom xml

    Hi, actually i am going for upgrade from idm 7.1 to idm 8.1 can anybody know how we can get the costomized lists of native xml in sun idm 7.1 for jsp and other we have assessment commands provided by sun but for xml how we can do that.. Thanks in adv

  • Saveas ... yet again

    using Acrobat Pro v9, visual studio 2003 VB.Net I am struggling to find a working solution to use the saveas method to save a file in a different format. In this case, I am trying to export PDF to TIF programatically, but might want to adapt to other

  • Call notifier in vit file

    Hello all. I am using notifier for forward my datas. I creating a notifier in main.vi and I want call my values in sub.vit In attachment you can see my operation basicly. Why my values cant coming in my sub.vit files? Thank you. Solved! Go to Solutio

  • ADF Swing with POJO Business Service - How To?

    Does anyone have or know of any sample code demonstrating an ADF Swing Application with a Master-Detail on a Business Service implemented through POJOs (not Toplink, but generic JavaBeans)? Please note that I am not looking for an ADF BC example! I n