Changeset 370 for branches/samba-3.3.x/source/winbindd
- Timestamp:
- Jan 15, 2010, 8:23:30 AM (16 years ago)
- Location:
- branches/samba-3.3.x/source/winbindd
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.3.x/source/winbindd/idmap_ldap.c
r274 r370 854 854 CHECK_ALLOC_DONE(ctx->url); 855 855 856 trim_char(ctx->url, '\"', '\"'); 857 856 858 tmp = lp_parm_const_string(-1, config_option, "ldap_base_dn", NULL); 857 859 if ( ! tmp || ! *tmp) { -
branches/samba-3.3.x/source/winbindd/winbindd_cred_cache.c
r206 r370 24 24 #include "includes.h" 25 25 #include "winbindd.h" 26 #include "smb_krb5.h" 27 26 28 #undef DBGC_CLASS 27 29 #define DBGC_CLASS DBGC_WINBIND -
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 -
branches/samba-3.3.x/source/winbindd/winbindd_rpc.c
r342 r370 788 788 return result; 789 789 790 *num_names = rids->count; 791 rid_mem = rids->rids; 792 793 if (!*num_names) { 790 if (!rids || !rids->count) { 794 791 names = NULL; 795 792 name_types = NULL; … … 797 794 return NT_STATUS_OK; 798 795 } 796 797 *num_names = rids->count; 798 rid_mem = rids->rids; 799 799 800 800 /* Step #2: Convert list of rids into list of usernames. Do this
Note:
See TracChangeset
for help on using the changeset viewer.