From: Stefan Metzmacher Date: Thu, 7 Mar 2024 12:44:53 +0000 (+0100) Subject: s3:net: remove unused net_context->opt_kerberos X-Git-Tag: tdb-1.4.11~728 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9620d2ecc188799798fbef31b6934b861f3bbe33;p=thirdparty%2Fsamba.git s3:net: remove unused net_context->opt_kerberos Signed-off-by: Stefan Metzmacher Reviewed-by: Andreas Schneider --- diff --git a/source3/utils/net.c b/source3/utils/net.c index 06ccbc00016..9c2062b3691 100644 --- a/source3/utils/net.c +++ b/source3/utils/net.c @@ -1377,8 +1377,6 @@ static struct functable net_func[] = { CRED_UNINITIALISED; enum smb_encryption_setting encrypt_state = cli_credentials_get_smb_encryption(c->creds); - enum credentials_use_kerberos krb5_state = - cli_credentials_get_kerberos_state(c->creds); uint32_t gensec_features; if (principal_obtained == CRED_SPECIFIED) { @@ -1397,8 +1395,6 @@ static struct functable net_func[] = { c->smb_encrypt = (encrypt_state == SMB_ENCRYPTION_REQUIRED); - c->opt_kerberos = (krb5_state > CRED_USE_KERBEROS_DESIRED); - gensec_features = cli_credentials_get_gensec_features(c->creds); if (c->legacy_opt_ccache) { gensec_features |= GENSEC_FEATURE_NTLM_CCACHE; diff --git a/source3/utils/net.h b/source3/utils/net.h index c14ec35915b..58a315c3bff 100644 --- a/source3/utils/net.h +++ b/source3/utils/net.h @@ -72,7 +72,6 @@ struct net_context { const char *opt_exclude; const char *opt_destination; int opt_testmode; - int opt_kerberos; int opt_force_full_repl; int legacy_opt_ccache; int opt_single_obj_repl; diff --git a/source3/utils/py_net.c b/source3/utils/py_net.c index 90c570de03e..61b549bd9a1 100644 --- a/source3/utils/py_net.c +++ b/source3/utils/py_net.c @@ -130,7 +130,6 @@ static PyObject *py_net_join_member(py_net_Object *self, PyObject *args, PyObjec c->explicit_credentials = true; c->opt_user_name = cli_credentials_get_username(self->creds); c->opt_password = cli_credentials_get_password(self->creds); - c->opt_kerberos = cli_credentials_get_kerberos_state(self->creds); werr = libnet_Join(mem_ctx, r); if (W_ERROR_EQUAL(werr, WERR_NERR_DCNOTFOUND)) {