summaryrefslogtreecommitdiff
path: root/source3
AgeCommit message (Collapse)AuthorFilesLines
2011-01-09s3: Convert enc_blob_send_receive to cli_trans()Volker Lendecke1-34/+21
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Jan 9 11:40:04 CET 2011 on sn-devel-104
2011-01-09s3: Fix two incompatible pointer type warnings on SolarisVolker Lendecke1-2/+2
2011-01-08s3: Fix some warnings in the zfsacl moduleVolker Lendecke1-15/+15
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat Jan 8 13:42:20 CET 2011 on sn-devel-104
2011-01-08s3: Avoid a ton of registry writes at startupVolker Lendecke1-0/+18
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat Jan 8 12:39:09 CET 2011 on sn-devel-104
2011-01-08s3: Fix a type errorVolker Lendecke1-2/+2
2011-01-08s3: Fix some nonempty blank linesVolker Lendecke1-3/+3
2011-01-07s3-printing: remove printer_list_need_refreshDavid Disseldorp3-41/+0
printer_list_need_refresh() was used previously to ensure one smbd process did not attempt to update the printer_list tdb during or soon after update by another smbd. It is no longer needed, as pcap updates are now only performed by the parent smbd process following startup, SIGHUP, config update or printcap cache time expiry.
2011-01-07s3-printing: remove old entries in pcap_cache_replaceDavid Disseldorp3-11/+24
Callers of pcap_cache_replace() assume the existing printcap cache is replaced by the new values provided. This is not currently the case, old entries should be removed.
2011-01-07s3-printing: Initiate pcap reload from parent smbdDavid Disseldorp9-44/+78
Since commit 7022554, smbds share a printcap cache (printer_list.tdb), therefore ordering of events between smbd processes is important when updating printcap cache information. Consider the following two process example: 1) smbd1 receives HUP or printcap cache time expiry 2) smbd1 checks whether pcap needs refresh, it does 3) smbd1 marks pcap as refreshed 4) smbd1 forks child1 to obtain cups printer info 5) smbd2 receives HUP or printcap cache time expiry 6) smbd2 checks whether pcap needs refresh, it does not (due to step 3) 7) smbd2 reloads printer shares prior to child1 completion (stale pcap) 8) child1 completion, pcap cache (printer_list.tdb) is updated by smbd1 9) smbd1 reloads printer shares based on new pcap information In this case both smbd1 and smbd2 are reliant on the pcap update performed on child1 completion. The prior commit "reload shares after pcap cache fill" ensures that smbd1 only reloads printer shares following pcap update, however smbd2 continues to present shares based on stale pcap data. This commit addresses the above problem by driving pcap cache and printer share updates from the parent smbd process. 1) smbd0 (parent) receives a HUP or printcap cache time expiry 2) smbd0 forks child0 to obtain cups printer info 3) child0 completion, pcap cache (printer_list.tdb) is updated by smbd0 4) smbd0 reloads printer shares 5) smbd0 notifies child smbds of pcap update via message_send_all() 6) child smbds read fresh pcap data and reload printer shares This architecture has the additional advantage that only a single process (the parent smbd) requests printer information from the printcap backend. Use time_mono in housekeeping functions As suggested by Björn Jacke.
2011-01-07s3-printing: reload shares after pcap cache fillDavid Disseldorp9-26/+73
Since commit eada8f8a, updates to the cups pcap cache are performed asynchronously - cups_cache_reload() forks a child process to request cups printer information and notify the parent smbd on completion. Currently printer shares are reloaded immediately following the call to cups_cache_reload(), this occurs prior to smbd receiving new cups pcap information from the child process. Such behaviour can result in stale print shares as outlined in bug 7836. This fix ensures print shares are only reloaded after new pcap data has been received. Pair-Programmed-With: Lars Müller <lars@samba.org>
2011-01-07s3-nmbd: Fix bug #7875Björn Baumbach1-2/+2
nmbd --port didn't work Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Jan 7 17:44:08 CET 2011 on sn-devel-104
2011-01-07s3-waf: add NMBDSOCKETDIR variable.Günther Deschner1-0/+2
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Fri Jan 7 16:33:55 CET 2011 on sn-devel-104
2011-01-07s3-build: fix classic build after libcli netlogon changes.Günther Deschner1-2/+2
Guenther
2011-01-07netlogon: move netlogon helpers to ../libcli/netlogon.Günther Deschner5-12/+7
Guenther
2011-01-07s3-waf: rename LIBCLI_NETLOGON subsystem to LIBRPCCLI_NETLOGON.Günther Deschner1-8/+8
Guenther
2011-01-07s3-waf: rearrange waf recurses in main wscript_build.Günther Deschner1-23/+22
Guenther
2011-01-07s3-waf: cleanup wscript_build a little.Günther Deschner1-8/+0
Guenther
2011-01-07s3-waf: recurse into ../lib/smbconf.Günther Deschner1-9/+8
Guenther
2011-01-07s3: Make nmbd socket dir configurableVolker Lendecke5-1/+31
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Fri Jan 7 14:14:19 CET 2011 on sn-devel-104
2011-01-07s3: Remove some unused codeVolker Lendecke9-549/+2
2011-01-07s3: Limit the number of unexpected clients to 200Volker Lendecke2-2/+13
DoS protection like the max winbind clients. Settable by nmbd:unexpected_clients
2011-01-07s3: Limit the number of unexpected packets per client to 10Volker Lendecke1-0/+8
Non-reading clients could maliciously make nmbd allocate memory
2011-01-07s3: Use the new nbt_getdc in winbindd_cmVolker Lendecke1-23/+9
2011-01-07s3: Use the new nbt_getdc in dsgetdcname()Volker Lendecke1-20/+7
2011-01-07s3: Add nbt_getdcVolker Lendecke2-0/+215
This is a getdc version that uses /tmp/.nmbd/unexpected
2011-01-07s3: Fix a valgrind errorVolker Lendecke1-1/+1
2011-01-07s3: Factor out parse_getdc_responseVolker Lendecke1-55/+65
2011-01-07s3: Lift my_mailslot from prep_getdc_requestVolker Lendecke1-18/+22
2011-01-07s3: Make name_query use /tmp/.nmbd/unexpectedVolker Lendecke5-254/+296
2011-01-07s3: Make node_status_query use /tmp/.nmbd/unexpectedVolker Lendecke4-84/+191
2011-01-07s3: Add nb_trans_send/recvVolker Lendecke1-0/+197
This does an async port 137 transaction: It connects to /tmp/.nmbd/unexpected, sends out the query and then waits for a reply on both the socket as well as data from /tmp/.nmbd/unexpected. Every packet is passed through a validator. If that returns true, the packet received is finally accepted.
2011-01-07s3: Add sock_packet_readVolker Lendecke1-0/+215
Read packets from both a socket and from /tmp/.nmbd/unexpected simultaneously
2011-01-07s3: Add packet_trn_id()Volker Lendecke2-0/+17
2011-01-07s3: Make nmbd listen on the unexpected socketVolker Lendecke3-0/+27
2011-01-07s3: Basic infrastructure for /tmp/.nmbd/unexpectedVolker Lendecke2-0/+699
This provides the framework to replace the unexpected.tdb file. Nmbd will listen on /tmp/.nmbd/unexpected. A client interested in unexpected packets connects there. It sends a nb_packet_query plus a potential mailslot name for dgram packets. It waits for a single ack byte to avoid races. After that has happened, nmbd will pass down all matching packets through that socket. nb_packet_server_create and nb_packet_dispatch are the nmbd routines, nb_packet_reader_send/recv and nb_packet_read_send/recv are the client ones.
2011-01-07s3-waf: fix winbind_krb5_locator.so realname.Günther Deschner1-1/+1
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Fri Jan 7 11:13:29 CET 2011 on sn-devel-104
2011-01-07s3-waf: make the --with-Xdir options work more like in the classic build.Günther Deschner2-27/+26
Also remove duplicates and sort the tables. Still not sure if I understand the reason of processing the flags table after the diroptions table, as every option you give it via configure was overwritten immediately. Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Fri Jan 7 00:57:10 CET 2011 on sn-devel-104
2011-01-06s3-net: Fix bug #7690: retry DNS updates when connection to one nameserver ↵Günther Deschner1-6/+21
has failed. Initial patch from Patrik Martinsson <patrik.martinsson@smhi.se>. Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Thu Jan 6 17:29:11 CET 2011 on sn-devel-104
2011-01-06lib/addns: move DNS client library to the main directory.Günther Deschner13-2542/+5
Guenther
2011-01-06s3-waf: no need to compile librpc/gen_ndr/cli_dfs.c anymore.Günther Deschner1-5/+1
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Thu Jan 6 15:20:14 CET 2011 on sn-devel-104
2011-01-06s3-build: no need to compile librpc/gen_ndr/cli_dfs.c anymore.Günther Deschner1-2/+1
Guenther
2011-01-06s3-rpcclient: use dcerpc_dfs_X functions.Günther Deschner1-12/+24
Guenther
2011-01-05s3: Fix some nonempty blank linesVolker Lendecke1-26/+25
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Jan 5 16:03:24 CET 2011 on sn-devel-104
2011-01-04s3:build: don't use cli_dssetup.c any moreStefan Metzmacher2-9/+4
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Jan 4 22:21:48 CET 2011 on sn-devel-104
2011-01-04s3:net_utils: use dcerpc_dssetup_DsRoleGetPrimaryDomainInformation()Stefan Metzmacher1-2/+8
metze
2011-01-04s3:winbindd: use dcerpc_dssetup_DsRoleGetPrimaryDomainInformation()Stefan Metzmacher1-1/+4
metze
2011-01-04s3:rpcclient: use dcerpc_binding_handle based client stubs in cmd_dssetup.cStefan Metzmacher1-1/+2
metze
2011-01-04s3:build: don't use cli_epmapper.c anymoreStefan Metzmacher2-7/+2
metze
2011-01-04s3:rpcclient: improve "epmmap" outputStefan Metzmacher1-6/+25
metze
2011-01-04s3:rpcclient: use dcerpc_binding_handle bases client stubs in cmd_epmapper.cStefan Metzmacher1-8/+35
metze