Ignore:
Timestamp:
Jul 1, 2011, 8:40:10 AM (14 years ago)
Author:
Herwig Bauernfeind
Message:

Samba 3.5: Update trunk to 3.5.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/source3/winbindd/winbindd_pam.c

    r429 r590  
    802802{
    803803        struct winbindd_domain *domain;
    804         fstring name_domain, name_user, mapped_user;
     804        fstring name_domain, name_user;
    805805        char *mapped = NULL;
    806806        NTSTATUS result;
     
    829829                                               &mapped);
    830830
    831         /* If the name normalization didnt' actually do anything,
    832            just use the original name */
    833 
    834         if (NT_STATUS_IS_OK(name_map_status)
    835             ||NT_STATUS_EQUAL(name_map_status, NT_STATUS_FILE_RENAMED)) {
    836                 fstrcpy(mapped_user, mapped);
    837         } else {
    838                 fstrcpy(mapped_user, state->request->data.auth.user);
    839         }
    840 
    841         if (!canonicalize_username(mapped_user, name_domain, name_user)) {
     831        /* Update the auth name if we did any mapping */
     832
     833        if (NT_STATUS_IS_OK(name_map_status) ||
     834            NT_STATUS_EQUAL(name_map_status, NT_STATUS_FILE_RENAMED))
     835        {
     836                fstrcpy(state->request->data.auth.user, mapped);
     837        }
     838
     839        if (!canonicalize_username(state->request->data.auth.user, name_domain, name_user)) {
    842840                result = NT_STATUS_NO_SUCH_USER;
    843841                goto done;
Note: See TracChangeset for help on using the changeset viewer.