Changeset 335 for branches/samba-3.2.x/source/utils
- Timestamp:
- Sep 24, 2009, 9:15:13 AM (16 years ago)
- Location:
- branches/samba-3.2.x/source/utils
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.2.x/source/utils/net_ads.c
r232 r335 836 836 r->in.admin_password = net_prompt_pass(opt_user_name); 837 837 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 */ 838 841 r->in.unjoin_flags = WKSSVC_JOIN_FLAGS_JOIN_TYPE | 839 842 WKSSVC_JOIN_FLAGS_ACCOUNT_DELETE; 843 r->in.delete_machine_account = true; 840 844 841 845 werr = libnet_Unjoin(ctx, r); … … 847 851 } 848 852 849 if ( W_ERROR_IS_OK(werr)) {853 if (r->out.deleted_machine_account) { 850 854 d_printf("Deleted account for '%s' in realm '%s'\n", 851 855 r->in.machine_name, r->out.dns_domain_name); … … 861 865 } 862 866 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", 864 871 r->in.machine_name, r->out.dns_domain_name); 865 872 -
branches/samba-3.2.x/source/utils/net_rpc.c
r272 r335 5939 5939 union lsa_TrustedDomainInfo *info = NULL; 5940 5940 char *cleartextpwd = NULL; 5941 DATA_BLOB data ;5941 DATA_BLOB data = data_blob_null; 5942 5942 5943 5943 nt_status = rpccli_lsa_QueryTrustedDomainInfoBySid(pipe_hnd, mem_ctx,
Note:
See TracChangeset
for help on using the changeset viewer.