Changeset 732 for branches/samba-3.5.x/source3/winbindd
- Timestamp:
- Nov 12, 2012, 4:35:55 PM (13 years ago)
- 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 214 214 215 215 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; 218 222 } 219 223 -
branches/samba-3.5.x/source3/winbindd/winbindd.c
r599 r732 904 904 struct winbindd_listen_state); 905 905 906 while (winbindd_num_clients() > 907 WINBINDD_MAX_SIMULTANEOUS_CLIENTS - 1) { 906 while (winbindd_num_clients() > lp_winbind_max_clients() - 1) { 908 907 DEBUG(5,("winbindd: Exceeding %d client " 909 908 "connections, removing idle " 910 "connection.\n", 911 WINBINDD_MAX_SIMULTANEOUS_CLIENTS)); 909 "connection.\n", lp_winbind_max_clients())); 912 910 if (!remove_idle_client()) { 913 911 DEBUG(0,("winbindd: Exceeding %d " 914 912 "client connections, no idle " 915 913 "connection found\n", 916 WINBINDD_MAX_SIMULTANEOUS_CLIENTS));914 lp_winbind_max_clients())); 917 915 break; 918 916 } -
branches/samba-3.5.x/source3/winbindd/winbindd_dual.c
r593 r732 135 135 struct tevent_req *subreq; 136 136 137 if ((state->child-> pid == 0) && (!fork_domain_child(state->child))) {137 if ((state->child->sock == -1) && (!fork_domain_child(state->child))) { 138 138 tevent_req_error(req, errno); 139 139 return; … … 165 165 TALLOC_FREE(subreq); 166 166 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; 167 173 tevent_req_error(req, err); 168 174 return; … … 503 509 } 504 510 511 child->sock = -1; 505 512 child->domain = domain; 506 513 child->table = table; … … 531 538 532 539 DLIST_REMOVE(children, child); 533 534 close(child->sock);535 child->sock = -1;536 540 child->pid = 0; 537 541 } -
branches/samba-3.5.x/source3/winbindd/winbindd_pam.c
r599 r732 1383 1383 &my_info3); 1384 1384 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 1390 1387 /* 1391 1388 * It's likely that the server also does not support … … 1393 1390 */ 1394 1391 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; 1397 1408 } 1398 1409 … … 1997 2008 &info3); 1998 2009 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 2004 2012 /* 2005 2013 * It's likely that the server also does not support … … 2007 2015 */ 2008 2016 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; 2011 2033 } 2012 2034
Note:
See TracChangeset
for help on using the changeset viewer.