1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00
Commit Graph

126 Commits

Author SHA1 Message Date
David Disseldorp
0b188e7784 s3-printing: Initiate pcap reload from parent smbd
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-07 15:37:39 -08:00
Jeremy Allison
ecf48af135 Change strict allocate to default to true. (cherry picked from commit 820ea22a07b062b1717d35de8fa7051fc1067c3f) 2010-12-15 14:09:48 -08:00
Jeremy Allison
d2e9171f1d Add documentation for "smb2 max credits".
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Dec 11 02:14:07 CET 2010 on sn-devel-104
2010-12-11 02:14:07 +01:00
Andrew Bartlett
45d784e929 s3-docs Add docs for 'client use spnego principal' and 'send spengo principal'
Andrew Bartlett
2010-12-10 16:08:30 +11:00
Andrew Bartlett
d69b4f13f7 s3-docs Explain change to NTLMv2 by default in the client 2010-12-10 16:08:30 +11:00
Kai Blin
6e27ff36b6 s3 docs: Reword posix locking text to answer a common question
vl recently pointed me to a valid reason to use posix locking = no.
Fix the smb.conf manpage to explain this reason, as this question
comes up on the samba mailing list from time to time as well.

Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Wed Dec  1 10:37:30 CET 2010 on sn-devel-104
2010-12-01 10:37:30 +01:00
Volker Lendecke
568a2377cc s3: Add a word of warning about "winbind use default domain"
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Nov 22 23:26:11 CET 2010 on sn-devel-104
2010-11-22 23:26:11 +01:00
Volker Lendecke
076ccc6723 s3: Fix some typos 2010-11-22 22:40:03 +01:00
Volker Lendecke
f2456cd542 s3: Allow disabling of mdns registrations
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Nov  5 11:24:41 UTC 2010 on sn-devel-104
2010-11-05 11:24:41 +00:00
Günther Deschner
3b213f6138 s3-docs: fix typo in "add port command" smb.conf manpage.
Guenther
2010-10-07 17:25:17 +02:00
Günther Deschner
9a7d1b1e97 s3-docs: more typos in rpc_server manpage.
Guenther
2010-09-15 14:35:28 +02:00
Günther Deschner
effbebcec1 s3-docs: fix rpc_server manpage type.
Guenther
2010-09-15 14:16:45 +02:00
Andreas Schneider
34225c93af s3-rpc_server: Added new parametric option 'rpc_server'
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-09-15 12:53:42 +02:00
Pierre Carrier
eeb24afd78 Allows changing the maximum number of simultaneous clients in winbindd through an smb.conf option.
Signed-off-by: Jeremy Allison <jra@samba.org>
2010-09-14 16:43:39 -07:00
Andreas Schneider
a482b3e14e s3-auth: Remove docs about obsolete 'update encrypted' option. 2010-08-16 12:48:43 +02:00
Michael Adam
8496c663ff s3:docs: add documentation for new "idmap read only" parameter 2010-08-14 02:10:40 +02:00
Michael Adam
2056703d56 s3:docs: remove documentation of removed parameter "idmap alloc backend" 2010-08-14 02:10:40 +02:00
Volker Lendecke
b742c4952e s3-docs: Add more verbose description of "log writeable files on exit". 2010-07-19 12:47:09 +02:00
Volker Lendecke
775f1ed045 s3-docs: Add more verbose description of "ctdb locktime warn threshold". 2010-07-19 12:35:58 +02:00
Volker Lendecke
4c0f760edf s3-docs: Add more verbose description of "username map cache time". 2010-07-19 12:22:05 +02:00
Karolin Seeger
a785b4349c s3-docs: Remove older documentation of smb2 parameters.
Jeremy, these parameters were already documented. My fault.
Sorry for the noise!

Karolin
2010-07-19 11:54:05 +02:00
Jeremy Allison
3036822985 Fix bug #7570 - New smb2 max parameters are undocumented.
Jeremy.
2010-07-16 14:39:52 -07:00
Karolin Seeger
2352538362 s3-docs: Add missing whitespace.
Karolin
2010-06-21 10:30:57 +02:00
Karolin Seeger
20fc769179 s3-docs: Improve "winbind nss info" section in man smb.conf.
Karolin
2010-04-16 09:24:13 +02:00
Volker Lendecke
5fc2801c09 s3: Cache the username map in gencache
This is for uses with a heavy-weight username map script
2010-04-13 09:30:06 +02:00
Jeremy Allison
9c410118cb Parameterize "smb2 max read", "smb2 max write", "smb2 max trans".
Set to 64k by default.

