Forum Stats

  • 3,873,311 Users
  • 2,266,532 Discussions
  • 7,911,502 Comments

Discussions

emcli login to change password now receiving Error: Login failed. Retry with correct hostname, port

user6036394
user6036394 Member Posts: 17 Blue Ribbon
edited Oct 31, 2019 10:53AM in Enterprise Manager

I have 3 servers that I had emcli working on.

I had to change my password and I was working on server sb2.

All commands were working.

I moved on to sb1 and change my password via the emcli -> login (username='YourLDAPuser', password='YourLDAPpwd')

I'm receiving this error on sb1.  I do not receive it on sb2 (it is working correctly)

emcli login -username=myLDAPuser

Error: Login failed. Retry with correct hostname, port or username / password else check the log files for further details.

Log file location is : /home/oracle/.emcli/.emcli.log

emcli db_software_maintenance -getImageSubscriptions -image_id=873768883232DFC2E053173419A857AE

Error: Login failed. Retry with correct hostname, port or username / password else check the log files for further details.

Log file location is : /home/oracle/.emcli/.emcli.log

I also moved on to a third server which is having now the same issue as the first server.

Any suggestions would be greatly appreciated.

daniel_hauke

Best Answer

  • user6036394
    user6036394 Member Posts: 17 Blue Ribbon
    edited Oct 22, 2019 5:48PM Answer ✓

    Greetings.  I finally figured out the issue!!!  My password has a "!" in it and when I am using on on Unix, it's trying to do a variable replacement.

    So I do the following which is my work around until i  have time to change my password.

         read password

         emcli login -username YourLDAPuser -password=${password}

    This is in the logs:

    javax.security.auth.login.FailedLoginException

            at oracle.sysman.emCLI.omsbrowser.LoginSystem.doEMLogin(LoginSystem.java:681)

            at oracle.sysman.emCLI.omsbrowser.LoginSystem.establishSession(LoginSystem.java:249)

            at oracle.sysman.emCLI.omsbrowser.OMSBrowser.getPageInternal(OMSBrowser.java:930)

            at oracle.sysman.emCLI.omsbrowser.OMSBrowser.getPageCommon(OMSBrowser.java:854)

            at oracle.sysman.emCLI.omsbrowser.OMSBrowser.getPage(OMSBrowser.java:799)

            at oracle.sysman.emCLI.verb.LoginVerb.doLogin(LoginVerb.java:598)

            at oracle.sysman.emCLI.verb.LoginVerb.execute(LoginVerb.java:350)

            at oracle.sysman.emSDK.emCLI.CLIController.execute(CLIController.java:367)

            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    daniel_hauke

Answers

  • user6036394
    user6036394 Member Posts: 17 Blue Ribbon
    edited Oct 18, 2019 4:42PM

    This was working on all servers prior to the password change.

    I went as far as doing a cut and paste this command: login (username='YourLDAPuser', password='YourLDAPpwd')

    on all 3 servers and only the sb2 server is still working.

  • daniel_hauke
    daniel_hauke Member Posts: 211 Bronze Badge
    edited Oct 22, 2019 8:13AM

    Hi,

    did you check the /home/oracle/.emcli/.emcli.log?

    Any errors in this log?

    And for which userr do you changed the password?

    Can you share your commands?

    Greetings Daniel

  • user6036394
    user6036394 Member Posts: 17 Blue Ribbon
    edited Oct 22, 2019 5:48PM Answer ✓

    Greetings.  I finally figured out the issue!!!  My password has a "!" in it and when I am using on on Unix, it's trying to do a variable replacement.

    So I do the following which is my work around until i  have time to change my password.

         read password

         emcli login -username YourLDAPuser -password=${password}

    This is in the logs:

    javax.security.auth.login.FailedLoginException

            at oracle.sysman.emCLI.omsbrowser.LoginSystem.doEMLogin(LoginSystem.java:681)

            at oracle.sysman.emCLI.omsbrowser.LoginSystem.establishSession(LoginSystem.java:249)

            at oracle.sysman.emCLI.omsbrowser.OMSBrowser.getPageInternal(OMSBrowser.java:930)

            at oracle.sysman.emCLI.omsbrowser.OMSBrowser.getPageCommon(OMSBrowser.java:854)

            at oracle.sysman.emCLI.omsbrowser.OMSBrowser.getPage(OMSBrowser.java:799)

            at oracle.sysman.emCLI.verb.LoginVerb.doLogin(LoginVerb.java:598)

            at oracle.sysman.emCLI.verb.LoginVerb.execute(LoginVerb.java:350)

            at oracle.sysman.emSDK.emCLI.CLIController.execute(CLIController.java:367)

            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    daniel_hauke
  • daniel_hauke
    daniel_hauke Member Posts: 211 Bronze Badge
    edited Oct 23, 2019 4:26AM

    Hi,

    glad to here that you solved the issue.

    We had the same problem with passwords containing !

    Greetings Daniel