Jelmer Vernooij [Fri, 26 Oct 2012 23:53:57 +0000 (15:53 -0800)]
selftest: Add --random-order option. (cherry picked from commit
67dd28f3605db4cbdc5feacc1121ec3d7dd075a6)
Jelmer Vernooij [Fri, 26 Oct 2012 22:40:09 +0000 (14:40 -0800)]
source4.selftest.tests: Add FIXME about database verification. (cherry picked from commit
1190f385f72f68f22277c8b380f2d4c461c413a4)
Jelmer Vernooij [Fri, 26 Oct 2012 22:14:42 +0000 (14:14 -0800)]
selftesthelpers: Simplify detection of tap2subunit. (cherry picked from commit
05dc5a39a6ad4b1ffafc904faea3e8e40f6f5cde)
Jelmer Vernooij [Fri, 26 Oct 2012 22:06:47 +0000 (14:06 -0800)]
source3.selftests.tests: Use common plansmbtorture4testsuite() function. (cherry picked from commit
fd607e0a9eefb79130941e244435980afbbb4bf7)
Jelmer Vernooij [Fri, 26 Oct 2012 22:00:07 +0000 (14:00 -0800)]
source3.selftest.tests: Add suffix for smbclient3/ntlm_auth3. (cherry picked from commit
efb27e29dadf58d2dec651ca3a0c108b4cf515ae)
Jelmer Vernooij [Fri, 26 Oct 2012 21:56:30 +0000 (13:56 -0800)]
source3.selftest.tests: Remove tabs. (cherry picked from commit
a841f0fced7abfb0f6d98390c07becdf49a91af5)
Jelmer Vernooij [Fri, 26 Oct 2012 21:52:55 +0000 (13:52 -0800)]
source4.selftest.tests: Add suffix for smbclient4/nmblookup4. (cherry picked from commit
ea5e2b56c14072eeaa785d05f1da4d439667e8b6)
Jelmer Vernooij [Fri, 26 Oct 2012 21:51:54 +0000 (13:51 -0800)]
selftesthelpers: Add function for printing smbtorture4 version. (cherry picked from commit
58345820c078f79fe7f67b8e6f947691f7237641)
Jelmer Vernooij [Fri, 26 Oct 2012 21:38:32 +0000 (13:38 -0800)]
selftest: Move determining of smbtorture4 options to selftesthelpers. (cherry picked from commit
8237e2727da0d04b82cb3cf644dd337a4c77fe34)
Jelmer Vernooij [Fri, 26 Oct 2012 21:12:54 +0000 (13:12 -0800)]
selftest/selftesthelpers: Share environment handling for extra smbtorture options. (cherry picked from commit
fcb7926ce544a8d4b0e5aa6577fe21712b38bb53)
Jelmer Vernooij [Fri, 26 Oct 2012 21:09:45 +0000 (13:09 -0800)]
selftest/selftesthelpers.py: Share configuration variable, strip whitespace. (cherry picked from commit
6bcb25673bdc249f5a49ded912d90bc84b13809d)
Jelmer Vernooij [Fri, 26 Oct 2012 21:03:32 +0000 (13:03 -0800)]
selftesthelpers: Share code for listing smbtorture4 tests. (cherry picked from commit
4c4d3c86f0430d38f78d16dcb5d365b577ef4227)
Jelmer Vernooij [Fri, 26 Oct 2012 19:51:19 +0000 (11:51 -0800)]
source4.selftest.tests: Rename plansmbtorturesuite() to plansmbtorture4suite(). (cherry picked from commit
868c8c058306b66fb3baa4a36bfe91d6461805d5)
Jelmer Vernooij [Fri, 26 Oct 2012 19:50:41 +0000 (11:50 -0800)]
source4.selftest.tests: Consistent naming of smbtorture binary. (cherry picked from commit
55507d0612ecf2db34867eb6065fc5038ea81aa0)
Jelmer Vernooij [Fri, 19 Oct 2012 07:21:01 +0000 (09:21 +0200)]
samba.tests.docs: Ignore removed parameters. (cherry picked from commit
364ed82d22bbcd69ae237098ba8d6946969bd390)
Jelmer Vernooij [Fri, 19 Oct 2012 07:20:44 +0000 (09:20 +0200)]
smb.conf(5): Mark four removed parameters as such. (cherry picked from commit
4b4e8e21235615af94788fa0ebfa0b0bc09f14fd)
Jelmer Vernooij [Fri, 19 Oct 2012 07:16:55 +0000 (09:16 +0200)]
samba.tests.docs: Assume docs are generated by waf. (cherry picked from commit
ed37b8ad14d496114654017d394fa18d63456aee)
Jelmer Vernooij [Sat, 29 Sep 2012 04:40:32 +0000 (21:40 -0700)]
samba.tests.docs: Write error output from xsltproc to standard out. (cherry picked from commit
cfa72bcc5e93a840fc07f5d419216443ef8f7599)
Jelmer Vernooij [Fri, 28 Sep 2012 16:52:41 +0000 (09:52 -0700)]
samba.tests.docs: Skip tests if xsltproc is not present. (cherry picked from commit
8412b57f5ce40901a0a4e2e66c5f9bcbdcb4b46e)
Jelmer Vernooij [Wed, 26 Sep 2012 20:20:42 +0000 (13:20 -0700)]
smb.conf(5): Consistent spelling of parameter names.
This includes spacing and casing.
(cherry picked from commit
2a31f0b50976dc5b6770639b60184a8ef9158b8b)
Jelmer Vernooij [Wed, 26 Sep 2012 20:09:01 +0000 (13:09 -0700)]
samba.tests.docs: Support spaces before synonyms. (cherry picked from commit
32fad2b910a9e4f9b753b43cb818c72829236a88)
Jelmer Vernooij [Wed, 26 Sep 2012 19:40:00 +0000 (12:40 -0700)]
samba.tests.docs: Support synonyms. (cherry picked from commit
be4dea45daca51a817a7c383a4092bf69650c6cd)
Jelmer Vernooij [Wed, 26 Sep 2012 16:41:19 +0000 (18:41 +0200)]
samba.tests.docs: Distinguish between unknown and undocumened parameters. (cherry picked from commit
d0e644e0c83636b4e4c6b52ce0f861ffe38cedeb)
Jelmer Vernooij [Wed, 26 Sep 2012 00:57:16 +0000 (02:57 +0200)]
tests: Convert find_missing_doc into a unit test. (cherry picked from commit
d2f8fe855d0705faf216714cf147038563c0ba7e)
Jelmer Vernooij [Fri, 19 Oct 2012 06:33:31 +0000 (08:33 +0200)]
smb.conf(5): Fix mixing of tabs and spaces. (cherry picked from commit
47902702b3e6390de05f8fca2bc457936af9f5c1)
Jelmer Vernooij [Sat, 29 Sep 2012 04:25:50 +0000 (21:25 -0700)]
smb.conf(5): Add basic documentation for 'nsupdate command'. (cherry picked from commit
aad30c062fd176fa15994a44a0178d51764cdbf7)
Jelmer Vernooij [Fri, 28 Sep 2012 20:05:07 +0000 (13:05 -0700)]
smb.conf(5): Add basic documentation for 'afs token lifetime'. (cherry picked from commit
0cea6daffe42f5b9b6ee61eb430da3f86bea31df)
Jelmer Vernooij [Fri, 28 Sep 2012 20:01:39 +0000 (13:01 -0700)]
smb.conf(5): Add 'ldap password sync' as synonym for 'ldap passwd sync'. (cherry picked from commit
695df863eddd6ee323229fe29a4a40712f3553b4)
Jelmer Vernooij [Fri, 28 Sep 2012 18:20:09 +0000 (11:20 -0700)]
smb.conf(5): Add 'socket address' as alias for 'nbt client socket address'. (cherry picked from commit
6c160e3892eea219c50bbb2d1113460817bfad08)
Jelmer Vernooij [Fri, 28 Sep 2012 18:13:13 +0000 (11:13 -0700)]
smb.conf(5): Add basic documentation for 'tls dh params file'. (cherry picked from commit
03b48e2bdbea30afad9b414fbab5dae67e57b5cf)
Jelmer Vernooij [Fri, 28 Sep 2012 18:08:49 +0000 (11:08 -0700)]
smb.conf(5): Add basic documentation for 'tls enabled'. (cherry picked from commit
946a873e470ed4309bf56dae574b8f48a4dc629f)
Jelmer Vernooij [Fri, 28 Sep 2012 18:05:47 +0000 (11:05 -0700)]
smb.conf(5): Add basic documentation for 'tls crlfile'. (cherry picked from commit
2e4f054e16aa9f67ec6bfb8ec7af6ebbba26db1d)
Jelmer Vernooij [Fri, 28 Sep 2012 18:00:09 +0000 (11:00 -0700)]
smb.conf(5): Add basic documentation for 'tls certfile'. (cherry picked from commit
008dfb9a2167603c65fb4db56c8bd62cdd2447d0)
Jelmer Vernooij [Fri, 28 Sep 2012 17:58:45 +0000 (10:58 -0700)]
smb.conf(5): Add basic documentation for 'tls keyfile'. (cherry picked from commit
0f5e45b84c9b54909294fc0ea48f7b6fb3ca2878)
Jelmer Vernooij [Fri, 28 Sep 2012 17:56:44 +0000 (10:56 -0700)]
smb.conf(5): Add basic documentation for 'tls cafile'. (cherry picked from commit
4e1a06dc238c31a3b2343fcf4983c78fdc52f758)
Jelmer Vernooij [Fri, 28 Sep 2012 17:52:13 +0000 (10:52 -0700)]
smb.conf(5): Add basic documentation for 'log nt token command'. (cherry picked from commit
e27e8f4f88dac6c938272ced6ca4b0fd3b20f8e0)
Jelmer Vernooij [Fri, 28 Sep 2012 17:42:55 +0000 (10:42 -0700)]
smb.conf(5): Add basic documentation for 'ntp signd socket directory'. (cherry picked from commit
7341dcac105baad0d06d112578fa3f12826bd4ef)
Jelmer Vernooij [Fri, 28 Sep 2012 17:37:23 +0000 (10:37 -0700)]
smb.conf(5): Add basic documentation for 'spn update command'. (cherry picked from commit
6f36bde82f4a6329b97b400564e69928dffa0173)
Jelmer Vernooij [Fri, 28 Sep 2012 17:35:06 +0000 (10:35 -0700)]
smb.conf(5): Add basic documentation for 'allow dns updates'. (cherry picked from commit
68fdcaa6b7f69c622df958413ee3809e56861c04)
Jelmer Vernooij [Fri, 28 Sep 2012 17:31:08 +0000 (10:31 -0700)]
smb.conf(5): Add basic documentation for 'rndc command'. (cherry picked from commit
b0b0266aa70721ebfea8dbc2602e81984a3b6023)
Jelmer Vernooij [Fri, 28 Sep 2012 17:16:08 +0000 (10:16 -0700)]
smb.conf(5): Add basic documentation for 'dns update command'. (cherry picked from commit
4ccea7f86796070ae6dbf404aa93ad4e5a7ae66e)
Jelmer Vernooij [Fri, 28 Sep 2012 17:09:41 +0000 (10:09 -0700)]
smb.conf(5): Add basic documentation for 'server services'. (cherry picked from commit
3cc61af7ff3b90026fdc6fc84ad905041154bfaf)
Jelmer Vernooij [Fri, 28 Sep 2012 17:03:46 +0000 (10:03 -0700)]
smb.conf(5): Add basic documentation for 'samba kcc command'. (cherry picked from commit
a63d6a909406c2d0e04f6142f9614c3543ae2d1b)
Jelmer Vernooij [Fri, 28 Sep 2012 01:44:43 +0000 (18:44 -0700)]
samba-tool user: Fix typos, improve messages. (cherry picked from commit
d09f15163843c5a027476e9087ae96700f6de003)
Jelmer Vernooij [Fri, 28 Sep 2012 00:57:54 +0000 (17:57 -0700)]
smb.conf(5): Add basic documentation 'winbind sealed pipes'. (cherry picked from commit
e7c8fcaea5b06897603abb6f4f38ce39b400c9a7)
Jelmer Vernooij [Thu, 27 Sep 2012 20:38:31 +0000 (13:38 -0700)]
smb.conf(5): Add basic documentation for 'dns forwarder'. (cherry picked from commit
e9d91cd4a133d7acb377341282230f99f5e10a12)
Jelmer Vernooij [Thu, 27 Sep 2012 20:28:23 +0000 (13:28 -0700)]
smb.conf(5): Add basic documentation for 'ntvfs handler'. (cherry picked from commit
394258ad4c3413388e800800b2b1b941de037fa3)
Jelmer Vernooij [Thu, 27 Sep 2012 19:30:07 +0000 (12:30 -0700)]
smb.conf(5): Add : to idmap config description to mark it as parametric. (cherry picked from commit
c6ba8575ea7fe8b0fdc49d4f823ca441ae99070a)
Jelmer Vernooij [Thu, 27 Sep 2012 19:28:16 +0000 (12:28 -0700)]
smb.conf(5): Add basic documentation for 'winbindd privileged socket directory'. (cherry picked from commit
3cea6257a9e4a3e1dc46e6c555d57992a73d6e6c)
Jelmer Vernooij [Thu, 27 Sep 2012 19:24:15 +0000 (12:24 -0700)]
smb.conf(5): Add basic documentation for 'winbindd socket directory'. (cherry picked from commit
d0b38752471dd870ad640fd39076bc51f84c57d1)
Jelmer Vernooij [Wed, 26 Sep 2012 23:02:40 +0000 (16:02 -0700)]
smb.conf(5): Extend 'server min protocol' description. (cherry picked from commit
dfe75c2f3591652a370a36f73f70e8055bda9d11)
Jelmer Vernooij [Fri, 19 Oct 2012 07:53:02 +0000 (09:53 +0200)]
samba-tool user test: Fix expected output.
Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date(master): Fri Oct 19 11:37:44 CEST 2012 on sn-devel-104
(cherry picked from commit
e3a48bb5f65bf9f5b77df010dcb75fcc9721cf3b)
Jelmer Vernooij [Fri, 5 Oct 2012 09:51:37 +0000 (11:51 +0200)]
selftest: Move more tests to common list script.
Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date(master): Fri Oct 12 02:06:42 CEST 2012 on sn-devel-104
(cherry picked from commit
ff82afb1f8ad3cf950277487aff05d442d03c969)
Jelmer Vernooij [Thu, 11 Oct 2012 15:23:13 +0000 (17:23 +0200)]
samba.join: Fix multiple spaces.
Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date(master): Thu Oct 11 20:30:43 CEST 2012 on sn-devel-104
(cherry picked from commit
21b58b5eacb67b4dee6e7efe90bd529bbfd6ef77)
Jelmer Vernooij [Fri, 5 Oct 2012 09:46:25 +0000 (11:46 +0200)]
selftest: Move some tests to common test script. (cherry picked from commit
1aa291c331c29c2f5ee4572b660c4c2061755856)
Jelmer Vernooij [Fri, 5 Oct 2012 09:39:34 +0000 (11:39 +0200)]
selftests.tests: Remove reference to Samba 4. (cherry picked from commit
1080b6c2caf1191fd896f3caf38e576a00b01982)
Jelmer Vernooij [Thu, 27 Sep 2012 16:41:32 +0000 (09:41 -0700)]
samba4-tests: Move 'samba.tests.source' up.
We would like to run this as early as possible so we get a quick
failure when there is trailing whitespace.
Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date(master): Thu Sep 27 20:26:27 CEST 2012 on sn-devel-104
(cherry picked from commit
b7822a55c40c5c42356b263c3d7bc1998fb1a7d3)
Jelmer Vernooij [Thu, 11 Oct 2012 15:11:44 +0000 (17:11 +0200)]
samba.provision.sambadns: Use == to compare strings, not 'is'. (cherry picked from commit
2adf27a99b999a4fd0329d9fa398a9208b60e367)
Jelmer Vernooij [Thu, 11 Oct 2012 12:39:50 +0000 (14:39 +0200)]
wafsamba: Ignore some more symbols when checking for dupes. (cherry picked from commit
276460cf8afb4894fe1e980c7a75e866c14ba144)
Jeremy Allison [Fri, 26 Oct 2012 00:07:29 +0000 (17:07 -0700)]
Fix bug #9329 - Directory listing with SeBackup can crash smbd.
When we do a become_root()/unbecome_root() pair to temporarily
raise privilege, this NULLs out the NT token. If we're within
a become_root()/unbecome_root() pair then return the previous
token on the stack as our NT token. This is what we should be
using to check against NT ACLs in the file server. This copes
with security context changing when removing a file on close
under the context of another user (when 2 users have a file
open, one sets delete on close and then the other user has
to actually do the delete).
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Karolin Seeger [Mon, 29 Oct 2012 11:43:43 +0000 (12:43 +0100)]
WHATSNEW: Update changes since rc3.
Karolin
Autobuild-User(v4-0-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-0-test): Mon Oct 29 15:06:00 CET 2012 on sn-devel-104
Stefan Metzmacher [Thu, 18 Oct 2012 13:35:39 +0000 (15:35 +0200)]
docs-xml:smbd.8: document new smbXsrv_*_global.tdb files
metze
Signed-off-by: Michael Adam <obnox@samba.org>
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Fri Oct 19 14:00:39 CEST 2012 on sn-devel-104
(cherry picked from commit
81d0b8aebf8e7dee73907fabf408f0b2c3145207)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
The last 39 patches address bug 9304 - remove unused sessionid.tdb and
connections.tdb related code.
Stefan Metzmacher [Fri, 5 Oct 2012 17:05:32 +0000 (19:05 +0200)]
s3:lib: remove unused connections_fetch_entry*() and connections_init()
metze
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
a144911958d7bcd291a8f42a40832ffc0187279a)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Stefan Metzmacher [Fri, 5 Oct 2012 17:13:39 +0000 (19:13 +0200)]
s3:smbd: remove unused claim_connection/yield_connection
metze
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
d4f369c470ec1c8c7986a73e4ee6e18a97edd834)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Stefan Metzmacher [Fri, 5 Oct 2012 17:11:31 +0000 (19:11 +0200)]
s3:smbd: don't call claim/yield_connection() in make_connection_snum/close_cnum()
This was used to maintain the connections.tdb database which is being removed.
We use info from the smbXsrv_tcon instead.
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
3eff70087005ffdee2ca579e65846ba1c33ec17f)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Gregor Beck [Mon, 3 Sep 2012 09:13:16 +0000 (11:13 +0200)]
s3:lib/conn_tdb: implement connections_forall_read() based on smbXsrv_*_global_traverse()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
0ccbf89bda71cdbe8d216bab0aa6aacd98cf95df)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Stefan Metzmacher [Thu, 18 Oct 2012 11:40:08 +0000 (13:40 +0200)]
s3:smbd: fill tcon->global->session_global_id
metze
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
f76436c6ea7867fb60d6ac6b65cffc502a018467)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Stefan Metzmacher [Thu, 18 Oct 2012 11:38:34 +0000 (13:38 +0200)]
s3:smbXsrv.idl: add session_global_id to smbXsrv_tcon_global
This is required for some debugging tools like smbstatus.
metze
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
7be7ec803f88de68ef9a5e2b14994a13589ff441)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Gregor Beck [Mon, 27 Aug 2012 13:21:42 +0000 (15:21 +0200)]
s3:lib: remove function connections_forall()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
b74ed25a9999c0029ddf2771f729c497c20b9c30)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Stefan Metzmacher [Thu, 18 Oct 2012 08:13:59 +0000 (10:13 +0200)]
doc-xml: remove "net connections" documentation
metze
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
3b61c605d6815a8033d70f367a69e876f63bc5de)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Stefan Metzmacher [Fri, 5 Oct 2012 17:20:45 +0000 (19:20 +0200)]
s3:utils/net: remove unused "net connections"
The connections.tdb will go away.
metze
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
4a7a8ecb0b69b3b79823aab7504e75451d20e5a0)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Gregor Beck [Thu, 23 Aug 2012 12:02:22 +0000 (14:02 +0200)]
s3:net_serverid: remove connections_forall from "net serverid wipedbs"
This tdb will go away.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
5a4ffb20ffe387fa5bb373778ba84d24a7e5b74f)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Gregor Beck [Thu, 23 Aug 2012 08:36:59 +0000 (10:36 +0200)]
s3:lib: remove unused sessionid_*() functions
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
ac5c8909a94228cec47067188036f1c2a42378aa)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Gregor Beck [Thu, 23 Aug 2012 12:02:22 +0000 (14:02 +0200)]
s3:net_serverid: remove sessionid_traverse from "net serverid wipedbs"
This tdb will go away.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
2f2cb2f6894c94f375310661e7c40c167a784eda)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Gregor Beck [Thu, 23 Aug 2012 14:15:25 +0000 (16:15 +0200)]
s3:smbd: don't use (fill) sessionid.tdb in session_claim/yield any more.
We use data from new smbXsrv_session instead.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
dbff58228e5d05d9799322973aee950951d23fb8)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Gregor Beck [Thu, 23 Aug 2012 08:36:59 +0000 (10:36 +0200)]
s3:lib: implement sessionid_traverse_read with smb2srv_session_traverse_read
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
f2714318ae7358abd328e264dc80821c2749bcc6)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Gregor Beck [Tue, 28 Aug 2012 13:53:28 +0000 (15:53 +0200)]
s3:smbd/connection: use smbXsrv_tcon_traverse to count connections
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
d9ea786c86d6bc42df60881ff703213ef3bd9319)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Gregor Beck [Tue, 28 Aug 2012 12:29:51 +0000 (14:29 +0200)]
s3:smbd:setup_new_vc_session: traverse sessions instead of connections to shutdown other smbds
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
f588704640868a003d901b57045511623e6a1f69)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Gregor Beck [Fri, 7 Sep 2012 13:18:39 +0000 (15:18 +0200)]
s3:build: move sessionid_tdb.o and conn_tdb.o to SMBD_OBJ_BASE
and use SMBD_OBJ_BASE for a couple of targets where sessionid_tdb and conn_tdb
were used.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
bcfa721a36269d4390ae5ce747cfd3dff6a255ac)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Gregor Beck [Tue, 28 Aug 2012 13:35:58 +0000 (15:35 +0200)]
s3:smbXsrv_tcon: add smbXsrv_tcon_global_traverse()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
89cc865cabdf7f7fd7c26d3da784c1d7f9e1d6b0)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Gregor Beck [Wed, 22 Aug 2012 12:28:31 +0000 (14:28 +0200)]
s3:smbXsrv_session: add smbXsrv_session_global_traverse()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
c3a658f59578899215920a42f5cb568f9368ce13)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Gregor Beck [Thu, 23 Aug 2012 13:21:06 +0000 (15:21 +0200)]
s3:smbd: use session_global_id as session number for pam and utmp
Signed-off-by: Michael Adam <obnox@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit
b288ddd5c0ee7524e30a4fce3ec4f03c19a1764a)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Stefan Metzmacher [Mon, 8 Oct 2012 09:15:50 +0000 (11:15 +0200)]
s3:configure: check that struct utmp.ut_line is large enough for our use case
We use "smb/%u" with a 32-bit number, "smb/
4294967295\0" requires
15 chars (including the '\0').
metze
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
92d53dd7dc8ca71ae28d2a8762524396cd3c6f58)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Gregor Beck [Mon, 27 Aug 2012 09:03:25 +0000 (11:03 +0200)]
s3:smbd: initialize session->global before calling session_claim
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
e24b1041b1f6e5b1c5a258a2cbe058f134a45ed9)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Gregor Beck [Mon, 27 Aug 2012 07:21:58 +0000 (09:21 +0200)]
s3:smbd: remove smbd_server_connection argument from session_claim()
retrieve the server connection from the smbXsrv_session argument instead.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
02b9b79447be46835adf963cca14c618d0c435e6)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Gregor Beck [Thu, 23 Aug 2012 12:47:33 +0000 (14:47 +0200)]
s3:smbd: pass smbXsrv_session instead of user_struct to session_claim() and session_yield()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
4878769f8e6763fbb8347f2ea674c7a861d95564)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Gregor Beck [Mon, 27 Aug 2012 13:18:07 +0000 (15:18 +0200)]
s3:net_status_shares: use connections_forall_read for a read only traversal
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
77f99ece482a11aad50219e64d231b27dbbccbba)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Gregor Beck [Mon, 27 Aug 2012 13:12:36 +0000 (15:12 +0200)]
s3:count_current_connections: do not clear orphaned entries from connections.tdb
This removes one of the last callers of connetions_forall.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
77906e7cdf4c40ab860af8bb42e2c5f3b5501e7d)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Gregor Beck [Tue, 28 Aug 2012 07:31:59 +0000 (09:31 +0200)]
s3:smbcontrol: don't do stack_trace by connection but by server_id.
Inparticular use serverid_traverse_read instead of connections_foralli
to enumerate processes.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
b237bbc0d1afdfea3b6b6335854f92d6fe80a151)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Gregor Beck [Mon, 27 Aug 2012 13:07:08 +0000 (15:07 +0200)]
s3:lib: remove unused function connections_traverse()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
d5c273919d129f884d5fb13e06ad73e01c7176e1)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Gregor Beck [Mon, 27 Aug 2012 12:46:22 +0000 (14:46 +0200)]
s3:rpc_server/srvsvc: remove function net_enum_pipes()
The relevant records are not written to connections.tdb since commit
a781b78417b6d7b875230dd2edcb932445aa4197
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
611e30ea233f0e5dab1439e930ea8544b85ca3b2)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Gregor Beck [Mon, 3 Sep 2012 11:55:50 +0000 (13:55 +0200)]
s3:auth: use const in smb_pam_xxx_session()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
c9a2111b0025156ba70c6eb9fa857e5d639f62b7)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Michael Adam [Thu, 18 Oct 2012 14:14:19 +0000 (16:14 +0200)]
s3:auth: remove duplicate propotypes for smb_pam_claim_session and smb_pam_close_session
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
7aa0d7c55f9cbb3ed96beaf7c4891cadc9bc00ae)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Stefan Metzmacher [Tue, 9 Oct 2012 07:38:36 +0000 (09:38 +0200)]
s3:smbd/utmp: remove ip address from utmp record
1. This was broken since Samba 3.2. when ipv6 support was
added, it only worked for ipv6 addresses.
2. userspace tools only display the hostname field.
3. This is not really portable
metze
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
9b2a3ebf5cfb4613b117ebb83abe92b93e759381)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Michael Adam [Thu, 18 Oct 2012 14:06:42 +0000 (16:06 +0200)]
s3:smbd: remove duplicate prototypes for sys_utmp_claim() an sys_utmp_yield()
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
42b0398bdeae8fd7e8ae92ab3a464c3eba9fb0da)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Stefan Metzmacher [Tue, 9 Oct 2012 12:35:04 +0000 (08:35 -0400)]
s3:smbd: add exit_server to the smbd_shim hooks
This is in preparation of moving sessionid_tdb and conn_tdb
to smbd exclusively.
metze
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
8a1c7a0a660d78786adac483ecafa157c3a3dc2e)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Michael Adam [Thu, 18 Oct 2012 13:59:55 +0000 (15:59 +0200)]
s3:smbd: move initialization of the smbd_shim from smbd_init_globals() to main()
This is in preparation of adding server exit hooks to the shim.
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
8eab264470ee7adea1e448fc29bc8111902a83b0)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Michael Adam [Thu, 18 Oct 2012 13:58:01 +0000 (15:58 +0200)]
s3: fix comment header description for smbd_shim
This was copy'n'pasted from "RPC pipe client"...
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
781db9d1e564797546009aa5a49378b6e70502d7)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Stefan Metzmacher [Wed, 17 Oct 2012 12:59:30 +0000 (14:59 +0200)]
s3:smbd: update sconn->remote_hostname after the netbios session request
Also update the info in the new smbXsrv structure.
This way we can log the remote name in status outputs.
metze
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
980191d189ee1f5a25e74a6bdf141d4c7e4455d5)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Stefan Metzmacher [Mon, 8 Oct 2012 09:18:03 +0000 (11:18 +0200)]
buildtools/wafsamba: only display 'ok' if the result is True
Otherwise we print the raw value.
metze
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
1de9e714756b65b1e15fae044bde065bb2572b16)
Signed-off-by: Stefan Metzmacher <metze@samba.org>