1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
Commit Graph

872 Commits

Author SHA1 Message Date
Andrew Bartlett
8ea795672d s3-selftest: make ntlm_auth test more robust to bad input
If we do not know the helper protocol, make sure to error.

Andrew Bartlett
2012-03-01 22:04:46 +11:00
Andrew Bartlett
eca3a14870 s3-selftest: Add more tests for ntlm_auth 2012-03-01 22:04:46 +11:00
Stefan Metzmacher
65d42ab727 s3:torture/test_smb2: test path based calls during reauth in SMB2-MULTI-CHANNEL
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Feb 29 07:23:14 CET 2012 on sn-devel-104
2012-02-29 07:23:14 +01:00
Stefan Metzmacher
300ab04a07 s3:torture/test_smb2: test handle based calls during reauth in SMB2-MULTI-CHANNEL
metze
2012-02-29 05:49:11 +01:00
Stefan Metzmacher
2fced53cfe s3:torture/test_smb2: do a reauth over multiple channels in SMB2-MULTI-CHANNEL
metze
2012-02-29 05:49:11 +01:00
Stefan Metzmacher
670ea3e3a3 s3:torture/test_smb2: add a 3rd channel to SMB2-MULTI-CHANNEL
metze
2012-02-29 05:49:10 +01:00
Stefan Metzmacher
c0dac92b42 s3:torture/test_smb2: expect FILE_CLOSED on invalid handles in SMB2-MULTI-CHANNEL
metze
2012-02-29 05:49:10 +01:00
Volker Lendecke
c5c67cacd9 s3: Add a test that makes a chained open break an oplock
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Wed Feb 29 01:13:03 CET 2012 on sn-devel-104
2012-02-29 01:13:01 +01:00
Stefan Metzmacher
43dd033618 s3:torture/test_smb2: test a tree_connect during reauth
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Feb 28 06:58:44 CET 2012 on sn-devel-104
2012-02-28 06:58:44 +01:00
Stefan Metzmacher
c64a85ee19 s3:torture/test_smb2: check directory listing during reauth
metze
2012-02-28 05:22:50 +01:00
Michael Adam
727f3ee6ac s3:libsmb:smb2: pass previous session ID to session setup, not previous session
We only need the session, and under some circumstances, it might complicate
things for the caller to have to cope with the whole structure (talloc...).
2012-02-28 00:08:52 +01:00
Stefan Metzmacher
b8407c22d9 s3:torture/test_smb2: show that a session is not valid for path based calls during reauth
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Feb 27 16:29:02 CET 2012 on sn-devel-104
2012-02-27 16:29:02 +01:00
Stefan Metzmacher
f8cd6e8b59 s3:torture/test_smb2: show that a session is valid during a multi-leg reauth
metze
2012-02-27 14:55:15 +01:00
Stefan Metzmacher
1444d4900f s3:torture/test_smb2: fix missleading file name in reauth test
metze
2012-02-27 14:55:15 +01:00
Stefan Metzmacher
aa4331be9e libcli/smb/smbXcli: maintain smb2 channel_signing_key separate from the signing_key
The signing_key is fix across all channels and is used for session setups
on a channel binding.

Note:
 - the last session setup response is signed with the new channel signing key.
 - the reauth session setups are signed with the channel signing key.

It's also not needed to remember the main session key.

metze
2012-02-27 12:51:33 +01:00
Stefan Metzmacher
18cd0b789e s3:torture/test_smb2: remove explicit smb2_signing_check_pdu()
smb2cli_session_set_session_key() already checks the signature
and that function really knows the signing key.

metze
2012-02-27 12:51:33 +01:00
Stefan Metzmacher
c45cb3353b s3:torture/test_smb2: a reauth doesn't update the session/signing key
metze
2012-02-27 12:51:33 +01:00
Andrew Bartlett
f14dffa815 s3-selftest: Verify GK and GF flag behaviour
At least this ensures that the helper has not crashed, it will require
a little more to ensure that the values are correct.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Feb 24 03:53:38 CET 2012 on sn-devel-104
2012-02-24 03:53:38 +01:00
Andrew Bartlett
b947d84c88 s3-selftest: run ntlm_auth against winbindd in make test 2012-02-24 12:12:48 +11:00
Volker Lendecke
e673afada1 s3-vfstest: Return an error code if cmd failed
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Wed Feb 22 23:56:18 CET 2012 on sn-devel-104
2012-02-22 23:56:17 +01:00
Volker Lendecke
ee2e3d56a2 s3-vfstest: Fake smb_requests
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Wed Feb 22 17:32:28 CET 2012 on sn-devel-104
2012-02-22 17:32:24 +01:00
Volker Lendecke
b0c21afffe s3-vfstest: Initialize some more 2012-02-22 15:48:06 +01:00
Volker Lendecke
e9b9ba14c0 s3-vfstest: Remove an unused variable
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Mon Feb 20 17:01:11 CET 2012 on sn-devel-104
2012-02-20 17:01:11 +01:00
Volker Lendecke
8679dc711f s3: Fix some blank line endings 2012-02-19 21:36:33 +01:00
Volker Lendecke
810d2f55c1 s3-vfstest: Initialize some more 2012-02-19 21:36:33 +01:00
Christopher R. Hertel (crh)
b5b204184a Rename obscure defined constants.
Replaced the undescriptive SMB_PORT1 and SMB_PORT2 defined constants
with the slightly more descriptive names NBT_SMB_PORT and TCP_SMB_PORT.
Also replaced several hard-coded references to the well-known port
numbers (139 and 445, respectively) as appropriate.

