Ignore:
Timestamp:
May 24, 2009, 7:17:10 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update Samba 3.3 to 3.3.1

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  
    260260                /* parent */
    261261                DEBUG(5, ("winbind_msg_validate_cache: child created with "
    262                           "pid %d.\n", child_pid));
     262                          "pid %d.\n", (int)child_pid));
    263263                return;
    264264        }
  • branches/samba-3.3.x/source/winbindd/winbindd_cache.c

    r206 r221  
    26252625
    26262626        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);
    26302630        if (tdb_store(wcache->tdb, string_tdb_data(key_str),
    26312631                      make_tdb_data((uint8 *)response, sizeof(*response)),
     
    26412641                   (int)(response->length - sizeof(*response))));
    26422642
    2643         fstr_sprintf(key_str, "DE/%d", pid);
     2643        fstr_sprintf(key_str, "DE/%d", (int)pid);
    26442644        if (tdb_store(wcache->tdb, string_tdb_data(key_str),
    26452645                      make_tdb_data((uint8 *)response->extra_data.data,
     
    26512651         * contain a main record with wrong dangling extra data */
    26522652
    2653         fstr_sprintf(key_str, "DR/%d", pid);
     2653        fstr_sprintf(key_str, "DR/%d", (int)pid);
    26542654        tdb_delete(wcache->tdb, string_tdb_data(key_str));
    26552655
     
    26652665                return false;
    26662666
    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);
    26702670        data = tdb_fetch(wcache->tdb, string_tdb_data(key_str));
    26712671
     
    26892689                   (int)(response->length - sizeof(*response))));
    26902690
    2691         fstr_sprintf(key_str, "DE/%d", pid);
     2691        fstr_sprintf(key_str, "DE/%d", (int)pid);
    26922692        data = tdb_fetch(wcache->tdb, string_tdb_data(key_str));
    26932693
     
    27162716                return;
    27172717
    2718         fstr_sprintf(key_str, "DR/%d", pid);
     2718        fstr_sprintf(key_str, "DR/%d", (int)pid);
    27192719        tdb_delete(wcache->tdb, string_tdb_data(key_str));
    27202720
    2721         fstr_sprintf(key_str, "DE/%d", pid);
     2721        fstr_sprintf(key_str, "DE/%d", (int)pid);
    27222722        tdb_delete(wcache->tdb, string_tdb_data(key_str));
    27232723
  • branches/samba-3.3.x/source/winbindd/winbindd_dual.c

    r206 r221  
    184184        DEBUG(0,("async_request_timeout_handler: child pid %u is not responding. "
    185185                "Closing connection to it.\n",
    186                 state->child_pid ));
     186                (unsigned int)state->child_pid ));
    187187
    188188        /* Deal with the reply - set to error. */
  • branches/samba-3.3.x/source/winbindd/winbindd_group.c

    r206 r221  
    13541354                sid_append_rid(&group_sid, name_list[ent->sam_entry_index].rid);
    13551355
    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                {
    13581360                        union unid_t id;
    13591361                        enum lsa_SidType type;
  • branches/samba-3.3.x/source/winbindd/winbindd_user.c

    r206 r221  
    8181                return False;
    8282
     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
    8391        /* Resolve the uid number */
    8492
    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,
    8695                                              &pw->pw_uid))) {
    8796                DEBUG(1, ("error getting user id for sid %s\n",
     
    92101        /* Resolve the gid number */
    93102
    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,
    95105                                              &pw->pw_gid))) {
    96106                DEBUG(1, ("error getting group id for sid %s\n",
     
    99109        }
    100110
     111        /* Username */
     112
    101113        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);
    114115
    115116        /* Basic removal of whitespace */
Note: See TracChangeset for help on using the changeset viewer.