Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-3874

Entering an invalid DN crashes status with a stacktrace

    Details

    • Type: Bug
    • Status: Done
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.0
    • Fix Version/s: 4.0.0
    • Component/s: config, tools
    • Labels:
    • Environment:
      OpenDJ 4.0.0 rev 1b042cdf009291aff8027f4d0ca04fdc9e1c3991

      Description

      In interactive mode I provided invalid bind dn and I hit following exception:

      ./bin/status 
      
      
      >>>> Specify OpenDJ LDAP connection parameters
      
      How do you want to trust the server certificate?
      
          1)  Automatically trust
          2)  Use a truststore
          3)  Manually validate
      
      Enter choice [3]: 1
      
      Administrator user bind DN [cn=Directory Manager]: cn-admin
      Exception in thread "main" org.forgerock.i18n.LocalizedIllegalArgumentException: The provided value "cn-admin" could not be parsed as a valid distinguished name because the last non-space character was part of the attribute name 'cn-admin'
      	at org.forgerock.opendj.ldap.Ava.decode(Ava.java:129)
      	at org.forgerock.opendj.ldap.Rdn.decode(Rdn.java:179)
      	at org.forgerock.opendj.ldap.Dn.decode(Dn.java:272)
      	at org.forgerock.opendj.ldap.Dn.valueOf(Dn.java:245)
      	at org.forgerock.opendj.ldap.Dn.valueOf(Dn.java:214)
      	at org.opends.server.util.cli.LDAPConnectionConsoleInteraction.promptForCredentialLoginIfRequired(LDAPConnectionConsoleInteraction.java:649)
      	at org.opends.server.util.cli.LDAPConnectionConsoleInteraction.resolveCredentialLogin(LDAPConnectionConsoleInteraction.java:406)
      	at org.opends.server.util.cli.LDAPConnectionConsoleInteraction.run(LDAPConnectionConsoleInteraction.java:356)
      	at org.opends.server.tools.status.StatusCli.execute(StatusCli.java:261)
      	at org.opends.server.tools.status.StatusCli.mainCLI(StatusCli.java:177)
      	at org.opends.server.tools.status.StatusCli.main(StatusCli.java:140)
      
      

        Attachments

          Activity

            People

            • Assignee:
              ylecaillez Yannick Lecaillez
              Reporter:
              ondrej.fuchsik Ondrej Fuchsik
              QA Assignee:
              Ondrej Fuchsik
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: