From 65029365ba9e2df821a57173c7532e4cbc7b06e9 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 4 Sep 2002 10:58:42 +0000 Subject: don't use ENCTYPE_ARCFOUR_HMAC unless the kerberos lib supports it (This used to be commit 13dc9e37d2422c45ac5005dce26b349f88dbe505) --- source3/libsmb/clikrb5.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'source3') diff --git a/source3/libsmb/clikrb5.c b/source3/libsmb/clikrb5.c index 955a93285c..1fc400edb0 100644 --- a/source3/libsmb/clikrb5.c +++ b/source3/libsmb/clikrb5.c @@ -20,10 +20,6 @@ #include "includes.h" -#ifndef ENCTYPE_ARCFOUR_HMAC -#define ENCTYPE_ARCFOUR_HMAC 0x0017 -#endif - #ifdef HAVE_KRB5 /* we can't use krb5_mk_req because w2k wants the service to be in a particular format @@ -98,7 +94,10 @@ DATA_BLOB krb5_get_ticket(char *principal) krb5_context context; krb5_auth_context auth_context = NULL; DATA_BLOB ret; - krb5_enctype enc_types[] = {ENCTYPE_ARCFOUR_HMAC, + krb5_enctype enc_types[] = { +#ifdef ENCTYPE_ARCFOUR_HMAC + ENCTYPE_ARCFOUR_HMAC, +#endif ENCTYPE_DES_CBC_MD5, ENCTYPE_NULL}; -- cgit