Ignore:
Timestamp:
Sep 24, 2009, 9:15:13 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.2 to 3.2.14 (final)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.2.x/source/utils/net_ads.c

    r232 r335  
    836836        r->in.admin_password    = net_prompt_pass(opt_user_name);
    837837        r->in.modify_config     = lp_config_backend_is_registry();
     838
     839        /* Try to delete it, but if that fails, disable it.  The
     840           WKSSVC_JOIN_FLAGS_ACCOUNT_DELETE really means "disable */
    838841        r->in.unjoin_flags      = WKSSVC_JOIN_FLAGS_JOIN_TYPE |
    839842                                  WKSSVC_JOIN_FLAGS_ACCOUNT_DELETE;
     843        r->in.delete_machine_account = true;
    840844
    841845        werr = libnet_Unjoin(ctx, r);
     
    847851        }
    848852
    849         if (W_ERROR_IS_OK(werr)) {
     853        if (r->out.deleted_machine_account) {
    850854                d_printf("Deleted account for '%s' in realm '%s'\n",
    851855                        r->in.machine_name, r->out.dns_domain_name);
     
    861865        }
    862866
    863         d_fprintf(stderr, "Failed to disable machine account for '%s' in realm '%s'\n",
     867        /* Based on what we requseted, we shouldn't get here, but if
     868           we did, it means the secrets were removed, and therefore
     869           we have left the domain */
     870        d_fprintf(stderr, "Machine '%s' Left domain '%s'\n",
    864871                  r->in.machine_name, r->out.dns_domain_name);
    865872
Note: See TracChangeset for help on using the changeset viewer.