summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-01-19wrepl_server: fix the record expire time of sgroup mergesStefan Metzmacher1-0/+18
if we're the owner, the expire time becomes the highest expire time of owned addresses metze (from samba4wins tree 024f439db45046c7c0bb4759c75877462405baec)
2009-01-19wrepl_server: use a local 'local_owner' variable to make the code more readableStefan Metzmacher1-1/+2
metze (from samba4wins tree eba9a8ce0641a2984112f4e1473801fa449ed96d)
2009-01-19winsdb: the we_are_owner in winsdb_lookup() needs to be per addressStefan Metzmacher1-22/+15
This fixes a bug where #1C addresses are registered with different WINS-Servers and a merged #1C record. metze (from samba4wins tree 72e055394a0fd1f543be9c196b4179356a1033f6)
2009-01-19nbt_server: fix crash bug, the wins client interface may not have a nbtsockStefan Metzmacher1-1/+1
metze (from samba4wins tree 8035601da7c7e8b65fe1d82c2654c412fa169338)
2009-01-19nbt_server: redirect incoming response packets to the correct interfaceStefan Metzmacher1-0/+53
We may send requests packets (WACK challenges or similar things) via a different udp socket than the socket we receive the matching response. We need to setup an unexpected handler on the nbt sockets and redirect responses to the correct nbt_socket. (By redirect I mean we use the correct nbt_socket structure, we're *not* resending the packet with sendto() via the kernel...) metze (from samba4wins tree 7ce8e705e5a9aabb787d17fbec7a078d9d6780dc)
2009-01-19libcli/nbt: add nbt_name_socket_handle_response_packet()Stefan Metzmacher2-3/+13
Move the last part of nbt_name_socket_recv() into a new function nbt_name_socket_handle_response_packet() so that it can be reused by an unexpected handler. metze (from samba4wins tree cb0377f3b95e50c84fac999a49dde80acc933124)
2009-01-19libcli/nbt: add nbt_set_unexpected_handler()Stefan Metzmacher2-0/+17
metze (from samba4wins tree 74232901d1e7ea9ebcb3bd8d584dda36fac37223)
2009-01-19nbt_server: add some debug messages which show the used interfaces addressesStefan Metzmacher1-2/+12
metze (from samba4wins tree 8eb30add7c95672a85b4084b4a3dbfa78db820c4)
2009-01-19wreplsrv: don't log scavenging events at level 0Stefan Metzmacher1-7/+7
metze (from samba4wins tree 7a1d4fac9d77440c2c463bfdb2a5671e4817cfdf)
2009-01-19wreplsrv: log a successful replication cycle at level 1Stefan Metzmacher1-1/+1
metze (from samba4wins tree b411e60e1536668e11bc5d8eaa389071b25077bf)
2009-01-19wreplsrv: log replication failures at log level 0Stefan Metzmacher2-8/+8
metze (from samba4wins tree 405cbb74b7191e744178894a5e0ac4abcac2a4fe)
2009-01-19libcli/nbt: fix wack timeout handlingStefan Metzmacher1-3/+18
If the client gets a WACK response, the server sends a timeout to the client. Possible values are between 9 and 105 seconds. Because w2k3 servers have a bug and always return a value of 5 seconds, we need a workarround. Always using a fixed value of 30 seconds is bad as we could timeout to early. Now we use the value from the server if it's in the valid range and otherwise we use the upper limit of the valid range (105s). metze (from samba4wins tree 40ef7739f4141598a6392c203e4a2d52d972fe06)
2009-01-19NBT-WINS: test if the server ignores resent packetsStefan Metzmacher1-0/+54
metze (from samba4wins tree 24eb7577414c8584b97f43c850d738d3dbb30777)
2009-01-19NBT-WINS: we don't need the slow low port tests for every nameStefan Metzmacher1-18/+19
metze (from samba4wins tree 7862deca8555f960a5ef65e6315ce94af5023a2a)
2009-01-19NBT-WINS: if we're bound to port 137 trigger WACK reponses with timeoutsStefan Metzmacher1-2/+107
metze (from samba4wins tree de7225658493006c19d139ac77ac1b1ffab01d25)
2009-01-19NBT-WINS: try to bind to port 137 in the NBT-WINS testStefan Metzmacher1-3/+15
metze (from samba4wins tree 5e101475d5ed62060c991ea71c943e76b862aeef)
2009-01-19winsserver: we need to ignore duplicated name register requests.Stefan Metzmacher3-7/+59
This fixes the following bug: While we reply with a WACK response to a client. Instead of waiting for the final reply some windows client just resends the request using the same name_trn_id in the nbt_name_packet. We handled this as a new request and send a WACK response (and the challenges) again. Then the first request gets its final success response, but the when we try to send the success for the "second" request we notice that the record was changed in between and we return an error. Windows 2003 (and I assume all other versions as well) detect the packet is just a resent of a currently pending request and ignores it. So we now keep a list of all pending WINS name register requests which result in a WACK response. On each incoming name register request we search through the list to find duplicate requests and ignore them. In theory we should do that for all requests, but name register requests are the only requests we response async and only if we have to go via the WACK code path. metze (from samba4wins tree 382e7d384b70d03e9f81c7bb353afaed288d80f0)
2009-01-19ndr_print: fix the output ndr debug messages only add header line onceStefan Metzmacher1-0/+6
metze (from samba4wins tree e99531aae325e4443fcb917a75dfe4a86b892583)
2009-01-19util_str: setup the correct talloc name for stringsStefan Metzmacher3-0/+6
metze (partly from samba4wins tree 447e7f9532131117e896712db9def321c96718eb)
2009-01-19Revert "Remove another use of global_loadparm."Stefan Metzmacher3-6/+2
This reverts commit ee7c2170a79f1ca9e2ad1a209d342d8fd287ec8d. A much more correct fix will come soon. (40ef7739f4141598a6392c203e4a2d52d972fe06 from the samba4wins tree) metze
2009-01-19NBT-WINS: initialize .dest_port explicit (we should fill the whole struct ↵Stefan Metzmacher1-0/+1
each time) This makes the code more clear. metze
2009-01-19Merge branch 'master' of ssh://git.samba.org/data/git/samba into abartlet-develAndrew Bartlett28-1266/+1645
2009-01-19Print more useful suggestion for the main provision command lineAndrew Bartlett1-1/+1
2009-01-19Delete more Samba3-specific filesAndrew Bartlett1-1/+1
2009-01-19Don't give fatal python errors when guessing the realmAndrew Bartlett1-2/+12
2009-01-19Remove unused tdb_search_keys()Volker Lendecke2-78/+0
2009-01-19simplify gencache_iterate a bit, fix nonempty blank linesVolker Lendecke1-86/+84
2009-01-18libnetapi_open_pipe does not need to return cli_stateVolker Lendecke10-246/+12
The user session key is also available in rpccli->auth->user_session_key Guenther, please check! Thanks, Volker
2009-01-18Merge branch 'master' of ssh://git.samba.org/data/git/sambaJelmer Vernooij8-176/+77
2009-01-18Add a macro async_req_setup()Volker Lendecke8-176/+77
This streamlines setting up a multi-step async request a bit
2009-01-18Merge branch 'master' of ssh://git.samba.org/data/git/sambaJelmer Vernooij29-844/+1701
2009-01-18Add code to torture the fragmentation code a bitVolker Lendecke1-3/+15
2009-01-18Remove unused functionsVolker Lendecke1-401/+0
2009-01-18Make rpc_pipe_bind asyncVolker Lendecke2-0/+452
2009-01-18Fix an uninitialized variableVolker Lendecke1-0/+1
2009-01-18Remove sync rpc_api_pipe_reqVolker Lendecke1-170/+0
2009-01-18Add async rpc_api_pipe_reqVolker Lendecke2-0/+315
2009-01-18Tiny simplification of prs_set_offsetVolker Lendecke1-6/+3
2009-01-18Add rpc_write_send/recvVolker Lendecke1-0/+131
2009-01-18Remove unused sync functionsVolker Lendecke1-196/+0
2009-01-18Make rpc_api_pipe asyncVolker Lendecke1-0/+284
2009-01-18Rename the async version of get_complete_pdu to get_complete_fragVolker Lendecke1-16/+16
2009-01-18Move initialization of the reply prs_struct to rpc_api_pipeVolker Lendecke5-20/+15
2009-01-18Always check the max send sizein rpc_api_pipe, not just with DEVELOPERVolker Lendecke1-8/+5
2009-01-18Make cli_api_pipe asyncVolker Lendecke1-99/+218
Also move the transport switch to this routine
2009-01-18Remove sync rpc_read wrapperVolker Lendecke1-28/+0
2009-01-18Make cli_pipe_get_current_pdu async, rename it to get_current_pduVolker Lendecke1-36/+190
2009-01-18Make rpc_read asyncVolker Lendecke1-87/+154
2009-01-18Fix some real bugs found by "type-punned" gcc warningsVolker Lendecke1-8/+11
Type-casting does not the right thing if used the way it used to be. The function arguments have not been uint32_t's, but the type cast made the calling routine believe so. Not good... The assignment xxx=account_policy_temp does however type-convert properly, potentially cutting off the top-bits.
2009-01-17librpc: Re-run make idl_fullTim Prouty8-70/+70