From: Nalin Dahyabhai Date: Thu, 1 Oct 2015 22:59:34 +0000 (-0400) Subject: Set plugin_base_dir for kadmin tests X-Git-Tag: krb5-1.15-beta1~352 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3db59d81bbbe389553d13efeee1c99117b459b24;p=thirdparty%2Fkrb5.git Set plugin_base_dir for kadmin tests In the krb5.conf used by the kadmin tests, include a plugin_base_dir setting. Otherwise the KDC can load and run code from kdcpreauth modules in the install tree. [ghudson@mit.edu: commit message] ticket: 8262 (new) target_version: 1.14 tags: pullup --- diff --git a/src/kadmin/testing/proto/krb5.conf.proto b/src/kadmin/testing/proto/krb5.conf.proto index c2648d6c67..e9702bb86f 100644 --- a/src/kadmin/testing/proto/krb5.conf.proto +++ b/src/kadmin/testing/proto/krb5.conf.proto @@ -2,6 +2,7 @@ default_realm = __REALM__ default_keytab_name = FILE:__K5ROOT__/v5srvtab dns_fallback = no + plugin_base_dir = __PLUGIN_DIR__ [realms] __REALM__ = { diff --git a/src/kadmin/testing/scripts/start_servers b/src/kadmin/testing/scripts/start_servers index f32861884d..87bd52fc0b 100755 --- a/src/kadmin/testing/scripts/start_servers +++ b/src/kadmin/testing/scripts/start_servers @@ -40,6 +40,7 @@ if [ $local = 0 ]; then -e "s/__KDCHOST__/$hostname/g" \ -e "s/__LOCALHOST__/$localname/g" \ -e "s#__MODDIR__#$TOP/../plugins/kdb#g"\ + -e "s#__PLUGIN_DIR__#$TOP/../plugins#g"\ < $STESTDIR/proto/krb5.conf.proto > $K5ROOT/krb5.conf # Using /usr/ucb/rsh and getting rid of "-k $REALM" until we get