Ignore:
Timestamp:
Aug 4, 2009, 8:51:22 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.3 to 3.3.7

Location:
branches/samba-3.3.x/source/utils
Files:
2 edited

Legend:

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

    r206 r309  
    902902        r->in.admin_password    = net_prompt_pass(c, c->opt_user_name);
    903903        r->in.modify_config     = lp_config_backend_is_registry();
     904
     905        /* Try to delete it, but if that fails, disable it.  The
     906           WKSSVC_JOIN_FLAGS_ACCOUNT_DELETE really means "disable */
    904907        r->in.unjoin_flags      = WKSSVC_JOIN_FLAGS_JOIN_TYPE |
    905908                                  WKSSVC_JOIN_FLAGS_ACCOUNT_DELETE;
     909        r->in.delete_machine_account = true;
    906910
    907911        werr = libnet_Unjoin(ctx, r);
     
    913917        }
    914918
    915         if (W_ERROR_IS_OK(werr)) {
     919        if (r->out.deleted_machine_account) {
    916920                d_printf("Deleted account for '%s' in realm '%s'\n",
    917921                        r->in.machine_name, r->out.dns_domain_name);
     
    927931        }
    928932
    929         d_fprintf(stderr, "Failed to disable machine account for '%s' in realm '%s'\n",
     933        /* Based on what we requseted, we shouldn't get here, but if
     934           we did, it means the secrets were removed, and therefore
     935           we have left the domain */
     936        d_fprintf(stderr, "Machine '%s' Left domain '%s'\n",
    930937                  r->in.machine_name, r->out.dns_domain_name);
    931938
  • branches/samba-3.3.x/source/utils/net_rpc.c

    r224 r309  
    57645764        char *cleartextpwd = NULL;
    57655765        uint8_t nt_hash[16];
    5766         DATA_BLOB data;
     5766        DATA_BLOB data = data_blob_null;
    57675767
    57685768        nt_status = rpccli_lsa_QueryTrustedDomainInfoBySid(pipe_hnd, mem_ctx,
Note: See TracChangeset for help on using the changeset viewer.