Ignore:
Timestamp:
Nov 12, 2012, 4:35:55 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server 3.5: update branche to 3.5.12

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.5.x/source3/libnet/libnet_join.c

    r599 r732  
    16211621static int libnet_destroy_JoinCtx(struct libnet_JoinCtx *r)
    16221622{
    1623         const char *krb5_cc_env = NULL;
    1624 
    16251623        if (r->in.ads) {
    16261624                ads_destroy(&r->in.ads);
    16271625        }
    16281626
    1629         krb5_cc_env = getenv(KRB5_ENV_CCNAME);
    1630         if (krb5_cc_env && StrCaseCmp(krb5_cc_env, "MEMORY:libnetjoin")) {
    1631                 unsetenv(KRB5_ENV_CCNAME);
    1632         }
    1633 
    16341627        return 0;
    16351628}
     
    16401633static int libnet_destroy_UnjoinCtx(struct libnet_UnjoinCtx *r)
    16411634{
    1642         const char *krb5_cc_env = NULL;
    1643 
    16441635        if (r->in.ads) {
    16451636                ads_destroy(&r->in.ads);
    16461637        }
    16471638
    1648         krb5_cc_env = getenv(KRB5_ENV_CCNAME);
    1649         if (krb5_cc_env && StrCaseCmp(krb5_cc_env, "MEMORY:libnetjoin")) {
    1650                 unsetenv(KRB5_ENV_CCNAME);
    1651         }
    1652 
    16531639        return 0;
    16541640}
     
    16611647{
    16621648        struct libnet_JoinCtx *ctx;
    1663         const char *krb5_cc_env = NULL;
    16641649
    16651650        ctx = talloc_zero(mem_ctx, struct libnet_JoinCtx);
     
    16731658        W_ERROR_HAVE_NO_MEMORY(ctx->in.machine_name);
    16741659
    1675         krb5_cc_env = getenv(KRB5_ENV_CCNAME);
    1676         if (!krb5_cc_env || (strlen(krb5_cc_env) == 0)) {
    1677                 krb5_cc_env = talloc_strdup(mem_ctx, "MEMORY:libnetjoin");
    1678                 W_ERROR_HAVE_NO_MEMORY(krb5_cc_env);
    1679                 setenv(KRB5_ENV_CCNAME, krb5_cc_env, 1);
    1680         }
    1681 
    16821660        ctx->in.secure_channel_type = SEC_CHAN_WKSTA;
    16831661
     
    16941672{
    16951673        struct libnet_UnjoinCtx *ctx;
    1696         const char *krb5_cc_env = NULL;
    16971674
    16981675        ctx = talloc_zero(mem_ctx, struct libnet_UnjoinCtx);
     
    17051682        ctx->in.machine_name = talloc_strdup(mem_ctx, global_myname());
    17061683        W_ERROR_HAVE_NO_MEMORY(ctx->in.machine_name);
    1707 
    1708         krb5_cc_env = getenv(KRB5_ENV_CCNAME);
    1709         if (!krb5_cc_env || (strlen(krb5_cc_env) == 0)) {
    1710                 krb5_cc_env = talloc_strdup(mem_ctx, "MEMORY:libnetjoin");
    1711                 W_ERROR_HAVE_NO_MEMORY(krb5_cc_env);
    1712                 setenv(KRB5_ENV_CCNAME, krb5_cc_env, 1);
    1713         }
    17141684
    17151685        *r = ctx;
Note: See TracChangeset for help on using the changeset viewer.