Ignore:
Timestamp:
Nov 12, 2012, 4:35:55 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server 3.5: update branche to 3.5.12

Location:
branches/samba-3.5.x/source3/winbindd
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.5.x/source3/winbindd/wb_group_members.c

    r414 r732  
    214214
    215215        if (!NT_STATUS_IS_OK(status)) {
    216                 tevent_req_nterror(req, status);
    217                 return;
     216                if (!NT_STATUS_EQUAL(
     217                            status, NT_STATUS_TRUSTED_DOMAIN_FAILURE)) {
     218                        tevent_req_nterror(req, status);
     219                        return;
     220                }
     221                num_members = 0;
    218222        }
    219223
  • branches/samba-3.5.x/source3/winbindd/winbindd.c

    r599 r732  
    904904                                          struct winbindd_listen_state);
    905905
    906         while (winbindd_num_clients() >
    907                WINBINDD_MAX_SIMULTANEOUS_CLIENTS - 1) {
     906        while (winbindd_num_clients() > lp_winbind_max_clients() - 1) {
    908907                DEBUG(5,("winbindd: Exceeding %d client "
    909908                         "connections, removing idle "
    910                          "connection.\n",
    911                          WINBINDD_MAX_SIMULTANEOUS_CLIENTS));
     909                         "connection.\n", lp_winbind_max_clients()));
    912910                if (!remove_idle_client()) {
    913911                        DEBUG(0,("winbindd: Exceeding %d "
    914912                                 "client connections, no idle "
    915913                                 "connection found\n",
    916                                  WINBINDD_MAX_SIMULTANEOUS_CLIENTS));
     914                                 lp_winbind_max_clients()));
    917915                        break;
    918916                }
  • branches/samba-3.5.x/source3/winbindd/winbindd_dual.c

    r593 r732  
    135135        struct tevent_req *subreq;
    136136
    137         if ((state->child->pid == 0) && (!fork_domain_child(state->child))) {
     137        if ((state->child->sock == -1) && (!fork_domain_child(state->child))) {
    138138                tevent_req_error(req, errno);
    139139                return;
     
    165165        TALLOC_FREE(subreq);
    166166        if (ret == -1) {
     167                /*
     168                 * The basic parent/child communication broke, close
     169                 * our socket
     170                 */
     171                close(state->child->sock);
     172                state->child->sock = -1;
    167173                tevent_req_error(req, err);
    168174                return;
     
    503509        }
    504510
     511        child->sock = -1;
    505512        child->domain = domain;
    506513        child->table = table;
     
    531538
    532539        DLIST_REMOVE(children, child);
    533 
    534         close(child->sock);
    535         child->sock = -1;
    536540        child->pid = 0;
    537541}
  • branches/samba-3.5.x/source3/winbindd/winbindd_pam.c

    r599 r732  
    13831383                                  &my_info3);
    13841384
    1385                 if ((NT_STATUS_V(result) == DCERPC_FAULT_OP_RNG_ERROR)
    1386                     && contact_domain->can_do_samlogon_ex) {
    1387                         DEBUG(3, ("Got a DC that can not do NetSamLogonEx, "
    1388                                   "retrying with NetSamLogon\n"));
    1389                         contact_domain->can_do_samlogon_ex = false;
     1385                if (NT_STATUS_V(result) == DCERPC_FAULT_OP_RNG_ERROR) {
     1386
    13901387                        /*
    13911388                         * It's likely that the server also does not support
     
    13931390                         */
    13941391                        domain->can_do_validation6 = false;
    1395                         retry = true;
    1396                         continue;
     1392
     1393                        if (contact_domain->can_do_samlogon_ex) {
     1394                                DEBUG(3, ("Got a DC that can not do NetSamLogonEx, "
     1395                                          "retrying with NetSamLogon\n"));
     1396                                contact_domain->can_do_samlogon_ex = false;
     1397                                retry = true;
     1398                                continue;
     1399                        }
     1400
     1401                        /* Got DCERPC_FAULT_OP_RNG_ERROR for SamLogon
     1402                         * (no Ex). This happens against old Samba
     1403                         * DCs. Drop the connection.
     1404                         */
     1405                        invalidate_cm_connection(&contact_domain->conn);
     1406                        result = NT_STATUS_LOGON_FAILURE;
     1407                        break;
    13971408                }
    13981409
     
    19972008                                  &info3);
    19982009
    1999                 if ((NT_STATUS_V(result) == DCERPC_FAULT_OP_RNG_ERROR)
    2000                     && contact_domain->can_do_samlogon_ex) {
    2001                         DEBUG(3, ("Got a DC that can not do NetSamLogonEx, "
    2002                                   "retrying with NetSamLogon\n"));
    2003                         contact_domain->can_do_samlogon_ex = false;
     2010                if (NT_STATUS_V(result) == DCERPC_FAULT_OP_RNG_ERROR) {
     2011
    20042012                        /*
    20052013                         * It's likely that the server also does not support
     
    20072015                         */
    20082016                        domain->can_do_validation6 = false;
    2009                         retry = true;
    2010                         continue;
     2017
     2018                        if (contact_domain->can_do_samlogon_ex) {
     2019                                DEBUG(3, ("Got a DC that can not do NetSamLogonEx, "
     2020                                          "retrying with NetSamLogon\n"));
     2021                                contact_domain->can_do_samlogon_ex = false;
     2022                                retry = true;
     2023                                continue;
     2024                        }
     2025
     2026                        /* Got DCERPC_FAULT_OP_RNG_ERROR for SamLogon
     2027                         * (no Ex). This happens against old Samba
     2028                         * DCs. Drop the connection.
     2029                         */
     2030                        invalidate_cm_connection(&contact_domain->conn);
     2031                        result = NT_STATUS_LOGON_FAILURE;
     2032                        break;
    20112033                }
    20122034
Note: See TracChangeset for help on using the changeset viewer.