Persistent bug in x6250 ELOM - changing password breaks blade

Has anyone else been dealing with the problem in BMC v 4.0.36 and 4.0.45 where changing the root password from "changeme" (sic) to something else renders the blade unbootable? We've had to replace two blades due to this bug, and support seems not to be actively researching the issue. v.4.0.30 didn't have this problem.

Well, some good news at last. I think I solve the problem with BL0.
I loaded an older firmware with load command, at end it yeild the same error about not being able to write the BIOS, but rest of the firmware was loaded. Then I try to load back the actual one ..... and surprise this time the installation finished OK.
-> version
SP firmware 2.0.3.6
SP firmware build number: 36946
SP firmware date: Mon Sep 15 12:46:49 PDT 2008
SP filesystem version: 0.1.17
-> load -source tftp://128.90.43.111/ilom.X6250-2.0.3.6-r38189.pkg
NOTE: A firmware upgrade will cause the server and ILOM to
      be reset. It is recommended that a clean shutdown of
      the server be done prior to the upgrade procedure.
      An upgrade takes about 6 minutes to complete. ILOM
      will enter a special mode to load new firmware. No
      other tasks can be performed in ILOM until the
      firmware upgrade is complete and ILOM is reset.
Are you sure you want to load the specified file (y/n)? y
Do you want to preserve the configuration (y/n)? n
Firmware update is complete.
ILOM will now be restarted with the new firmware.
-> /sbin/reboot
login as: root
Using keyboard-interactive authentication.
Password:
Access denied
Using keyboard-interactive authentication.
Password:
Sun(TM) Integrated Lights Out Manager
Version 2.0.3.6
Copyright 2008 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Warning: password is set to factory default.
-> version
SP firmware 2.0.3.6
SP firmware build number: 38189
SP firmware date: Thu Oct 16 03:27:04 CST 2008
SP filesystem version: 0.1.17

