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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.