#include "lib/krb5_wrap/krb5_samba.h"
#include "auth/common_auth.h"
#include "lib/messaging/messaging.h"
+#include "lib/param/loadparm.h"
-#include <gnutls/gnutls.h>
+#include "lib/crypto/gnutls_helpers.h"
#include <gnutls/crypto.h>
#ifdef ENABLE_GPGME
bool do_newer_keys = false;
bool do_cleartext = false;
bool do_samba_gpg = false;
+ struct loadparm_context *lp_ctx = NULL;
ZERO_STRUCT(names);
ZERO_STRUCT(packages);
ldb = ldb_module_get_ctx(io->ac->module);
+ lp_ctx = talloc_get_type(ldb_get_opaque(ldb, "loadparm"),
+ struct loadparm_context);
if (!io->n.cleartext_utf8) {
/*
num_packages++;
}
- {
+ if (lpcfg_weak_crypto(lp_ctx) == SAMBA_WEAK_CRYPTO_ALLOWED) {
/*
* setup 'Primary:WDigest' element
*/