Changeset 370 for branches/samba-3.3.x/source/winbindd/winbindd_pam.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/winbindd/winbindd_pam.c
r223 r370 25 25 #include "includes.h" 26 26 #include "winbindd.h" 27 #include "smb_krb5.h" 28 27 29 #undef DBGC_CLASS 28 30 #define DBGC_CLASS DBGC_WINBIND … … 811 813 { 812 814 struct winbindd_domain *domain; 813 fstring name_domain, name_user ;814 char *mapped _user= NULL;815 fstring name_domain, name_user, mapped_user; 816 char *mapped = NULL; 815 817 NTSTATUS result; 816 818 NTSTATUS name_map_status = NT_STATUS_UNSUCCESSFUL; … … 836 838 name_map_status = normalize_name_unmap(state->mem_ctx, 837 839 state->request.data.auth.user, 838 &mapped _user);840 &mapped); 839 841 840 842 /* If the name normalization didnt' actually do anything, 841 843 just use the original name */ 842 844 843 if (!NT_STATUS_IS_OK(name_map_status) && 844 !NT_STATUS_EQUAL(name_map_status, NT_STATUS_FILE_RENAMED)) 845 { 846 mapped_user = state->request.data.auth.user; 845 if (NT_STATUS_IS_OK(name_map_status) 846 ||NT_STATUS_EQUAL(name_map_status, NT_STATUS_FILE_RENAMED)) { 847 fstrcpy(mapped_user, mapped); 848 } else { 849 fstrcpy(mapped_user, state->request.data.auth.user); 847 850 } 848 851
Note:
See TracChangeset
for help on using the changeset viewer.