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

ldapcompare should exit with different values w.r.t comparison is successful or not

    Details

    • Type: Improvement
    • Status: Done
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.6.0
    • Fix Version/s: 2.6.0
    • Component/s: tools
    • Labels:

      Description

      ldapcompare always returns 0 (comparison is successfull or not) instead of 6 (Compare True) / 5 (Compare False).

      $ ./ldapcompare -D "cn=myself" -w mypassword -h localhost -p 1389 "postalCode:10000" "uid=user.20,dc=com"
      Comparing type postalCode with value 10000 in entry uid=user.20,dc=com
      Compare operation returned true for entry uid=user.20,dc=com
      $ echo $?
      0

      => should exit with return code 6 (Compare True)

      $ ./ldapcompare -D "cn=myself" -w mypassword -h localhost -p 1389 "postalCode:20000" "uid=user.20,dc=com"
      Comparing type postalCode with value 20000 in entry uid=user.20,dc=com
      Compare operation returned false for entry uid=user.20,dc=com
      $ echo $?
      0

      => should exit with return code 5 (Compare False)

        Attachments

          Activity

            People

            • Assignee:
              JnRouvignac Jean-Noël Rouvignac
              Reporter:
              csovant Christophe Sovant
              QA Assignee:
              Christophe Sovant
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: