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

status command using -n fails if no password is provided

    Details

    • Type: Bug
    • Status: Done
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.5.0
    • Component/s: core server
    • Labels:
      None
    • Environment:
      Unix (CentOS 6.6)

      Description

      Using 2.6.2 I used the status command to provide proper 'service opendj status' functionality to the init.d service script as follows:

      status)
          STATUS=`/bin/su ${OPENDJ_USER} -c "${INSTALL_ROOT}/bin/status -s -n | head -1 | cut -d' ' -f 4"`
          echo "Server status: ${STATUS}"
          case "${STATUS}" in
            Stopped) exit 3;;
            Started) exit 0;;
            *) exit 1;;
          esac
          ;;
      

      However running status -s -n in 3.0.0 results in:

      The LDAP bind password was not specified and cannot be read interactively
      

      I have found that it is possible to work around this by providing any (incorrect) password, eg:

      status -s -n -w foo
      

      Unfortunately this is not backwards compatible with 2.6.2

        Attachments

          Activity

            People

            • Assignee:
              gaetan Gaetan Boismal [X] (Inactive)
              Reporter:
              crispinv Crispin Veall
              Dev Assignee:
              Gaetan Boismal [X] (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: