Changeset 309 for branches/samba-3.3.x/source/utils
- Timestamp:
- Aug 4, 2009, 8:51:22 AM (16 years ago)
- 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 902 902 r->in.admin_password = net_prompt_pass(c, c->opt_user_name); 903 903 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 */ 904 907 r->in.unjoin_flags = WKSSVC_JOIN_FLAGS_JOIN_TYPE | 905 908 WKSSVC_JOIN_FLAGS_ACCOUNT_DELETE; 909 r->in.delete_machine_account = true; 906 910 907 911 werr = libnet_Unjoin(ctx, r); … … 913 917 } 914 918 915 if ( W_ERROR_IS_OK(werr)) {919 if (r->out.deleted_machine_account) { 916 920 d_printf("Deleted account for '%s' in realm '%s'\n", 917 921 r->in.machine_name, r->out.dns_domain_name); … … 927 931 } 928 932 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", 930 937 r->in.machine_name, r->out.dns_domain_name); 931 938 -
branches/samba-3.3.x/source/utils/net_rpc.c
r224 r309 5764 5764 char *cleartextpwd = NULL; 5765 5765 uint8_t nt_hash[16]; 5766 DATA_BLOB data ;5766 DATA_BLOB data = data_blob_null; 5767 5767 5768 5768 nt_status = rpccli_lsa_QueryTrustedDomainInfoBySid(pipe_hnd, mem_ctx,
Note:
See TracChangeset
for help on using the changeset viewer.