Jeremy.
2010-04-06 15:43:35 -07:00
Volker Lendecke
70f9338bf2 s3: Add the "ctdb locktime warn threshold" parameter
This is mainly a debugging aid for post-mortem analysis in case a cluster file
system is slow.
2010-03-22 17:32:18 +01:00
Volker Lendecke
b2f45f20b0 s3: Add "log writeable files on exit" parameter
This boolean option controls whether at exit time the server dumps a list of
files with debug level 0 that were still open for write. This is an
administrative aid to find the files that were potentially corrupt if the
network connection died.
2010-03-22 12:03:44 +01:00
Karolin Seeger
494819773d s3-docs: Remove trailing whitespaces and fix a typo.
Karolin
2010-02-18 13:10:21 +01:00
Björn Jacke
37115f91ae s3:docs: add some advice for usage of strict allocate 2010-02-18 13:01:28 +01:00
Jeremy Allison
c7f16abc47 Fix error in docs. Should be milliseconds, not microseconds. 2010-02-12 21:29:58 -08:00
Jeremy Allison
f2d7d9774e Revert "Change the default of "nmbd bind explicit broadcast" to "no""
This reverts commit 84fba3c1bc.

Now we have a "processed packet queue" in nmbd we can go back
to doing this by default.

Jeremy.
2010-02-10 12:42:27 -08:00
Jeremy Allison
84fba3c1bc Change the default of "nmbd bind explicit broadcast" to "no"
until the double processing problem in bug #7118 is fixed.

Jeremy.
2010-02-10 08:39:37 -08:00
Karolin Seeger
a5b003e1f7 s3-docs: Add missing para end tag.
Karolin
(cherry picked from commit b78de63ef3)
2010-02-09 17:14:38 +01:00
Jeremy Allison
3f2415c9bf Make "nmbd bind explicit broadcast" on by default.
Fix a comment typo.

Jeremy.
2010-02-08 14:35:02 -08:00
Stefan Metzmacher
9887751f6f s3:docs-xml: document "nmbd bind explicit broadcast"
metze
2010-02-08 18:35:11 +01:00
Jeremy Allison
bd269443e3 Fix bug 7104 - "wide links" and "unix extensions" are incompatible.
Change parameter "wide links" to default to "no".
Ensure "wide links = no" if "unix extensions = yes" on a share.
Fix man pages to refect this.

Remove "within share" checks for a UNIX symlink set - even if
widelinks = no. The server will not follow that link anyway.

Correct DEBUG message in check_reduced_name() to add missing "\n"
so it's really clear when a path is being denied as it's outside
the enclosing share path.

Jeremy.
2010-02-05 15:20:18 -08:00
Karolin Seeger
e1e6b19acf s3-docs: Fix typos.
Thanks to the Debian samba package maintainers
<pkg-samba-maint@lists.alioth.debian.org> for providing the patch!

Fix bug #7017 (Typos and spelling errors in manpages).

Karolin
2010-01-20 13:34:50 +01:00
Jeremy Allison
fbf4923cad Update default with correct value. Add a note about Win7 behavior
here.
Jeremy.
2009-12-17 16:50:35 -08:00
Karolin Seeger
f740bdc47b s3:docs: Fix 'make manpages3'.
Karolin
2009-12-14 08:58:50 +01:00
Björn Jacke
c69b9b7890 s3:docs: document ldap deref 2009-12-11 13:28:31 +01:00
Björn Jacke
3609c7433d s3:doc: make dos filetimes description less contradictory 2009-12-08 21:32:51 +01:00
Karolin Seeger
5055ba140d s3:docs: Document "directory name cache size".
Karolin
2009-12-07 16:30:10 +01:00
Karolin Seeger
fde7c2ab19 s3:docs: Document "aio write behind".
Part of a fix for bug #6890 (Some smb.conf parameters are undocumented).

Karolin
2009-11-30 13:35:48 +01:00
Karolin Seeger
9478ec35b5 s3:docs: Document "ldap page size".
Part of a fix for bug #6890 (Some smb.conf parameters are undocumented).

Karolin
2009-11-30 13:35:47 +01:00
Karolin Seeger
b03ad70848 s3:docs: Document "enable core files".
Part of a fix for bug #6890 (Some smb.conf parameters are undocumented).

Karolin
2009-11-30 11:41:40 +01:00
Karolin Seeger
0003b5fad1 s3:docs: Document "cache directory" and "state directory".
Part of a fix for bug #6890 (Some smb.conf parameters are undocumented).

Karolin
2009-11-30 11:04:50 +01:00
Volker Lendecke
69a68208bd s3: Restore "fake directory create times" as a share parameter 2009-11-29 11:22:05 +01:00
Karolin Seeger
da8aba53d6 s3/docs: Add "max protocol = smb2" to man smb.conf.
Karolin
2009-11-18 13:05:24 +01:00
Jeremy Allison
a770caed0f Remove "store create time" code, cause create time to be stored
in the "user.DOSATTRIB" EA. From the docs:
In Samba 3.5.0 and above the "user.DOSATTRIB" extended attribute has been extended to store
the create time for a file as well as the DOS attributes. This is done in a backwards compatible
way so files created by Samba 3.5.0 and above can still have the DOS attribute read from this
extended attribute by earlier versions of Samba, but they will not be able to read the create
time stored there. Storing the create time separately from the normal filesystem meta-data
allows Samba to faithfully reproduce NTFS semantics on top of a POSIX filesystem.
Passes make test but will need more testing.
Jeremy.
2009-11-17 14:55:02 -08:00