s3-netapi: remove pointless use_memory_krb5_ccache.
authorGünther Deschner <gd@samba.org>
Wed, 26 Oct 2011 11:44:49 +0000 (13:44 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 1 Nov 2011 18:45:44 +0000 (19:45 +0100)
This breaks the ABI.

Guenther

See bug #7465 for more details.
(cherry picked from commit 9378a904740ee456758e00acdd23e3016d4810ee)

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

index 34a88a9de57295423a955e68204f93d04208ca44..53d45fd1302e15aaec81f1c5a5241c2c16582f8c 100644 (file)
@@ -246,20 +246,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 069d526f4b55ce9020f03a5e38576486b47d27a6..8976ebd4ebddc74a13a0e1ea484dde610d14485f 100644 (file)
@@ -1319,7 +1319,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;
@@ -1377,11 +1376,6 @@ NET_API_STATUS libnetapi_set_use_ccache(struct libnetapi_ctx *ctx);
 /****************************************************************
 ****************************************************************/
 
-NET_API_STATUS libnetapi_set_use_memory_krb5_ccache(struct libnetapi_ctx *ctx);
-
-/****************************************************************
-****************************************************************/
-
 const char *libnetapi_errstr(NET_API_STATUS status);
 
 /****************************************************************