Uploaded image for project: 'OpenDNSSEC TRAC Import'
  1. OpenDNSSEC TRAC Import
  2. ODSTRACIMPORT-9

ksmutil addzone defaults to wrong path

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Unknown
    • Labels:

      Description

      When calling ksmutil addzone with just the zone name it sets the path to the config and zonefiles to the wrong location (prepends \usr\local). The zone mcd.coop was added manually and has the correct location.

      opensndsec1:/var/opendnssec/unsigned# ksmutil addzone test.coop
      zonelist filename set to /etc/opendnssec/zonelist.xml.
      SQLite database set to: /var/opendnssec/kasp.db
      Imported zone: test.coop
      
      opensndsec1:/var/opendnssec/unsigned# cat /etc/opendnssec/zonelist.xml
      <?xml version="1.0" encoding="UTF-8"?>
      <!-- $Id: zonelist.xml.in 1443 2009-07-30 13:17:16Z rb $ -->
      <ZoneList>
              <!--
              <Zone name="example.com">
                      <Policy>default</Policy>
                      <SignerConfiguration>/var/opendnssec/signconf/example.com.xml</SignerConfiguration>
                      <Adapters>
                              <Input>
                                      <File>/var/opendnssec/unsigned/example.com</File>
                              </Input>
                              <Output>
                                      <File>/var/opendnssec/signed/example.com</File>
                              </Output>
                      </Adapters>
              </Zone>
      -->
              <Zone name="mcd.coop">
                      <Policy>default</Policy>
                      <SignerConfiguration>/var/opendnssec/config/mcd.coop.xml</SignerConfiguration>
                      <Adapters>
                              <Input>
                                      <File>/var/opendnssec/unsigned/mcd.coop</File>
                              </Input>
                              <Output>
                                      <File>/var/opendnssec/signed/mcd.coop</File>
                              </Output>
                      </Adapters>
              </Zone>
              <Zone name="test.coop">
                      <Policy>default</Policy>
                      <SignerConfiguration>/usr/local/var/opendnssec/config/test.coop.xml</SignerConfiguration>
                      <Adapters>
                              <Input>
                                      <File>/usr/local/var/opendnssec/unsigned/test.coop</File>
                              </Input>
                              <Output>
                                      <File>/usr/local/var/opendnssec/signed/test.coop</File>
                              </Output>
                      </Adapters>
              </Zone>
      </ZoneList>
      

      This was tested against the trunk (1522). Running Debian GNU/Linux squeeze/sid
      Configured with: ./configure --prefix=/usr/local --sysconfdir=/etc --localstatedir=/var --with-sqlite3=/usr --with-ldns=/usr --with-libxml2=/usr --with-botan=/usr --with-pkcs11-softhsm=/usr/local/lib/libsofthsm.so

        Attachments

          Activity

            People

            Assignee:
            sion SiƓn Lloyd
            Reporter:
            jonathan.stanton@cit.coop jonathan.stanton
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: