]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3-netapi: remove pointless use_memory_krb5_ccache.
authorGünther Deschner <gd@samba.org>
Wed, 26 Oct 2011 13:03:23 +0000 (15:03 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 23 Jan 2012 20:26:02 +0000 (21:26 +0100)
This breaks the ABI.

Guenther

See bug #7465 for more details.
(cherry picked from commit 2970d44442c2e6e80fb18f5c669d347e5f5be62e)

source3/lib/netapi/netapi.c
source3/lib/netapi/netapi.h

index dc42049b2424abf71aa31e1e79d269bcd783f822..ffb84b00052c0761c1a5db1d69ecbef28717cb9a 100644 (file)
@@ -262,20 +262,6 @@ NET_API_STATUS libnetapi_set_use_kerberos(struct libnetapi_ctx *ctx)
 /****************************************************************
 ****************************************************************/
 
-NET_API_STATUS libnetapi_set_use_memory_krb5_ccache(struct libnetapi_ctx *ctx)
-{
-       ctx->krb5_cc_env = talloc_strdup(ctx, "MEMORY:libnetapi");
-       if (!ctx->krb5_cc_env) {
-               return W_ERROR_V(WERR_NOMEM);
-       }
-       setenv(KRB5_ENV_CCNAME, ctx->krb5_cc_env, 1);
-       ctx->use_memory_krb5_ccache = 1;
-       return NET_API_STATUS_SUCCESS;
-}
-
-/****************************************************************
-****************************************************************/
-
 NET_API_STATUS libnetapi_set_use_ccache(struct libnetapi_ctx *ctx)
 {
        ctx->use_ccache = true;
index a55dc5e0b9bee8e38a7509274fc0a2199403e05f..9e1549df0eb3ed0551bb618272917dd8c35abe8c 100644 (file)
@@ -1356,7 +1356,6 @@ struct libnetapi_ctx {
        char *krb5_cc_env;
        int use_kerberos;
        int use_ccache;
-       int use_memory_krb5_ccache;
        int disable_policy_handle_cache;
 
        void *private_data;
@@ -1409,11 +1408,6 @@ NET_API_STATUS libnetapi_set_use_kerberos(struct libnetapi_ctx *ctx);
 /****************************************************************
 ****************************************************************/
 
-NET_API_STATUS libnetapi_set_use_memory_krb5_ccache(struct libnetapi_ctx *ctx);
-
-/****************************************************************
-****************************************************************/
-
 NET_API_STATUS libnetapi_set_use_ccache(struct libnetapi_ctx *ctx);
 
 /****************************************************************