diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-08-27 15:51:52 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-08-28 07:57:28 +1000 |
commit | 0f7aa3db52ac10177993e8f05569c7d378d66440 (patch) | |
tree | 18a8689a994fd5fc705488658c52452adc88e75b /source4/libnet | |
parent | 861353972d967ecbd1552d49f157f8e04904bcce (diff) | |
download | samba-0f7aa3db52ac10177993e8f05569c7d378d66440.tar.gz samba-0f7aa3db52ac10177993e8f05569c7d378d66440.tar.bz2 samba-0f7aa3db52ac10177993e8f05569c7d378d66440.zip |
lib/krb5_wrap: Bring list of all enc types into krb5_wrap
Diffstat (limited to 'source4/libnet')
-rw-r--r-- | source4/libnet/libnet_export_keytab.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/source4/libnet/libnet_export_keytab.c b/source4/libnet/libnet_export_keytab.c index b30bf12faa..9763726e2b 100644 --- a/source4/libnet/libnet_export_keytab.c +++ b/source4/libnet/libnet_export_keytab.c @@ -63,16 +63,7 @@ NTSTATUS libnet_export_keytab(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, s } if (r->in.principal) { - /* TODO: Find a way not to have to use a fixed list */ - krb5_enctype enctypes[] = { - KRB5_ENCTYPE_DES_CBC_CRC, - KRB5_ENCTYPE_DES_CBC_MD5, - KRB5_ENCTYPE_AES128_CTS_HMAC_SHA1_96, - KRB5_ENCTYPE_AES256_CTS_HMAC_SHA1_96, - KRB5_ENCTYPE_ARCFOUR_HMAC_MD5, - 0 - }; - ret = kt_copy_one_principal(smb_krb5_context->krb5_context, from_keytab, r->in.keytab_name, r->in.principal, 0, enctypes); + ret = kt_copy_one_principal(smb_krb5_context->krb5_context, from_keytab, r->in.keytab_name, r->in.principal, 0, samba_all_enctypes); } else { unlink(r->in.keytab_name); ret = kt_copy(smb_krb5_context->krb5_context, from_keytab, r->in.keytab_name); |