Similar Messages

  • Time Capsule backup cannot be seen on new MAC after resetting Time Capsule and changing password.

    I have backed up my MAC to Time Capsule with Time Machine, erased HDD and clean installed OX Yosemite. After installation I have to reconfigure Wi Fi, so I reset my Time Capsule changed password. Now I cannot see my previous back up on reinstalled MAC. Neither on TM nor on the Manual search. In finder appeared new disk. I am pretty sure that old files are still there. Can anybody suggest how to retrieve them.

    This sounds like classic Yosemite.
    What you did is fine.. there is no way to delete the backups via the reset button.
    What I would suggest is a new clean setup of the TC again.. use a full factory reset.
    Factory reset universal
    Power off the TC.. ie pull the power cord or power off at the wall.. wait 10sec.. hold in the reset button.. be gentle.. power on again still holding in reset.. and keep holding it in for another 10sec. You may need some help as it is hard to both hold in reset and apply power. It will show success by rapidly blinking the front led. Release the reset.. and wait a couple of min for the TC to reset and come back with factory settings. If the front LED doesn’t blink rapidly you missed it and simply try again. The reset is fairly fragile in these.. press it so you feel it just click and no more.. I have seen people bend the lever or even break it. I use a toothpick as tool.
    N.B. None of your files on the hard disk of the TC are deleted.. this simply clears out the router settings of the TC.
    Redo the setup from the airport utility in the Yosemite computer..
    Do not use the recommend names.. use really short names.. no spaces and pure alphanumeric.
    eg TCgenx and TCwifi for basestation and wireless names.
    You can also setup wireless password as before but I strongly recommend 8-20 character pure alphanumeric mixed case and numbers.. no characters outside of that.
    Then mount the TC manually in finder.
    Go, Connect to server.
    Type in the TC IP address if at all possible.. it is more likely to be reliable than using name.
    SMB://10.0.1.1 (replace with your IP but it should be static.. that is default)
    Or
    SMB://TCgenx.local (use whatever name you have given it.. plus the domain which is always local)
    when asked for the disk password supply it and save in the keychain. Then open the disk in finder and you should see your sparsebundle in there.. from migrate assistant you should now be able to see your backup.

  • Jython having issue importing weblogic modules for changing passwords

    I am trying to import some WLST modules into a Jython script as outline in the documentation at http://e-docs.bea.com/wls/docs92/config_scripting/config_WLS.html#wp1019971
    The strange thing is that it says it is a WLST script, but it appears to be a Jython script. I tried performing this import using WLST interactive mode, but this did not work.
    I am passing the passwords as encrypted strings while using the encrypt() function
    Here is the script:
    import sys
    from weblogic.management.security.authentication import UserPasswordEditorMBean
    #To be invoked by java -cp /usr/local/bea/wlserver_10.0/common/lib/jython.jar org.python.util.jython
    #usage: wlst.sh ResetWLPassword.py <current_pass> <user> <new_pass> <adminServerURL>
    #{3DES}/asdfadsf== -
    #{3DES}asdfafdsadsf== -
    myPass = sys.argv[1]
    myUser = sys.argv[2]
    newPass = sys.argv[3]
    adminServerURL = sys.argv[4]
    #Connect
    try:
    connect('weblogic',myPass,adminServerURL)
    except:
    print "Could not connect using supplied credentials"
    dumpStack()
    try:
    print "Changing password ..."
    atnr=cmo.getSecurityConfiguration().getDefaultRealm().lookupAuthenticationProvider("DefaultAuthenticator")
    atnr.changeUserPassword(myUser,myuser,newPass)
    print "Changed password successfully"
    except:
    print "Password change failed"
    dumpStack()
    I am receiving the following error message:
    java -cp /usr/local/bea/wlserver_10.0/common/lib/jython.jar org.python.util.jython /tmp/ResetWLPassword.py "{3DES}/adsfadsfadsf==" weblogic "{3DES}asdfadsfasd== " t3://localhost:7003
    sys-package-mgr: can't create package cache dir, '/usr/local/bea/wlserver_10.0/common/lib/cachedir/packages'
    Traceback (innermost last):
    File "/tmp/ResetWLPassword.py", line 2, in ?
    ImportError: No module named management

    blumo wrote:
    You are calling org.python.util.jython again instead of weblogic.WLST like I advised in my first post. Invoke WLST (not jython) and pass your values in cleartext. Like I said in my previous post, I was able to execute your script without issue when calling WLST and passing cleartext values (I did have to modify one line to due a bug in your script -- see my prior posts).This seems to work in terms of getting the code to run, but there is still a problem with passing the arguments to the changeUserPassword() method.
    I entered the sequence of commands in the script manually into WLST and it works without issue. It even works without the import, which is strange that Oracle includes it in their documentation.
    I am going to post the code here, perhaps there is something wrong syntax-wise with the way I am authenticating, but I can't put my finger on it.
    import sys
    from weblogic.management.security.authentication import UserPasswordEditorMBean
    myPass = sys.argv[1]
    myUser = sys.argv[2]
    newPass = sys.argv[3]
    adminServerURL = sys.argv[4]
    #Connect
    try:
    connect(myUser,myPass,adminServerURL)
    except:
    print "Could not connect using supplied credentials"
    dumpStack()
    try:
    print "Changing password ..."
    atnr=cmo.getSecurityConfiguration().getDefaultRealm().lookupAuthenticationProvider("DefaultAuthenticator")
    #atnr.changeUserPassword('weblogic','weblogic','12345678')
    atnr.changeUserPassword(myUser,myPass,newPass)
    print "Changed password successfully"
    except:
    print "Password change failed"
    dumpStack()
    throws:
    Connecting to t3://localhost:7003 with userid weblogic ...
    This Exception occurred at Mon Feb 23 11:50:18 PST 2009.
    javax.naming.AuthenticationException [Root exception is java.lang.SecurityException: User: weblogic, failed to be authenticated.]
         at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:42)
         at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:773)
         at weblogic.jndi.WLInitialContextFactoryDelegate.pushSubject(WLInitialContextFactoryDelegate.java:670)
         at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:466)
         at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:373)
         at weblogic.jndi.Environment.getContext(Environment.java:307)
         at weblogic.jndi.Environment.getContext(Environment.java:277)
         at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
         at javax.naming.InitialContext.init(InitialContext.java:223)
         at javax.naming.InitialContext.<init>(InitialContext.java:197)
         at weblogic.management.scripting.WLSTHelper.populateInitialContext(WLSTHelper.java:498)
         at weblogic.management.scripting.WLSTHelper.initDeprecatedConnection(WLSTHelper.java:551)
         at weblogic.management.scripting.WLSTHelper.initConnections(WLSTHelper.java:303)
         at weblogic.management.scripting.WLSTHelper.connect(WLSTHelper.java:201)
         at weblogic.management.scripting.WLScriptContext.connect(WLScriptContext.java:60)
         at weblogic.management.scripting.utils.WLSTUtil.initializeOnlineWLST(WLSTUtil.java:121)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:160)
         at org.python.core.PyMethod.__call__(PyMethod.java:96)
         at org.python.core.PyObject.__call__(PyObject.java:248)
         at org.python.core.PyObject.invoke(PyObject.java:2016)
         at org.python.pycode._pyx6.connect$1(<iostream>:16)
         at org.python.pycode._pyx6.call_function(<iostream>)
         at org.python.core.PyTableCode.call(PyTableCode.java:208)
         at org.python.core.PyTableCode.call(PyTableCode.java:404)
         at org.python.core.PyTableCode.call(PyTableCode.java:287)
         at org.python.core.PyFunction.__call__(PyFunction.java:179)
         at org.python.pycode._pyx18.f$0(/tmp/ResetWLPassword.py:20)
         at org.python.pycode._pyx18.call_function(/tmp/ResetWLPassword.py)
         at org.python.core.PyTableCode.call(PyTableCode.java:208)
         at org.python.core.PyCode.call(PyCode.java:14)
         at org.python.core.Py.runCode(Py.java:1135)
         at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:167)
         at weblogic.management.scripting.WLST.main(WLST.java:106)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at weblogic.WLST.main(WLST.java:29)
    Caused by: java.lang.SecurityException: User: weblogic, failed to be authenticated.
         at weblogic.common.internal.RMIBootServiceImpl.authenticate(RMIBootServiceImpl.java:116)
         at weblogic.common.internal.RMIBootServiceImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:479)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:475)
         at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:59)
         at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:1016)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    Could not connect using supplied credentials
    Changing password ...
    Password change failed

  • How to preserve recently changed passwords during a RPD promotion/overwrite

    Hi All,
    1. We are using BIEE built-in authentication (passwords are stored in RPD file);
    2. Users are allowed to change their passwords at any time;
    3. Other than PD, we also have a DEV and a QA environements where we fix bugs and do minor enhancements;
    the questions is: How can we promote the new RPD file (from QA to PD environment) once it passes testing? If we simply overwrite the RPD file in PD environment, then recently changed passwords (the ones changed & stored in the new RPD file) will be lost. it seems we need to do a merge or something, but we wonder what the Oracle recommended solution is.
    It'd be greatly appreciated if some expert can shine some light on this issue. Thanks!!
    - D

    Yes, great questions.
    I have always used the merge process which is the base of the Obiee software configuration and I never had problem of security.
    As the multi-user environment is based on this process, you normally shouldn't have any problem.
    Do a test before and good backup before migration.
    Success
    Nico
    Below an extract of my notes :
    By default, the Oracle BI repository development environment is not set up for multiple users. However, online editing makes it possible for multiple developers to work simultaneously, though this may not be an efficient methodology, and can result in conflicts, because developers can potentially overwrite each other's work.
    To develop a repository in a concurrent version environment, you have two choices :
    * first of all, you can send the repository to the developer, keep a copy, retrieve it after modification and perform an Merge Repository
    http://gerardnico.com/wiki/dat/obiee/bi_server/obiee_repository_merge
    * second, you can set up a multiuser environment (MUD) which use the notion of Projects to split the work area. It would permit developers to modify a repository simultaneously and then check in changes.
    http://gerardnico.com/wiki/dat/obiee/bi_server/multiuser_environment
    The import option which permit to import a subset of a repository to an other repository, work but is deprecated.

  • Obiee 11g How to let user change password

    obiee 11g How to let user change password ?
    i not mean use weblogic console。 normal user how to change password。

    With 11g, OBIEE essentially uses the 10g notion of external authentication.
    By default, this is done by the WLS (Weblogic) LDAP identity store, but it may be done by another supported Authenticator either within WLS, or in the OBIS meta data (i.e. Custom Authenticator or LDAP). As such, OBIEE no longer has any control over user passwords; this is why the steps referenced in note 1102353.1 do not apply to OBIEE 11g, but only to internal/repository-defined users in OBIEE 10g.
    So, as with password maintenance in OBIEE 10g when an external authenticator is used, it is within that external authentication system that password is changed, not within OBIEE 11g. There is no option in OBIEE 11g to allow users to change passwords.
    There are two work-arounds with which you can change your password:
    1) From the Weblogic administration console/WLST.
    You need to give such user access into Weblogic console or access to browse through involved MBean hierarchy and other modify permissions. Changing the password using WLST instance is covered here:
    Ideally, the console and WLST approaches are used by Administration accounts to manage other users. But the console and WLST can be made to allow other users to change passwords (which will be more or less like carrying out an administrative task by users themselves)
    2) Using a programmatic approach.
    Here the application that intends to provide password change functionality to its users should implement this functionality on its own (GUI plus call to the relevant Weblogic API). Weblogic provides an MBean that the application can use to accomplish this. See here for more information.
    An enhancement request exists for this functionality. This is unpublished bug 11836170 - enable non admin users to change passwords in obiee 11g.

  • AUDIT action (create, delete, privilege escalation, set and change password from users account and group) users and admins in Solaris 10

    Hello.
    in Solaris 10 i need auditing process create, delete, privilege escalation, set and change password and etc... from users account and group.
    I set settings:
    in file syslog.conf:
    *.info;mail.none;cron.none;audit.notice            @IP-Remote-syslog-server-SIEM
    in file   /etc/security/audit_control:
    dir:/var/audit
    flags:lo,ad,ex,cc,am,no,fc,fd
    minfree:20
    naflags:lo
    plugin:name=audit_syslog.so;p_flags=lo,ad,ex,cc,am,no
    in file   /etc/security/audit_user:
    root:lo,ad:no
    Now I see in the logs only the fact of a connection via SSH and run processes on behalf of users. Creation. delete users, change passwords for some reason do not is logged.
    Many users. For each individual write permissions in the file /etc/security/audit_user not possible, it is likely to forget any new user (or there is a possibility in this file one line to describe the audits for all accounts?)
    Where is the mistake?

    You are most likely hitting Bug 15779000 user/role/groupadd/mod/del don't audit their use.
    And the fix is only available in S11.2.
    -- Renaud

  • Be careful of "Prompt user to change password before expiration" policy -- it's counting the days wrong!!

    After several tests, I'm pretty sure that the policy "Interactive logon: Prompt user to change password before expiration" is counting the wrong days. (Note: this policy is in Windows Settings > Security Settings > Local Policies > Security
    Options)  So I think I should post this in the forum in the hope that it could be helpful to others in the same case as me, esp if the policy is pushed out as a domain-wide policy.
    First, the context of the test, ie domain-wide policy settings:
    1. Password minimum age = 2 days
    2. Password maximum age = 4 days
    3. Prompt user to change password before expiration = 2 days
    If everything is going fine, users will be asked to change password when it is changeable (ie it has reached the minimum age).  However, it turns out that users are prompted BEFORE they can change password.  Look at the image below that I got in
    Win7:
    (In WinXP, we have similar prompt when user has just logged in)
    Look at the clock: it's 13:16 (04/12/2013).  Then look at the DOS window in which I ran the "net user /domain" command and read the line "Password expires": it's shown
    06/12/2013 18:09:04.
    A little math would tell me that if users are prompted to change password *2 days* before expiration, the dialog will appear
    ONLY AFTER 04/12/2013 18:09:04.  But since the prompt is shown at 13:16 (ie well before 18:09), that mean the "prompt user...." policy makes mistakes in calculating the moment to show the prompt.
    In other words, if we have the policy set like this:
         Prompt user to change password before expiration =
    N days
    The prompt will actually appear from N+1 days before expiration.
    I would consider this as a bug, but I also suppose it's hard to make Microsoft fix it.  So that's why I make this post to warn others.  In my case, I have received several calls from users complaining that they were prompted to change password
    but their new passwords were always refused and they had no idea what went wrong.  And it took me a lot of effort to sort out what really went wrong.  And in order to work around this stupid bug, I have to change the "Prompt user...." policy
    to N-1 days (before expiration) instead of N days previously.
    Hope this help

    Hi,
    Based on my research, you are right that the prompt policy is implemented by date, which is by design.
    “Set
    Interactive logon: Prompt user to change password before expiration to 5 days. When their password expiration
    date is 5 or fewer days away, users will see a dialog box each time they log on to the domain”, I quoted this sentence from the article below:
    Interactive logon: Prompt user to change password before expiration
    http://technet.microsoft.com/en-us/library/jj852243.aspx
    The problem is consistency!  For Minimum/Maximum password age properties, they are also defined for
    days as well.  But for them, days are exact days, ie a
    multiple of exactly 24 hours.  There is an "Explain" tab for every parameter, but even if you read them through, you can't tell if day means strict multiple of 24 hours or loose definition of days.  I'll leave the exercise to you to read
    them if you like and spare me the article from your KB library.
    As for the password minimum age part, what I mean is that is why users can’t not change their password within 2 days when the prompt appears before the changeable time.
    Anyway, I agree with you that we need to be careful when we configure the password policy because the Prompt policy is not doing calculation by hours.
    Miss, the 2 days is just a TEST EXAMPLE.  Let's say it's
    N days if you was unable to understand.  I wouldn't change N days to N-1 days because of this stupid GUI bug.  As I said earlier and let me repeat it once more,
    Minimum password age = N days is a security policy and it is more important than the user prompt and no security officer with sane mind will change this.

  • Scripting to change passwords in a file

    Hi There 
    i am trying to change passwords of varies accounts mentioned in a configuration file; however there are more than 10 configuration files and i need to change there all user account password to Passw0rd.
    Is there any power shell script i could use for this to change?
    KB

    Hi,
    Is there any power shell script i could use for this to change?
    Pre-written? Probably not. You can check the repository though:
    http://gallery.technet.microsoft.com/scriptcenter
    You'll probably have to write something yourself. These might help get you started:
    http://ss64.com/ps/get-childitem.html
    http://ss64.com/ps/get-content.html
    http://ss64.com/ps/foreach-object.html
    http://ss64.com/ps/set-adaccountpassword.html
    Read this before doing anything with the last one:
    http://connect.microsoft.com/PowerShell/feedback/details/777142/bug-in-set-adaccountpassword-cmdlet
    I didn't know about that particular quirk until a few minutes ago.
    Don't retire TechNet! -
    (Don't give up yet - 12,950+ strong and growing)

  • Need to change passwords, Unity, IPCC and CCM

    I need to change the admin passwords on all servers. What, if anything, can I expect to break.
    Thanks

    also, you will not just change passwords from the windows account manager hopefully.
    cisco provides utilities or procedures for changing passwords in most of these environments.
    for CCM follow:
    http://www.cisco.com/en/US/products/sw/voicesw/ps556/products_administration_guide_chapter09186a00801ec5d0.html
    for UNITY follow:
    http://www.cisco.com/en/US/products/sw/voicesw/ps2237/products_tech_note09186a0080093f54.shtml
    for IPCC see:
    http://www.cisco.com/iam/unified/ipcc1/Problems_Caused_by_Password_Changes.htm#wp1097435
    for IVR follow:
    http://www.cisco.com/en/US/products/sw/custcosw/ps1846/products_qanda_item09186a008022e8e3.shtml

  • Firefox sync error, changed password and on other devices the new password keeps giving me an error.

    Okay so I have several Linux devices in sync and one of them is synced also with a Microsoft 8 and the latest updates of Firefox. All of them are updated to the lastest. I had to change my password becaue for some odd reason the pass I wrote down was not being registered in my computer. Now because of that I had to change it for all of the other devices and none of them are detecting the new firefox password change. It just seems like a round circle where I change pass, and I have to continue to do that but each device wants to do the same thing.
    What could be done is there some bug with respect to this!? Thanks.

    Please let me confirm what you are saying: when you change the password on one device, all of the other devices connected to the account are not disconnected and continue syncing?
    [Bug 987719 - If user changes FXA password as Syncing client, don't kick them out of Sync]- this is outdated I think*
    Do the other devices ever prompt you for a new password? And if you check about:sync-logs are there any errors after the time you changed the password on one of the devices?
    Edit* ignore this post, though these are the steps we would take if there is a bug for future reference.

  • Help needed - about change password page

    I had created a change password page and successfully connected to the access database via jdbc-odbc bridge. But, there are still some errors with the coding.
    The situation is like that: whether the NewPassword==ConfirmPassword or NewPassword!=CofirmPassword or both blank, there will always pop up a message dialog "The confirm password and new password must be same."(which I wrote in JOptionPane) and will not update the database that i had linked. I try to correct it but fail.
    Can somebody help me to correct the code below?
    Thank you!
    ========================================================================void jButton1_actionPerformed(ActionEvent e) {
    String userid = jTextField1.getText(); //UserName
    char[] passwd2 = jPasswordField2.getPassword(); //NewPassword
    char[] passwd3 = jPasswordField3.getPassword(); //ConfirmPassword
    try {
    connection = getDBConnection();
    if( passwd2 != passwd3 ){
    JOptionPane.showMessageDialog(null, "The confirm password and new password must be same.", "Change Password Fail", JOptionPane.INFORMATION_MESSAGE );
    jPasswordField2.setText("");
    jPasswordField3.setText("");
    else {
    String query = "UPDATE UserInfo SET Password = '"+ passwd2 +"' WHERE UserID='" + userid +"'";
    Statement statement = connection.createStatement ();
    ResultSet resultSet = statement.executeQuery( query );
    int result = statement.executeUpdate ( query );
    if ( result == 1 )
    JOptionPane.showMessageDialog ( null," Password successfully changed", "Password changed", JOptionPane.INFORMATION_MESSAGE );
    else {
    jPasswordField2.setText( " " );
    jPasswordField3.setText( " " );
    JOptionPane.showMessageDialog ( null,"Fail to change password.\n Please reenter the new password.","Fail", JOptionPane.INFORMATION_MESSAGE);
    catch (SQLException sqlex ){
    sqlex.printStackTrace();

    yup, i change as the code as u suggested..the change password page run success but got bugs as below. i don't know the reason. please correct me though the coding. thanks!
    ========================================================================
    java.sql.SQLException: No ResultSet was produced
         at sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(JdbcOdbcStatement.java:255)
         at logintry.DataMiningFrame.jButton1_actionPerformed(DataMiningFrame.java:239)
         at logintry.DataMiningFrame$1.actionPerformed(DataMiningFrame.java:77)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1450)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1504)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:378)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:216)
         at java.awt.Component.processMouseEvent(Component.java:3715)
         at java.awt.Component.processEvent(Component.java:3544)
         at java.awt.Container.processEvent(Container.java:1164)
         at java.awt.Component.dispatchEventImpl(Component.java:2593)
         at java.awt.Container.dispatchEventImpl(Container.java:1213)
         at java.awt.Component.dispatchEvent(Component.java:2497)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
         at java.awt.Container.dispatchEventImpl(Container.java:1200)
         at java.awt.Window.dispatchEventImpl(Window.java:914)
         at java.awt.Component.dispatchEvent(Component.java:2497)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)

  • Change Password function.

    Hello! I'm pretty fresh in MySQL world, but already know a bit from check magazine tutorial. I wanted to do a change password function, but I have actually no idea what server behavior I have to use to find out the user ID of the current user logged in. Can anyone please help me with that? Step-by step tutorials are more likely than welcome, as I'm not so good at dreamweaver stuff yet. Oh, and I'm using dreamweaver 5.5.

    Here is the current recordset code.
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
      $updateSQL = sprintf("UPDATE users SET password=%s WHERE user_id=%s",
                           GetSQLValueString($_POST['password'], "text"),
                           GetSQLValueString($_POST['user_id'], "int"));
      mysql_select_db($database_check_mag, $check_mag);
      $Result1 = mysql_query($updateSQL, $check_mag) or die(mysql_error());
      $updateGoTo = "index.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
        $updateGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $updateGoTo));
    mysql_select_db($database_check_mag, $check_mag);
    $query_getPost = "SELECT user_id, username, password FROM users";
    $getPost = mysql_query($query_getPost, $check_mag) or die(mysql_error());
    $row_getPost = mysql_fetch_assoc($getPost);
    $totalRows_getPost = mysql_num_rows($getPost);
    $colname_getPost = "-1";
    if (isset($_GET['post_id'])) {
      $colname_getPost = $_GET['post_id'];
    mysql_select_db($database_check_mag, $check_mag);
    $query_getPost = sprintf("SELECT post_id, title, blog_entry FROM news WHERE post_id = %s", GetSQLValueString($colname_getPost, "int"));
    $getPost = mysql_query($query_getPost, $check_mag) or die(mysql_error());
    $row_getPost = mysql_fetch_assoc($getPost);
    $totalRows_getPost = mysql_num_rows($getPost);
    ?>

  • Changing password logic - old password, new password, retype password

    I have a MainFrame class which has a Change Password button. The action for the button is:
              // Change password
              aListener = new ActionListener() {
                   public void actionPerformed(ActionEvent e) {
                       ChangeMyPassword cmp = new ChangeMyPassword(
                                     MainFrame.this);
                       cmp.dispose();          
              changePasswordButton.addActionListener(aListener);When the user press the Change Password button, it pass control to the ChangeMyPassword class which as a submit button and a cancel button. When the user press the submit button, it should validate the old password (i.e. compare it to the password in the text file), validate the new password match the retype password:
              // submit button
              ActionListener aListener = new ActionListener() {
                   public void actionPerformed(ActionEvent e) {
                        // Retrieve the password.
                        char[] pw = oldPasswordField.getPassword();
                        oldPassword = new String(pw).trim();
                        pw = newPasswordField.getPassword();
                        newPassword = new String(pw).trim();
                        pw = retypePasswordField.getPassword();
                        retypePassword = new String(pw).trim();
                        // Hide, but don't dispose of, this window ...
                        // we need to give the client code a chance to
                        // retrieve the user's typed response via
                        // the getPassword() method first.
                        ChangeMyPassword.this.setVisible(false);
              submitButton.addActionListener(aListener);I have a Student class which compare the old password with the password in the text file. The student class constructor takes the student id to identify which student text file it should call.
    The problem is that the ChangeMyPassword does not know about student id (because I am getting these from the text field in MainFrame class). So how can I call the validatePassword method in Student class?
         public boolean validatePassword(String pw) {
              if (pw == null) return false;
              if (pw.equals(password)) return true;
              else return false;
         }

    I don�t understand why it does not update the text file with the new password.
    The submit button has the action in ChangeMyPassword class:
              // submit button
              ActionListener aListener = new ActionListener() {
                   public void actionPerformed(ActionEvent e) {
                        // Retrieve the password.
                        char[] pw = oldPasswordField.getPassword();
                        oldPassword = new String(pw).trim();
                        pw = newPasswordField.getPassword();
                        newPassword = new String(pw).trim();
                        pw = retypePasswordField.getPassword();
                        retypePassword = new String(pw).trim();
                        Student theStudent = new Student(id);
                        if(theStudent.validatePassword(oldPassword)){
                            if(validateChangePassword()){
                                 // write the new password to file
                                 theStudent.setPassword(getNewPassword());
                                 // Let the user know that the
                                 // password succeeded.
                                 JOptionPane.showMessageDialog(null,
                                  "Password change successfully.",
                                  "Password Changed",
                                  JOptionPane.INFORMATION_MESSAGE);
                            }else{
                                 JOptionPane.showMessageDialog(null,
                                            "You have used an invalid user name or password; please try again.",
                                            "Authentication failed",
                                            JOptionPane.WARNING_MESSAGE);
                       }else{
                            JOptionPane.showMessageDialog(null,
                                       "You have used an invalid user name or password; please try again.",
                                       "Authentication failed",
                                       JOptionPane.WARNING_MESSAGE);                        
                        // Hide, but don't dispose of, this window ...
                        // we need to give the client code a chance to
                        // retrieve the user's typed response via
                        // the getPassword() method first.
                        ChangeMyPassword.this.setVisible(false);
              submitButton.addActionListener(aListener);Validate password method in Student class:
         public boolean validatePassword(String pw) {
              if (pw == null) return false;
              if (pw.equals(password)) return true;
              else return false;
         }Validate change password method in ChangeMyPassword class:
         public boolean validateChangePassword(){
              if(newPassword.equals(retypePassword))return true;
              else return false;
         }When the user press the Change Password button the action performed in the MainFrame class is:
              // Change password
              aListener = new ActionListener() {
                   public void actionPerformed(ActionEvent e) {
                        String id = ssnField.getText();
                       ChangeMyPassword cmp = new ChangeMyPassword(MainFrame.this, id);
                       boolean success = currentUser.persist();
                       cmp.dispose();          
              changePasswordButton.addActionListener(aListener);Now remember that I set the password that should be written in ChangeMyPassword class as you can see above. Now that I called the persist method, it should write all the details back to the text. For some reason it not doing that and I don�t understand why.
    The persist method:
         public boolean persist() {
              FileOutputStream fos = null;
              PrintWriter pw = null;
              try {
                   // Attempt to create the ssn.dat file.  Note that
                   // it will overwrite one if it already exists.
                   fos = new FileOutputStream("C://Files//" + getSsn() + ".dat");
                   pw = new PrintWriter(fos);
                   // First, we output the header record as a tab-delimited
                   // record.
                   pw.println(getSsn() + "\t" + getName() + "\t" +
                           getMajor() + "\t" + getDegree() + "\t" + getPassword());
                   // Then, we output one record for every Section that
                   // the Student is enrolled in.
                   for (int i = 0; i < attends.size(); i++) {
                        Section s = (Section) attends.elementAt(i);
                        pw.println(s.getFullSectionNo());
                   pw.close();
                   fos.close(); //? needed?
              catch (IOException e) {
                   // Signal that an error has occurred.
                   return false;
              // All is well!
              return true;
         }

  • Problem using reset_pw to change password

    When sending out emails from HTMLDB using wwv_flow_fnd_user_api.reset_pw to change passwords HTMLDB used the email of the user as the from user. Our SMTP server will only allow valid users to send emails!
    As a work-around we're updating the P_FROM column in WWV_FLOW_MAIL_QUEUE to a valid user if the email is stuck in the queue and then pushing then queue.
    Anybody have a better solution?
    Oracle, will you fix this "BUG"? and allow the from user to be specified as an optional parameter?
    BTW: Many of the other email features are locked down in the email packages provided with HTMLDB. Could we get access to reply-to, error-to, from, and other email standard parameters?

    Michael,
    I might be missing something, but you say "our SMTP server will only allow valid users to send emails". So if your SMTP server has this limitation, is not a null From message header also an invalid e-mail address?
    I just tried a test using the UTL_SMTP package (which is employed by HTML DB). I initiated a message to an SMTP server which did not validate the From field and it went through. I did a second message, identical to the first one with a bogus From address, and sent it to another SMTP server and it was rejected with "SMTP permanent error: 553 5.5.4 zzzz... Domain name required for sender address zzzz". I believe this error message is coming back from the SMTP server, it is not an Oracle creation.
    On a separate note, if this is the reset password functionality and you are 1) using the same address for the "To" and the "From", and 2) this is the e-mail address that the user will received their reset password, if the e-mail address is bogus in the first place, how would the user ever receive this e-mail?
    Joel

  • If someone has wiped my ipad and changed passwords on icloud how do i get my data back

    if someone has wiped my ipad and changed passwords on icloud how do i get my data back? please could someone help me out thanks

    How did they wipe it?  By using Find My iPad and performing a wipe?  If so, that means they have your icloud ID and password, not a good thing.
    You could try connecting it to iTunes and performing a restore from iCloud.  But if they changed password, then you are out of the loop.  How did they get your password in order to change it?

Maybe you are looking for

  • Paravirtualized machine hanging (VM Server 2.1, NFS based repository)

    Hi, I have a problem with a VM server. I have local disks, that are kind of slow (initially my images were on OCFS2 based /OVS, after some problem with it wi migrated /OVS to ext3), but because of insufficient space we want to use NFS. I created an N

  • Analysis workbooks become slow to open  in Excel

    Gurus, I am seeing a pattern in our use of Analysis by our users. As they create, edit, etc...the workbook gets slower and slower to open. I have one that takes 10s of minutes to open when Analysis plugin is loaded vs. seconds when just Excel. Diggin

  • Basic document of Business Information Warehousing

    please search the forum, there are already a lot of information that kind. Hi, I am functional consultant, have worked on Retail software (other than SAP) for 1.5 years. Now i am working in SAP BIW. I want to build my conceptual skills with technical

  • Getting Error while installing UCM

    Hi All, Am getting error while installing the UCM in my system. Error description:- NOTICE:     Install logging initialized at 2/5/10 3:34 PM. NOTICE:     Installing master server. NOTICE:     Installing with Java version 1.5.0_11. NOTICE:     Instal

  • Lumia 920 front camera lens distortion (not dust)

    Hi community, Have a next issue - all pictures/video from front camera are distorted on top (I can see that upper edge of camera is just covered by glass curve - so the effect I'm getting is quite annoying). I've seen couple of videos on youtube made