]> eyrie.org Git - kerberos/perl-kerberos.git/commitdiff
Set KRB5_CONFIG when running the test suite release/0.01
authorRuss Allbery <eagle@eyrie.org>
Fri, 28 Feb 2014 05:36:14 +0000 (21:36 -0800)
committerRuss Allbery <eagle@eyrie.org>
Fri, 28 Feb 2014 05:49:14 +0000 (21:49 -0800)
For some reason, initializing the kadmin library wants to map
the local host to a realm.

t/kadmin/heimdal.t

index fd07855f8bc5bccde3518d0999972679849e1cab..77af47daa4cbb08d9f766a0b444a65ec824891f3 100755 (executable)
@@ -49,6 +49,10 @@ END {
     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.
+local $ENV{KRB5_CONFIG} = 't/data/kdb/kdc.conf';
+
 # Create the Authen::Kerberos::Kadmin object.
 my $kadmin = Authen::Kerberos::Kadmin->new(
     {