Changeset 370 for branches/samba-3.3.x/source/utils/net_rpc.c
- Timestamp:
- Jan 15, 2010, 8:23:30 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.3.x/source/utils/net_rpc.c
r342 r370 5985 5985 struct lsa_DomainList dom_list; 5986 5986 fstring pdc_name; 5987 bool found_domain; 5987 5988 5988 5989 /* trusting domains listing variables */ … … 6069 6070 d_printf("Trusted domains list:\n\n"); 6070 6071 6072 found_domain = false; 6073 6071 6074 do { 6072 6075 nt_status = rpccli_lsa_EnumTrustDom(pipe_hnd, mem_ctx, … … 6086 6089 print_trusted_domain(dom_list.domains[i].sid, 6087 6090 dom_list.domains[i].name.string); 6091 found_domain = true; 6088 6092 }; 6089 6093 6090 /*6091 * in case of no trusted domains say something rather6092 * than just display blank line6093 */6094 if (!dom_list.count) d_printf("none\n");6095 6096 6094 } while (NT_STATUS_EQUAL(nt_status, STATUS_MORE_ENTRIES)); 6095 6096 /* 6097 * in case of no trusted domains say something rather 6098 * than just display blank line 6099 */ 6100 if (!found_domain) { 6101 d_printf("none\n"); 6102 } 6097 6103 6098 6104 /* close this connection before doing next one */ … … 6158 6164 */ 6159 6165 6166 found_domain = false; 6167 6160 6168 enum_ctx = 0; /* reset enumeration context from last enumeration */ 6161 6169 do { … … 6180 6188 char *str = CONST_DISCARD(char *, trusts->entries[i].name.string); 6181 6189 6190 found_domain = true; 6191 6182 6192 /* 6183 6193 * get each single domain's sid (do we _really_ need this ?): … … 6225 6235 }; 6226 6236 6227 if (!num_domains) d_printf("none\n");6228 6229 6237 } while (NT_STATUS_EQUAL(nt_status, STATUS_MORE_ENTRIES)); 6238 6239 if (!found_domain) { 6240 d_printf("none\n"); 6241 } 6230 6242 6231 6243 /* close opened samr and domain policy handles */
Note:
See TracChangeset
for help on using the changeset viewer.