[kdc]
database = {
- dbname = db:./heimdal
+ dbname = db:./t/tmp/heimdal
realm = TEST.EXAMPLE.COM
}
+ database = {
+ dbname = db:./t/tmp/bogus
+ realm = BOGUS.EXAMPLE.COM
+ }
[password_quality]
policies = external-check
rmdir('t/tmp');
}
-# Force use of our local kdc.conf, since kadmin library initialization wants
-# to know the host to realm mapping for some reason.
+# Force use of our local kdc.conf.
local $ENV{KRB5_CONFIG} = 't/data/kdb/kdc.conf';
# Create the Authen::Kerberos::Kadmin object.
my $kadmin = Authen::Kerberos::Kadmin->new(
{
- db_name => 'db:./t/tmp/heimdal',
realm => 'TEST.EXAMPLE.COM',
server => 1,
password_quality => 1,
# The same should fail if we attempt it with an unknown database.
$kadmin = Authen::Kerberos::Kadmin->new(
{
- db_name => 'db:./t/tmp/bogus',
- realm => 'TEST.EXAMPLE.COM',
+ realm => 'BOGUS.EXAMPLE.COM',
server => 1,
}
);