1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-04 05:18:06 +03:00

don't use ENCTYPE_ARCFOUR_HMAC unless the kerberos lib supports it

This commit is contained in:
Andrew Tridgell 0001-01-01 00:00:00 +00:00
parent 474cc910c7
commit 13dc9e37d2

View File

@ -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};