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

dsconfig offline creates entries with BER Encoded RDN values.

    Details

      Description

      When we use dsconfig --offline to create backends or indexes, the DN of the created entries contain BER Encoded values.

      The same is true for Profiles that are creating indexes or backends using dsconfig (ds.addIndex)

       dsconfig create-backend \
       --set base-dn:dc=foo \
       --set enabled:true \
       --type je \
       --backend-name FooBar \
       --offline \
       --configFile /Space/Tests/XXX/opendj/config/config.ldif \
       --no-prompt
      
      dsconfig create-backend-index \
       --backend-name FooBar \
       --set index-type:equality \
       --type generic \
       --index-name description \
       --offline \
       --configFile /Space/Tests/XXX/opendj/config/config.ldif \
       --no-prompt
      

      Extract from the config.ldif:

      dn: cn=Backends,cn=config
      objectClass: top
      objectClass: ds-cfg-branch
      cn: Backends
      
      dn: ds-cfg-backend-id=#0406466F6F426172,cn=Backends,cn=config
      objectClass: top
      objectClass: ds-cfg-backend
      objectClass: ds-cfg-local-backend
      objectClass: ds-cfg-pluggable-backend
      objectClass: ds-cfg-je-backend
      ds-cfg-java-class: org.opends.server.backends.jeb.JEBackend
      ds-cfg-backend-id: FooBar
      ds-cfg-enabled: true
      ds-cfg-db-directory: db
      ds-cfg-writability-mode: enabled
      ds-cfg-base-dn: dc=foo
      
      dn: cn=Index,ds-cfg-backend-id=#0406466F6F426172,cn=Backends,cn=config
      objectClass: top
      objectClass: ds-cfg-branch
      cn: Index
      
      dn: ds-cfg-attribute=#0403616369,cn=Index,ds-cfg-backend-id=#0406466F6F426172,cn=Backends,cn=config
      objectClass: top
      objectClass: ds-cfg-backend-index
      ds-cfg-attribute: aci
      ds-cfg-index-type: presence
      
      dn: ds-cfg-attribute=#040B6465736372697074696F6E,cn=Index,ds-cfg-backend-id=#0406466F6F426172,cn=Backends,cn=config
      objectClass: top
      objectClass: ds-cfg-backend-index
      ds-cfg-attribute: description
      ds-cfg-index-type: equality
      

      Everything works, but it's confusing.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ondrej.fuchsik Ondrej Fuchsik
                Reporter:
                ludo Ludovic Poitou
                Dev Assignee:
                Cyril Quinton
                QA Assignee:
                Ondrej Fuchsik
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: