Changeset 221 for branches/samba-3.3.x/source/winbindd
- Timestamp:
- May 24, 2009, 7:17:10 AM (16 years ago)
- Location:
- branches/samba-3.3.x/source/winbindd
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.3.x/source/winbindd/winbindd.c
r206 r221 260 260 /* parent */ 261 261 DEBUG(5, ("winbind_msg_validate_cache: child created with " 262 "pid %d.\n", child_pid));262 "pid %d.\n", (int)child_pid)); 263 263 return; 264 264 } -
branches/samba-3.3.x/source/winbindd/winbindd_cache.c
r206 r221 2625 2625 2626 2626 DEBUG(10, ("Storing response for pid %d, len %d\n", 2627 pid, response->length));2628 2629 fstr_sprintf(key_str, "DR/%d", pid);2627 (int)pid, response->length)); 2628 2629 fstr_sprintf(key_str, "DR/%d", (int)pid); 2630 2630 if (tdb_store(wcache->tdb, string_tdb_data(key_str), 2631 2631 make_tdb_data((uint8 *)response, sizeof(*response)), … … 2641 2641 (int)(response->length - sizeof(*response)))); 2642 2642 2643 fstr_sprintf(key_str, "DE/%d", pid);2643 fstr_sprintf(key_str, "DE/%d", (int)pid); 2644 2644 if (tdb_store(wcache->tdb, string_tdb_data(key_str), 2645 2645 make_tdb_data((uint8 *)response->extra_data.data, … … 2651 2651 * contain a main record with wrong dangling extra data */ 2652 2652 2653 fstr_sprintf(key_str, "DR/%d", pid);2653 fstr_sprintf(key_str, "DR/%d", (int)pid); 2654 2654 tdb_delete(wcache->tdb, string_tdb_data(key_str)); 2655 2655 … … 2665 2665 return false; 2666 2666 2667 DEBUG(10, ("Retrieving response for pid %d\n", pid));2668 2669 fstr_sprintf(key_str, "DR/%d", pid);2667 DEBUG(10, ("Retrieving response for pid %d\n", (int)pid)); 2668 2669 fstr_sprintf(key_str, "DR/%d", (int)pid); 2670 2670 data = tdb_fetch(wcache->tdb, string_tdb_data(key_str)); 2671 2671 … … 2689 2689 (int)(response->length - sizeof(*response)))); 2690 2690 2691 fstr_sprintf(key_str, "DE/%d", pid);2691 fstr_sprintf(key_str, "DE/%d", (int)pid); 2692 2692 data = tdb_fetch(wcache->tdb, string_tdb_data(key_str)); 2693 2693 … … 2716 2716 return; 2717 2717 2718 fstr_sprintf(key_str, "DR/%d", pid);2718 fstr_sprintf(key_str, "DR/%d", (int)pid); 2719 2719 tdb_delete(wcache->tdb, string_tdb_data(key_str)); 2720 2720 2721 fstr_sprintf(key_str, "DE/%d", pid);2721 fstr_sprintf(key_str, "DE/%d", (int)pid); 2722 2722 tdb_delete(wcache->tdb, string_tdb_data(key_str)); 2723 2723 -
branches/samba-3.3.x/source/winbindd/winbindd_dual.c
r206 r221 184 184 DEBUG(0,("async_request_timeout_handler: child pid %u is not responding. " 185 185 "Closing connection to it.\n", 186 state->child_pid ));186 (unsigned int)state->child_pid )); 187 187 188 188 /* Deal with the reply - set to error. */ -
branches/samba-3.3.x/source/winbindd/winbindd_group.c
r206 r221 1354 1354 sid_append_rid(&group_sid, name_list[ent->sam_entry_index].rid); 1355 1355 1356 if (!NT_STATUS_IS_OK(idmap_sid_to_gid(domain->name, &group_sid, 1357 &group_gid))) { 1356 if (!NT_STATUS_IS_OK(idmap_sid_to_gid(domain->have_idmap_config 1357 ? domain->name : "", 1358 &group_sid, &group_gid))) 1359 { 1358 1360 union unid_t id; 1359 1361 enum lsa_SidType type; -
branches/samba-3.3.x/source/winbindd/winbindd_user.c
r206 r221 81 81 return False; 82 82 83 domain = find_domain_from_name_noinit(dom_name); 84 if (domain == NULL) { 85 DEBUG(5,("winbindd_fill_pwent: Failed to find domain for %s.\n", 86 dom_name)); 87 nt_status = NT_STATUS_NO_SUCH_DOMAIN; 88 return false; 89 } 90 83 91 /* Resolve the uid number */ 84 92 85 if (!NT_STATUS_IS_OK(idmap_sid_to_uid(dom_name, user_sid, 93 if (!NT_STATUS_IS_OK(idmap_sid_to_uid(domain->have_idmap_config ? 94 dom_name : "", user_sid, 86 95 &pw->pw_uid))) { 87 96 DEBUG(1, ("error getting user id for sid %s\n", … … 92 101 /* Resolve the gid number */ 93 102 94 if (!NT_STATUS_IS_OK(idmap_sid_to_gid(dom_name, group_sid, 103 if (!NT_STATUS_IS_OK(idmap_sid_to_gid(domain->have_idmap_config ? 104 dom_name : "", group_sid, 95 105 &pw->pw_gid))) { 96 106 DEBUG(1, ("error getting group id for sid %s\n", … … 99 109 } 100 110 111 /* Username */ 112 101 113 strlower_m(user_name); 102 103 /* Username */ 104 105 domain = find_domain_from_name_noinit(dom_name); 106 if (domain) { 107 nt_status = normalize_name_map(ctx, domain, user_name, 108 &mapped_name); 109 } else { 110 DEBUG(5,("winbindd_fill_pwent: Failed to find domain for %s. " 111 "Disabling name alias support\n", dom_name)); 112 nt_status = NT_STATUS_NO_SUCH_DOMAIN; 113 } 114 nt_status = normalize_name_map(ctx, domain, user_name, &mapped_name); 114 115 115 116 /* Basic removal of whitespace */
Note:
See TracChangeset
for help on using the changeset viewer.