Ignore:
Timestamp:
May 27, 2009, 12:08:58 PM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.2 branch to 3.2.11

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

Legend:

Unmodified
Added
Removed
  • branches/samba-3.2.x/source/utils/net_rpc.c

    r233 r235  
    62816281        nt_status = rpccli_samr_Connect2(pipe_hnd, mem_ctx,
    62826282                                         pipe_hnd->cli->desthost,
    6283                                          SA_RIGHT_SAM_OPEN_DOMAIN,
     6283                                         SA_RIGHT_SAM_LOOKUP_DOMAIN,
    62846284                                         &connect_hnd);
    62856285        if (!NT_STATUS_IS_OK(nt_status)) {
  • branches/samba-3.2.x/source/utils/smbpasswd.c

    r232 r235  
    431431               
    432432                if((local_flags & LOCAL_SET_PASSWORD) && (new_passwd == NULL)) {
    433                         struct passwd *passwd = getpwnam_alloc(NULL, user_name);
    434 
    435                         if (!passwd) {
    436                                 fprintf(stderr, "Cannot locate Unix account for "
    437                                         "'%s'!\n", user_name);
    438                                 exit(1);
     433                        struct passwd *passwd;
     434
     435                        if (remote_machine == NULL) {
     436                                passwd = getpwnam_alloc(NULL, user_name);
     437
     438                                if (!passwd) {
     439                                        fprintf(stderr, "Cannot locate Unix account for "
     440                                                "'%s'!\n", user_name);
     441                                        exit(1);
     442                                }
     443                                TALLOC_FREE(passwd);
    439444                        }
    440                         TALLOC_FREE(passwd);
    441445
    442446                        new_passwd = prompt_for_new_password(stdin_passwd_get);
Note: See TracChangeset for help on using the changeset viewer.