Ignore:
Timestamp:
Nov 29, 2012, 1:59:04 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/source3/libnet/libnet_join.c

    r745 r751  
    3636#include "rpc_client/init_lsa.h"
    3737#include "rpc_client/cli_pipe.h"
    38 #include "krb5_env.h"
    3938#include "../libcli/security/security.h"
    4039#include "passdb.h"
     
    17651764static int libnet_destroy_JoinCtx(struct libnet_JoinCtx *r)
    17661765{
    1767         const char *krb5_cc_env = NULL;
    1768 
    17691766        if (r->in.ads) {
    17701767                ads_destroy(&r->in.ads);
    17711768        }
    17721769
    1773         krb5_cc_env = getenv(KRB5_ENV_CCNAME);
    1774         if (krb5_cc_env && StrCaseCmp(krb5_cc_env, "MEMORY:libnetjoin")) {
    1775                 unsetenv(KRB5_ENV_CCNAME);
    1776         }
    1777 
    17781770        return 0;
    17791771}
     
    17841776static int libnet_destroy_UnjoinCtx(struct libnet_UnjoinCtx *r)
    17851777{
    1786         const char *krb5_cc_env = NULL;
    1787 
    17881778        if (r->in.ads) {
    17891779                ads_destroy(&r->in.ads);
    17901780        }
    17911781
    1792         krb5_cc_env = getenv(KRB5_ENV_CCNAME);
    1793         if (krb5_cc_env && StrCaseCmp(krb5_cc_env, "MEMORY:libnetjoin")) {
    1794                 unsetenv(KRB5_ENV_CCNAME);
    1795         }
    1796 
    17971782        return 0;
    17981783}
     
    18051790{
    18061791        struct libnet_JoinCtx *ctx;
    1807         const char *krb5_cc_env = NULL;
    18081792
    18091793        ctx = talloc_zero(mem_ctx, struct libnet_JoinCtx);
     
    18171801        W_ERROR_HAVE_NO_MEMORY(ctx->in.machine_name);
    18181802
    1819         krb5_cc_env = getenv(KRB5_ENV_CCNAME);
    1820         if (!krb5_cc_env || (strlen(krb5_cc_env) == 0)) {
    1821                 krb5_cc_env = talloc_strdup(mem_ctx, "MEMORY:libnetjoin");
    1822                 W_ERROR_HAVE_NO_MEMORY(krb5_cc_env);
    1823                 setenv(KRB5_ENV_CCNAME, krb5_cc_env, 1);
    1824         }
    1825 
    18261803        ctx->in.secure_channel_type = SEC_CHAN_WKSTA;
    18271804
     
    18381815{
    18391816        struct libnet_UnjoinCtx *ctx;
    1840         const char *krb5_cc_env = NULL;
    18411817
    18421818        ctx = talloc_zero(mem_ctx, struct libnet_UnjoinCtx);
     
    18491825        ctx->in.machine_name = talloc_strdup(mem_ctx, global_myname());
    18501826        W_ERROR_HAVE_NO_MEMORY(ctx->in.machine_name);
    1851 
    1852         krb5_cc_env = getenv(KRB5_ENV_CCNAME);
    1853         if (!krb5_cc_env || (strlen(krb5_cc_env) == 0)) {
    1854                 krb5_cc_env = talloc_strdup(mem_ctx, "MEMORY:libnetjoin");
    1855                 W_ERROR_HAVE_NO_MEMORY(krb5_cc_env);
    1856                 setenv(KRB5_ENV_CCNAME, krb5_cc_env, 1);
    1857         }
    18581827
    18591828        *r = ctx;
Note: See TracChangeset for help on using the changeset viewer.