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

allow ldifmodify to do in-place updates

    Details

    • Type: New Feature
    • Status: Dev backlog
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 7.0.0
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
      None

      Description

      Reviewing some changes on the docker image, I realized the cannonical use for ldifmodify seem to be the following:

          ./bin/ldifmodify "${file}" > "${file}.tmp" << EOF
      dn: ${dn}
      changetype: modify
      delete: userPassword
      EOF
          rm "${file}"
          mv "${file}.tmp" "${file}"
      

      See pull request 5459.

      It would be nice if the ldifmodify tool could do in-place updates, so it would allow to get rid of this repeated ldifmodify / rm / mv pattern that is a bit unreadable.

      It could be implemented by adding a new command line option for example.

      Before closing this issue, all uses of ldifmodify in our scripts should be changed to do in-place updates.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              JnRouvignac Jean-Noël Rouvignac
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: