summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-09-04 10:58:42 +0000
committerAndrew Tridgell <tridge@samba.org>2002-09-04 10:58:42 +0000
commit65029365ba9e2df821a57173c7532e4cbc7b06e9 (patch)
treeaba6730d052b24ea2cfd01e5595b9b9478b30dd8 /source3
parent4b27cda2858961fcdaefcb9b47a4f7b3310566c3 (diff)
downloadsamba-65029365ba9e2df821a57173c7532e4cbc7b06e9.tar.gz
samba-65029365ba9e2df821a57173c7532e4cbc7b06e9.tar.bz2
samba-65029365ba9e2df821a57173c7532e4cbc7b06e9.zip
don't use ENCTYPE_ARCFOUR_HMAC unless the kerberos lib supports it
(This used to be commit 13dc9e37d2422c45ac5005dce26b349f88dbe505)
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/clikrb5.c9
1 files changed, 4 insertions, 5 deletions
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};