Setting or Resetting a password using SQL in Business One 9.0

In the link shown below, we started a discussion on how to set a password using SQL in Business One. (I am re-opening the discussion in a new thread.)
http://scn.sap.com/thread/3430860
I have been using a similar query to do the same. In the query below, I set the MANAGER password to some value and copy it to all other active users.
update OUSR
set PASSWORD = (select PASSWORD from OUSR where USERID = 1)
where USERID > 1 and GROUPS <> 99 and USER_CODE not like 'B1i%'
This process works just fine in pre-9.0 p09 versions. However, there is something in the new release(s) that is different and being validated so this method no longer works. (I have checked AUSR as the initial control, but this is not the case.)
When using the query above in the current release, logging into users account will generate "Enter valid user name and password". Changing the password manually works just fine. This tells me that there is an additional location where the password is being updated/stored which needs to be included within the script. I am guessing that this location is also where the single-sign-on information might be held, but I am unable to find anything.
I realize that this is not supported. However, when creating a "SANDBOX" database and needing to change 150 users passwords, it is unreasonable that we change these by hand, one-by-one. (And I realize that we should not change those which are using DOMAIN passwords.)
Anyone have any ideas about what else needs to be updated to make this work?
Thanks,
~ terry.

Gordon,
That's part of the challenge!...
I would like the SANDBOX database to be useable by anyone wanting to log in, test, and learn.
But, I do not want it to have the same password as the LIVE database. That way we can better secure the LIVE database and the users will have to type in a different password to access the SANDBOX, eliminating the possibility someone processes live data in a test database.... or visa-versa.
Best practices tell me that we need to do our training and testing in a SANDBOX. Occasionally, we need to copy the LIVE database to a SANDBOX to have current data for this functionality. And I am trying to avoid spending 30-60 minutes manually changing over 100 user passwords.
Thanks,
~ terry.
Message was edited by: Terry Oplinger

