Changeset 590 for trunk/server/source3/winbindd/winbindd_pam.c
- Timestamp:
- Jul 1, 2011, 8:40:10 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/source3/winbindd/winbindd_pam.c
r429 r590 802 802 { 803 803 struct winbindd_domain *domain; 804 fstring name_domain, name_user , mapped_user;804 fstring name_domain, name_user; 805 805 char *mapped = NULL; 806 806 NTSTATUS result; … … 829 829 &mapped); 830 830 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)) { 842 840 result = NT_STATUS_NO_SUCH_USER; 843 841 goto done;
Note:
See TracChangeset
for help on using the changeset viewer.