mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
selftest: Start MIT KDC if Kerberos is from MIT
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlet <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
6d19a66cf8
commit
687da88590
@ -49,6 +49,7 @@ my @opt_exclude = ();
|
||||
my @opt_include = ();
|
||||
my $opt_testenv = 0;
|
||||
my $opt_list = 0;
|
||||
my $opt_mitkrb5 = 0;
|
||||
my $ldap = undef;
|
||||
my $opt_resetup_env = undef;
|
||||
my $opt_load_list = undef;
|
||||
@ -246,6 +247,7 @@ my $result = GetOptions (
|
||||
'bindir=s' => \$bindir,
|
||||
'testenv' => \$opt_testenv,
|
||||
'list' => \$opt_list,
|
||||
'mitkrb5' => \$opt_mitkrb5,
|
||||
'ldap:s' => \$ldap,
|
||||
'resetup-environment' => \$opt_resetup_env,
|
||||
'testlist=s' => \@testlists,
|
||||
@ -418,6 +420,10 @@ if ($opt_use_dns_faking) {
|
||||
my $target;
|
||||
my $testenv_default = "none";
|
||||
|
||||
if ($opt_mitkrb5 == 1) {
|
||||
$ENV{MITKRB5} = $opt_mitkrb5;
|
||||
}
|
||||
|
||||
# After this many seconds, the server will self-terminate. All tests
|
||||
# must terminate in this time, and testenv will only stay alive this
|
||||
# long
|
||||
|
@ -230,6 +230,9 @@ def cmd_testonly(opt):
|
||||
# FIXME REMOVE ME!
|
||||
env.OPTIONS += " --use-dns-faking"
|
||||
|
||||
if CONFIG_GET(opt, 'USING_SYSTEM_KRB5') and CONFIG_GET(opt, 'MIT_KDC_PATH'):
|
||||
env.OPTIONS += " --mitkrb5"
|
||||
|
||||
if not CONFIG_GET(opt, 'HAVE_GSS_KRB5_CRED_NO_CI_FLAGS_X'):
|
||||
# older MIT krb5 libraries (< 1.14) don't have
|
||||
# GSS_KRB5_CRED_NO_CI_FLAGS_X
|
||||
|
Loading…
x
Reference in New Issue
Block a user