Small changes to clarify some comments regarding the two transport
types.

Signed-off-by: Simo Sorce <idra@samba.org>

Autobuild-User: Simo Sorce <idra@samba.org>
Autobuild-Date: Thu Feb 16 08:29:41 CET 2012 on sn-devel-104
2012-02-16 08:29:41 +01:00
Volker Lendecke
a0e44c30e2 lib/util: Add hex_encode_buf
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Mon Feb  6 09:15:33 CET 2012 on sn-devel-104
2012-02-06 09:15:32 +01:00
Volker Lendecke
b1a544fc80 s3-vfstest: Add removexattr 2012-02-02 20:35:27 +01:00
Volker Lendecke
dbe9ff2999 s3-vfstest: Add setxattr 2012-02-02 20:35:27 +01:00
Volker Lendecke
0a000f1ca7 s3-vfstest: Add listxattr 2012-02-02 20:35:27 +01:00
Volker Lendecke
7d72424f01 s3-vfstest: Add getxattr 2012-02-02 20:35:27 +01:00
Volker Lendecke
3bea5a147b s3-vfstest: Fix an uninitialized read in close
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Feb  2 18:00:58 CET 2012 on sn-devel-104
2012-02-02 18:00:58 +01:00
Volker Lendecke
25d3a2e83c s3-vfstest: Fix a double-free on closing a file
"mem_ctx" will be gone after we leave the routine
2012-02-02 16:26:16 +01:00
Volker Lendecke
207af5d9e3 s3-vfstest: Correctly initialize the connection path 2012-02-01 20:19:31 +01:00
Volker Lendecke
1bd7497a18 s3-vfstest: Fix some uninitialized vars 2012-02-01 20:19:31 +01:00
Volker Lendecke
3c6bd8c1ef s3-vfstest: Fix some pointless statics 2012-02-01 20:19:31 +01:00
Volker Lendecke
1168700d91 s3-vfstest: Fix a typo 2012-02-01 20:19:30 +01:00
Volker Lendecke
435f817329 s3-vfstest: Fix some nonblank line endings 2012-02-01 20:19:30 +01:00
Volker Lendecke
45e61fcf61 s3: Add a "lock_order" argument to db_open
This will be used to enforce a lock hierarchy between the databases. We have
seen deadlocks between locking.tdb, brlock.tdb, serverid.tdb and notify*.tdb.
These should be fixed by refusing a dbwrap_fetch_locked that does not follow a
defined lock hierarchy.
2012-01-18 14:48:04 +01:00
Günther Deschner
4c03f08c0d s3-pdbtest: only test trusted domains when pdb backends offers trusted domain support.
Guenther
2012-01-09 10:34:05 +01:00
Volker Lendecke
76ca46ecfe s3: Avoid a potential alignment requirement issue
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Jan  6 18:58:11 CET 2012 on sn-devel-104
2012-01-06 18:58:11 +01:00
Volker Lendecke
6529e520ee s3: Use DELETE_ON_CLOSE instead of unlink 2012-01-06 17:23:43 +01:00
Andrew Bartlett
662c557b36 s3-torture convert smb2 test to use auth_generic/gensec for NTLMSSP
Signed-off-by: Stefan Metzmacher <metze@samba.org>

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Jan  6 12:09:12 CET 2012 on sn-devel-104
2012-01-06 12:09:12 +01:00
Stefan Metzmacher
893d7921a1 s3:SMB2-SESSION-RECONNECT: also expect NETWORK_NAME_DELETED is signing isn't used
metze
2012-01-06 08:31:16 +01:00
Volker Lendecke
f994f0a342 Fix the local-memcache test for 64-bit
The memcache test walks the purge functionality. The maximum memcache size also
takes all memcache internal headers into account. Those headers contain
pointers, so on 64-bit they take more space...

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Jan  5 22:01:00 CET 2012 on sn-devel-104
2012-01-05 22:01:00 +01:00
Volker Lendecke
f97216eb4a s3: Add a test for proper brlock cleanup
We need to improve the server here.

Maybe we should validate the brlock entry whenever we detect a read/write being
blocked from locking? This is not our hot code path anyway, and it would gain
us significant robustness. The code might become quite a bit simpler as well.
2012-01-05 20:29:59 +01:00
Volker Lendecke
515dfe6c7f s3: Clarify what CLEANUP1 does 2012-01-05 20:29:59 +01:00
Volker Lendecke
0d0141893e s3: Add a test excercising the share mode cleanup routine 2012-01-05 13:09:36 +01:00
Volker Lendecke
cd3a935d0e s3: Fix a cut&paste error
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue Jan  3 16:57:44 CET 2012 on sn-devel-104
2012-01-03 16:57:44 +01:00
Volker Lendecke
0923e7fa39 s3: Fix a typo 2012-01-03 15:22:03 +01:00