Similar Messages

  • 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

  • Set maximum server memory by using sql scripts

    Dear all
    How to set maximum server memory by using sql scripts in sql server 2014? Thx a lot
    Best regards,
    Wallace

    You can use
    sys.Sp_Configure to set max server memory
    Here are some recommendation for Max Server memory based on RAM size
    GB
    MB
    Recommended Setting
    Command
    16
    16384
    14745
    EXEC sys.sp_configure 'max server memory (MB)', '14745'; RECONFIGURE;
    32
    32768
    29491
    EXEC sys.sp_configure 'max server memory (MB)', '29491'; RECONFIGURE;
    64
    65536
    58982
    EXEC sys.sp_configure 'max server memory (MB)', '58982'; RECONFIGURE;
    128
    131072
    117964
    EXEC sys.sp_configure 'max server memory (MB)', '117964'; RECONFIGURE;
    256
    262144
    235929
    EXEC sys.sp_configure 'max server memory (MB)', '235929'; RECONFIGURE;
    512
    524288
    471859
    EXEC sys.sp_configure 'max server memory (MB)', '471859'; RECONFIGURE;
    1024
    1048576
    943718
    EXEC sys.sp_configure 'max server memory (MB)', '943718'; RECONFIGURE;
    2048
    2097152
    1887436
    EXEC sys.sp_configure 'max server memory (MB)', '1887436'; RECONFIGURE;
    4096
    4194304
    3774873
    EXEC sys.sp_configure'max server memory (MB)', '3774873'; RECONFIGURE;
    Hope this will help
    Glad to help! Please remember to accept the answer if you found it helpful. It will be useful for future readers having same issue.

  • Resetting the password in sql query

    Hi
        Am getting error in once ecc6 Installation over i went for 000client to configure post installation steps but 000 client default  password is not going .Can you please  help me sortout the issue.How to reset sap* password in sql database.
    Regards,
    K.Ramamoorthy

    Just do a search on this forum where you will find multiple threads to reset password of SAP*. Please do some research before posting question here.
    Read Rule of Engagement...
    Thanks
    Sunny

  • Is it possible to reset login password using recovery cd even after encryption

    my iMac is stolen. I have encrypted the disk. Is it possible to get hands on my data by resetting the password using recovery cd ?? Thanks.

    No.

  • How to reset the password used in secured backup in itunes?

    I forgot the password that I used to create a secure backup of my iPhone.  Now I want to create a new backup, but it will not let me without the correct password.  Is there a way for me to reset this password to do a new backup?  Thanks.

    Welcome to Apple Support Communities
    As you have OS X Mountain Lion, try resetting the password from Recovery > http://discussions.apple.com/docs/DOC-4101
    It looks like OS X was reinstalled. After resetting the password, you will be able to log in and use your MacBook Pro

  • When attempting to reset my password using the Install disc, I can't get into the system since I am asked for my password when I initiate the disc.  What now?

    I lost my MAC password and was advised to use the "MAC" install disc.  With the "install disc" installed, I initiate the program and it asks for my "password" to continue.  What do I do now since I am unable to offer the correct password.  Sure would like to discuss this with a computer expert.  I am really frustrated since I can't update programs due to the lost password?

    First, make sure caps lock is not on.
    If the user account is associated with an Apple ID, and you know the Apple ID password, then maybe the Apple ID can be used to reset your user account password.
    Otherwise, boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar.
    In the Terminal window, type this:
    resetpassword
    That's one word with no spaces. Then press return. A Reset Password window opens.
    Select your boot volume if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Follow the prompts to reset the password. It's safest to choose a password that includes only the characters a-z, A-Z, and 0-9.
    Select
     ▹ Restart
    from the menu bar.
    You should now be able to log in with the new password, but your Keychain will be reset (empty.) If you've forgotten the Keychain password (which is ordinarily the same as your login password), there's no way to recover it.

  • Reset user password using Apple ID

    I have a problem with resetting a forgotten administrator password in OS X Lion.
    I know that it is possible to reset the password with the Apple ID by typing in a wrong one 3 times at the login window.
    But what if I have allowed automatic login and there´s no login window at all? For example, if the system is for any reason asking me for my password later and I am typing in a wrong one 3 times, will I now have the possibility to use the Apple ID to reset it? Is there any other way to use the Apple ID to reset the password (apart from booting into recovery mode)??
    Hope you are getting my point! Thanks for your help!

    See
    http://osxdaily.com/2011/08/24/reset-mac-os-x-10-7-lion-password/ and
    http://osxdaily.com/2011/09/19/change-password-mac-os-x-10-7-lion-without-knowin g-current-password/

  • Resetting admin password using AppleID

    I've been trying to help out a friend who is trying to upgrade to Mountain Lion, but can't because they've forgotten their admin / user password.
    I found this article about how to reset it by using your AppleID:
    http://support.apple.com/kb/HT4798
    However, he gets as far as System Prefs > Users & Groups > Change (to the right of the AppleID) and is prompted for a Password (I assume his AppleID password, but apparently its rejecting it.)
    Not sure why (I'm already running ML perhaps), but when I click on Change I don't get prompted for a password, and am able to remove or add Apple IDs in there.
    Any ideas how to sort this out much appreciated. (Assuming he's using the correct AppleID password!)
    Thanks.

    Thanks Carolyn - that was the article I found, and clicked on 'Resetting the original Administrator account password' and then 'Reset your user password with your AppleID'.
    Which is where we ran into trouble - on my machine I can change my AppleID in Users &amp; Groups without entering a password, but my friend was prompted for a password at that stage.

  • Resetting admin password using another admin password

    How do I reset an admin password on the imac from another user who is also an admin?

    Hello, Keugantic. 
    Thank you for visiting Apple Support Communities. 
    Here are the steps that will walk you through changing an admin account password using another admin account. 
    Resetting a user's password using an administrator account
    Important: Passwords for administrator accounts should not be blank.
    Log in with an administrator account. Tip: If you don't know the password of any administrator accounts, see "Resetting the original administrator account password" below.
    From the Apple menu choose System Preferences.
    From the View menu choose Users & Groups.
    Click the lock button if it appears locked; enter the administrator password.
    Select the name of the user whose password you want to change.
    Click the Reset Password button or the Change Password button.
    Enter a new password in both the New Password and Verify fields, and add a Password Hint if desired.
    Click the Reset Password button or the Change Password button.
    OS X: Changing or resetting an account password
    http://support.apple.com/kb/ht1274
    Cheers,
    Jason H. 

  • HT4864 I have to reset my password, ICloud message says the one I am trying to use is wrong. Can't find how to reset it.

    iCloud says I don't have the correct password. How do I reset the iCloud password?

    Welcome to the Apple Community.
    iForgot.com

  • I have forgotten my password to get into my mac bokok pro. I have used my iPad to reset the password but my Mac book does not recognise the reset password.

    I have reset my password using my iPad. Why does my Mac book not recognise it to allow me to log in to it?

    What password did you change and what password is your Mac requesting.
    Without details all you will get is guesses.

  • Can't login even after resetting password using install disk

    I have been unable to login in using the password on this computer. Twice now I have reset the password using the install disk that came with the computer. After resetting. I quit the installer and then reboot using the computer's startup disk. When I try to login with the new password, it won't let me uses the password even though the new hint is correct. How can I solve this?

    I think you have two choices...
    Reset OS X Password Without an OS X CD...
    http://theappleblog.com/2008/06/22/reset-os-x-password-without-an-os-x-cd/
    It'll boot like a newly setup Mac, but all your stuff should still be there once filling out the stuff.
    Or, an Archive & Install, which gives you a new/old OS, but can preserve all your files, pics, music, settings, etc., as long as you have plenty of free disk space...
    http://docs.info.apple.com/article.html?artnum=107120
    Just be sure to select Preserve Users & Settings.
    But first...
    "Try Disk Utility
    1. Insert the Mac OS X Tiger Install disc that came with your computer, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair. Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes. (May or may not work)

  • HT4798 My password for the apple Id is somehow incorrect. But I try the same password on my iPhone App Store. How can I reset password using apple id?

    I tried to reset my password using apple Id method, but the password I typed is incorrect. I'm sure that that's the right password because I use that ID for downloading apps from my iPhone every time. So what's wrong? That's my only way I can reset my password because I forgot my master password.:(
    HELP HELP HELP

    Hi Davehov,
    What iOS is the phone running? If it is iOS 7, then as ramzee209 indicated, you must contact the seller to get any further.
    If it is running an earlier iOS, you can hook it up to the computer where you iTunes library is located, and restore it:
    Place the device in recovery mode and restore it to erase the device:
    Disconnect the USB cable from the device, but leave the other end of the cable connected to your computer's USB port.
    Turn off the device: Press and hold the Sleep/Wake button for a few seconds until the red slider appears, then slide the slider. Wait for the device to shut down.
    While pressing and holding the Home button, reconnect the USB cable to the device. The device should turn on.
    Continue holding the Home button until you see the Connect to iTunes screen.
    iTunes will alert you that it has detected a device in recovery mode. Click OK, and then restore the device.
    Cheers,
    GB

  • Tried resetting password, reset the password for other account.

    I currently have two itunes accounts, and when I tried to reset the password for one of them, it reset the password for the other instead. After reseting the password by entereing email 1, I tried to log in with it, it did not work. I got very angry but then had an idea, so I entered email 2 and the new password and it worked. Why is it that I reset the password for account 2 even though when reseting the password I entered email 1? I can not reset the password for account 1, making it immpossible to update the apps purchased with it. I am beyond irate with itunes for this, not to mention the fact that it didn't send the reset conformation email until the third try!!!
    Please help.

    You can reset SAP* password after that logging using SAP* password PASS you can reset DDIC password for the client .
    Run this in SQL*Plus
    DELETE FROM SAPSID.USR02 WHERE MANDT='<CLIENT>'
    AND BNAME='SAP*';
    You will require additional DBA skill set to reset DDIC password ( Which is not recommanded aslo )
    The best option I would suggest .
    1)Delete SAP* using above query .
    2)Logon using SAP* password pass
    3)Reset DDIC password.
    Regards ,
    Santosh Karadkar

Maybe you are looking for