From e823cb8cacd9301609314ed52d2b51856294e58c Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 23 Sep 2010 17:02:31 +1000 Subject: s4-libnet_join Use header constant for 'all encryption types' in msDS-SupportedEncryptionTypes --- source4/libnet/libnet_join.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'source4/libnet/libnet_join.c') diff --git a/source4/libnet/libnet_join.c b/source4/libnet/libnet_join.c index dd533355ad..7992670eec 100644 --- a/source4/libnet/libnet_join.c +++ b/source4/libnet/libnet_join.c @@ -34,6 +34,8 @@ #include "librpc/gen_ndr/ndr_samr_c.h" #include "param/param.h" #include "param/provision.h" +#include "system/kerberos.h" +#include "auth/kerberos/kerberos.h" /* * complete a domain join, when joining to a AD domain: @@ -333,10 +335,7 @@ static NTSTATUS libnet_JoinADSDomain(struct libnet_context *ctx, struct libnet_J rtn = ldb_msg_add_fmt(msg, "msDS-SupportedEncryptionTypes", "%lu", - (long unsigned int)(ENC_CRC32 | ENC_RSA_MD5 | - ENC_RC4_HMAC_MD5 | - ENC_HMAC_SHA1_96_AES128 | - ENC_HMAC_SHA1_96_AES256)); + (long unsigned int)(ENC_ALL_TYPES)); if (rtn != LDB_SUCCESS) { r->out.error_string = NULL; talloc_free(tmp_ctx); -- cgit