diff options
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/auth/pac.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/source4/torture/auth/pac.c b/source4/torture/auth/pac.c index 79cae5cbea..00196b493f 100644 --- a/source4/torture/auth/pac.c +++ b/source4/torture/auth/pac.c @@ -23,12 +23,11 @@ #include "includes.h" #include "system/kerberos.h" -#include "system/time.h" -#include "system/network.h" #include "auth/auth.h" #include "auth/kerberos/kerberos.h" #include "librpc/gen_ndr/ndr_krb5pac.h" -#include "auth/auth.h" + +#ifdef HAVE_KRB5 static BOOL torture_pac_self_check(void) { @@ -251,3 +250,14 @@ BOOL torture_pac(void) ret &= torture_pac_saved_check(); return ret; } + +#else + +BOOL torture_pac(void) +{ + printf("Cannot do PAC test without Krb5\n"); + return False; +} + +#endif + |