s4-libnet: Fix passing samba_all_enctypes as a fn rather than the encrypt array it...
authorAndrew Bartlett <abartlet@samba.org>
Wed, 29 Aug 2012 06:22:24 +0000 (16:22 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 29 Aug 2012 07:56:27 +0000 (09:56 +0200)
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed Aug 29 09:56:27 CEST 2012 on sn-devel-104

source4/libnet/libnet_export_keytab.c

index 9763726e2b613ab9ac00aae57bf19006f99b0d08..16165b81c7b7232e606e0910ad9baccbe74318e3 100644 (file)
@@ -63,7 +63,7 @@ NTSTATUS libnet_export_keytab(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, s
        }
 
        if (r->in.principal) {
-               ret = kt_copy_one_principal(smb_krb5_context->krb5_context, from_keytab, r->in.keytab_name, r->in.principal, 0, samba_all_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);