[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with multiple realms/databases



Hi,

I want to set up a single KDC that serves multiple realms using multiple
databases. As far as I see both the KDC and libkadm5srv has code to
support this, but the configuration parser does not seem to be up to the
task. I have in kdc.conf:

[kdc]
	database = {
		realm = A
		dbname = /var/lib/heimdal-kdc/a
		mkey_file = /var/lib/heimdal-kdc/a.mkey
		log_file = /var/lib/heimdal-kdc/a.log
		acl_file = /var/lib/heimdal-kdc/a.acl
	}
	database = {
		realm = B
		dbname = /var/lib/heimdal-kdc/b
		mkey_file = /var/lib/heimdal-kdc/b.mkey
		log_file = /var/lib/heimdal-kdc/b.log
		acl_file = /var/lib/heimdal-kdc/b.acl
	}

but according to dump_config, this is being interpreted as

[kdc]
    database = {
        realm = A
        dbname = /var/lib/heimdal-kdc/a
        mkey_file = /var/lib/heimdal-kdc/a.mkey
        log_file = /var/lib/heimdal-kdc/a.log
        acl_file = /var/lib/heimdal-kdc/a.acl
        realm = B
        dbname = /var/lib/heimdal-kdc/b
        mkey_file = /var/lib/heimdal-kdc/b.mkey
        log_file = /var/lib/heimdal-kdc/b.log
        acl_file = /var/lib/heimdal-kdc/b.acl
    }

which means the second database definition is never used. Any ideas how
to fix this?

Gabor

-- 
     ---------------------------------------------------------
     MTA SZTAKI Computer and Automation Research Institute
                Hungarian Academy of Sciences
     ---------------------------------------------------------