search for: tevent_req_post

Displaying 10 results from an estimated 10 matches for "tevent_req_post".

2016 Oct 17
2
Bug 6870 resurfaced in Samba 4.2.10
...++) { > > NTSTATUS status; > > > > status = cldap_socket_init(state->cldap, > > NULL, /* local_addr */ > > state->servers[i], > > &state->cldap[i]); > > > > if (tevent_req_nterror(req, status)) { > > return tevent_req_post(req, ev); > > } > > > > /* Code omitted for brevity */ > > > > } > > > > This is in cldap_multi_netlogon_send(), a function that sends CLDAP > > requests to multiple DCs in one go. The loop here sets up a socket for > > each DC. cldap_...
2020 Apr 02
2
Prevent `wbinfo -u` from making Winbind unresponsive
...bindd code only prohibits > enumerating users when requested from > nsswitch lookups. > > The code looks like: > > if (request->wb_flags & WBFLAG_FROM_NSS && !lp_winbind_enum_users()) { > tevent_req_done(req); > return tevent_req_post(req, ev); > } > > so making an explicit request via wbinfo will > still do the enumeration. The rpc client code uses the dcerpc call_id field to allow multiple outstanding calls at once (asynchronously using tevent). It'd be interesting to know where exactly winbind is blo...
2016 Oct 17
2
Bug 6870 resurfaced in Samba 4.2.10
...ound the issue. Around line 120 of source3/libads/cldap.c: for (i=0; i<num_servers; i++) { NTSTATUS status; status = cldap_socket_init(state->cldap, NULL, /* local_addr */ state->servers[i], &state->cldap[i]); if (tevent_req_nterror(req, status)) { return tevent_req_post(req, ev); } /* Code omitted for brevity */ } This is in cldap_multi_netlogon_send(), a function that sends CLDAP requests to multiple DCs in one go. The loop here sets up a socket for each DC. cldap_socket_init() in turn (possibly several calls deeper) sets up the UDP socket, and calls co...
2020 Apr 01
5
Prevent `wbinfo -u` from making Winbind unresponsive
Hi, Recently I by mistake ran `wbinfo -u <username>` when I was actually intending to run `wbinfo -n <username>`. It ignored the <username> part and proceeded to fetch the usernames. On a small domain this shouldn't be too much of an issue, but I did it on a domain with thousands upon thousands of users. The result was that Winbind became for all intents and purposes
2016 Oct 17
0
Bug 6870 resurfaced in Samba 4.2.10
...f source3/libads/cldap.c: > > for (i=0; i<num_servers; i++) { > NTSTATUS status; > > status = cldap_socket_init(state->cldap, > NULL, /* local_addr */ > state->servers[i], > &state->cldap[i]); > > if (tevent_req_nterror(req, status)) { > return tevent_req_post(req, ev); > } > > /* Code omitted for brevity */ > > } > > This is in cldap_multi_netlogon_send(), a function that sends CLDAP > requests to multiple DCs in one go. The loop here sets up a socket for > each DC. cldap_socket_init() in turn (possibly several calls dee...
2020 Apr 01
0
Prevent `wbinfo -u` from making Winbind unresponsive
...t; winbind enum groups = no Ah, the winbindd code only prohibits enumerating users when requested from nsswitch lookups. The code looks like: if (request->wb_flags & WBFLAG_FROM_NSS && !lp_winbind_enum_users()) { tevent_req_done(req); return tevent_req_post(req, ev); } so making an explicit request via wbinfo will still do the enumeration.
2016 Oct 17
2
Bug 6870 resurfaced in Samba 4.2.10
...0; i<num_servers; i++) { > > NTSTATUS status; > > > > status = cldap_socket_init(state->cldap, > > NULL, /* local_addr */ > > state->servers[i], > > &state->cldap[i]); > > > > if (tevent_req_nterror(req, status)) { > > return tevent_req_post(req, ev); > > } > > > > /* Code omitted for brevity */ > > > > } > > > > This is in cldap_multi_netlogon_send(), a function that sends CLDAP > > requests to multiple DCs in one go. The loop here sets up a socket for > > each DC. cldap_sock...
2016 Oct 17
0
Bug 6870 resurfaced in Samba 4.2.10
....c: > > for (i=0; i<num_servers; i++) { > NTSTATUS status; > > status = cldap_socket_init(state->cldap, > NULL, /* local_addr */ > state->servers[i], > &state->cldap[i]); > > if (tevent_req_nterror(req, status)) { > return tevent_req_post(req, ev); > } > > /* Code omitted for brevity */ > > } > > This is in cldap_multi_netlogon_send(), a function that sends CLDAP > requests to multiple DCs in one go. The loop here sets up a socket for > each DC. cldap_socket_init() in turn (possibly several calls...
2020 May 11
3
Clients send tons of Notiftication requests
Hi everybody! I have a QNAP at home running firmware 4.4.2.1273 and I have configured it with NFS (for my iMac and FireTV) and SMB access (standalone server, for Win10 and iPhone/iPad Files access) Everything went fine till a certain point where many application would crash or behave in a very strange way when accessing SAMBA shares. Application can be Explorer++, OneCommander or File.app from
2016 Oct 13
3
Bug 6870 resurfaced in Samba 4.2.10
According to this bugzilla entry, bug 6870 has been fixed as of at least version 3.5: https://bugzilla.samba.org/show_bug.cgi?id=6870 However, I assert that it is present in 4.2.10, which ships with Debian Jessie. On my home network (IPv4 and IPv6), a box with Samba 4.2.10 with IPv6 disabled (via sysctl), will fail to contact a DC because the IPv6 connect fails immediately before the v4