Changeset 233 for branches/samba-3.2.x/source/utils
- Timestamp:
- May 27, 2009, 11:39:15 AM (16 years ago)
- Location:
- branches/samba-3.2.x/source/utils
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.2.x/source/utils/net_conf.c
r133 r233 550 550 } 551 551 552 if (getpwnam(sharename)) {553 d_fprintf(stderr, "ERROR: share name %s is already a valid "554 "system user name.\n", sharename);555 goto done;556 }557 558 552 if (strequal(sharename, GLOBAL_NAME)) { 559 553 d_fprintf(stderr, -
branches/samba-3.2.x/source/utils/net_rpc.c
r228 r233 4607 4607 int ret; 4608 4608 bool r; 4609 ENUM_HND hnd;4610 4609 uint32 i; 4611 4610 FILE *f; … … 4644 4643 for (i=0; i<num_tokens; i++) 4645 4644 collect_alias_memberships(&tokens[i].token); 4646 4647 init_enum_hnd(&hnd, 0);4648 4645 4649 4646 share_list.num_shares = 0; -
branches/samba-3.2.x/source/utils/net_rpc_join.c
r232 r233 482 482 int net_rpc_testjoin(int argc, const char **argv) 483 483 { 484 char *domain = smb_xstrdup(opt_target_workgroup);485 484 NTSTATUS nt_status; 486 485 487 486 /* Display success or failure */ 488 nt_status = net_rpc_join_ok( domain, NULL, NULL);487 nt_status = net_rpc_join_ok(opt_target_workgroup, NULL, NULL); 489 488 if (!NT_STATUS_IS_OK(nt_status)) { 490 489 fprintf(stderr,"Join to domain '%s' is not valid: %s\n", 491 domain, nt_errstr(nt_status)); 492 free(domain); 490 opt_target_workgroup, nt_errstr(nt_status)); 493 491 return -1; 494 492 } 495 493 496 printf("Join to '%s' is OK\n",domain); 497 free(domain); 494 printf("Join to '%s' is OK\n",opt_target_workgroup); 498 495 return 0; 499 496 } -
branches/samba-3.2.x/source/utils/net_rpc_samsync.c
r228 r233 2254 2254 } /* end of for loop */ 2255 2255 2256 /* Increment sync_context */2257 sync_context += 1;2258 2259 2256 } while (NT_STATUS_EQUAL(result, STATUS_MORE_ENTRIES)); 2260 2257 -
branches/samba-3.2.x/source/utils/ntlm_auth.c
r228 r233 524 524 static const char zeros[16] = { 0, }; 525 525 NTSTATUS nt_status; 526 char *error_string ;526 char *error_string = NULL; 527 527 uint8 lm_key[8]; 528 528 uint8 user_sess_key[16]; 529 char *unix_name ;529 char *unix_name = NULL; 530 530 531 531 nt_status = contact_winbind_auth_crap(ntlmssp_state->user, ntlmssp_state->domain, … … 549 549 } 550 550 ntlmssp_state->auth_context = talloc_strdup(ntlmssp_state->mem_ctx, unix_name); 551 SAFE_FREE(unix_name);552 551 } else { 553 552 DEBUG(NT_STATUS_EQUAL(nt_status, NT_STATUS_ACCESS_DENIED) ? 0 : 3, … … 558 557 ntlmssp_state->auth_context = NULL; 559 558 } 559 560 SAFE_FREE(error_string); 561 SAFE_FREE(unix_name); 560 562 return nt_status; 561 563 } … … 1815 1817 x_fprintf(x_stdout, "Authenticated: No\n"); 1816 1818 x_fprintf(x_stdout, "Authentication-Error: %s\n.\n", error_string); 1817 SAFE_FREE(error_string);1818 1819 } else { 1819 1820 static char zeros[16]; … … 1843 1844 } 1844 1845 } 1846 SAFE_FREE(error_string); 1845 1847 } 1846 1848 /* clear out the state */
Note:
See TracChangeset
for help on using the changeset viewer.