s3-netapi: remove pointless use_memory_krb5_ccache.
authorGünther Deschner <gd@samba.org>
Wed, 26 Oct 2011 09:46:36 +0000 (11:46 +0200)
committerGünther Deschner <gd@samba.org>
Wed, 26 Oct 2011 11:23:58 +0000 (13:23 +0200)
This breaks the ABI.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Oct 26 13:23:58 CEST 2011 on sn-devel-104

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

index 9ed13fcc71c528136c58fc4a083ee9756e618959..34609ff13e7bf5526ec068db39a2d0904d3567f8 100644 (file)
@@ -277,20 +277,6 @@ NET_API_STATUS libnetapi_set_use_ccache(struct libnetapi_ctx *ctx)
        return NET_API_STATUS_SUCCESS;
 }
 
-/****************************************************************
-****************************************************************/
-
-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;
-}
-
 /****************************************************************
 Return a libnetapi error as a string, caller must free with NetApiBufferFree
 ****************************************************************/
index 2a523214155aa62b8dc47adb94735ae8c41c301c..620d8cf5910f7281cb960a461c506b740d379be5 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;
@@ -1411,11 +1410,6 @@ NET_API_STATUS libnetapi_set_use_kerberos(struct libnetapi_ctx *ctx);
 
 NET_API_STATUS libnetapi_set_use_ccache(struct libnetapi_ctx *ctx);
 
-/****************************************************************
-****************************************************************/
-
-NET_API_STATUS libnetapi_set_use_memory_krb5_ccache(struct libnetapi_ctx *ctx);
-
 /****************************************************************
 Return a specific libnetapi error as a string, caller must free with NetApiBufferFree
 ****************************************************************/