Christian Ambach
55870b0bf9
s3:torture: add idmap_tdb_common test code
2012-05-01 09:32:11 +02:00
Volker Lendecke
99fa29ae09
s3-dbwrap: Add dbwrap_record_watch_send/recv
...
With this API you can asynchronously wait for a record to be modified
2012-04-19 22:24:18 +02:00
Andrew Bartlett
4471778d78
s3-passdb: Remove unused sampass->pass_must_change_time
...
There is no need to call pdb_set_pass_must_change_time() because
nothing ever consults that value. It is always calculated from the
domain policy.
Also, this means we no longer store the value in LDAP. The value
would only ever be set when migrating from tdbsam or smbpasswd, not on
password changes, so would become incorrect over time.
Andrew Bartlett
2012-04-19 12:34:33 +02:00
Volker Lendecke
ae691cd9cc
s3: Add two notify benchmark tests
2012-04-17 10:21:02 +02:00
Volker Lendecke
842b86c45f
s3: Make torture_nprocs globally available
2012-04-17 10:21:02 +02:00
Volker Lendecke
74baae782f
s3: Add msg_channel
...
This is a tevent_based variant of messaging_register
2012-04-17 10:21:01 +02:00
Volker Lendecke
48a485b639
s3: Add a second ctdb connect library
...
The existing one is not async at all.
2012-04-17 10:21:01 +02:00
Andrew Bartlett
6aa12fcb30
build: Remove SMB_OFF_T, replace with off_t
...
Now that we always require a 64 bit off_t, we no longer need SMB_OFF_T.
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Apr 6 01:47:43 CEST 2012 on sn-devel-104
2012-04-06 01:47:43 +02:00
Andrew Bartlett
2320b2144f
build: Remove SMB_STRUCT_DIRENT define
2012-04-05 02:39:09 +02:00
Jeremy Allison
d497434434
Who would have guessed - checking returns from strlcat found a memory overwrite bug :-).
2012-03-30 21:26:07 +02:00
Jeremy Allison
959516d61b
More strlcat/strlcpy truncate checks.
2012-03-30 21:26:07 +02:00
Jelmer Vernooij
32fd6d639a
lib/util: Remove dummy wrapper for getgrgid().
2012-03-24 15:26:36 +01:00
Jelmer Vernooij
43f275008f
lib/util: Remove dummy wrapper for getpwuid().
2012-03-24 15:25:05 +01:00
Stefan Metzmacher
100b92b2cc
s3:torture: fix segfault in LOCAL-TALLOC-DICT
...
talloc_dict_set() expects a pointer to an talloc'ed pointer.
metze
2012-03-13 08:26:35 +01:00
Stefan Metzmacher
57ddd38c1a
s3:torture: talloc_dict_traverse() returns the number of entries
...
metze
2012-03-13 08:26:35 +01:00
Volker Lendecke
c9870a62f5
s3: Add a new set of andx chain handling routines
...
This is in preparation of getting rid of chain_reply.
2012-03-10 15:34:11 +01:00
Andrew Bartlett
cfa33c4567
s3-selftest: Add tests for ntlm_auth gss-spnego client and server
...
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Mar 2 07:05:44 CET 2012 on sn-devel-104
2012-03-02 07:05:44 +01:00
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