1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-12 20:58:37 +03:00

1610 Commits

Author SHA1 Message Date
Stefan Metzmacher
2d2911c788 libcli/smb2: the session key for SMB2 signing is truncated to 16 bytes
To make that work (as a client) with aes128 and aes256 krb5 keys
we need to use gsskrb5_get_subkey().

metze
(This used to be commit 0c6d988f2083067e1ac7b07a492f88cefd3ba906)
2008-07-28 16:15:23 +02:00
Stefan Metzmacher
35bd7a6378 libcli/smb2: fix per session signing state
metze
(This used to be commit 8bc12dc77a59e792830d96e84a4e8d1b2c651505)
2008-07-28 14:09:45 +02:00
Stefan Metzmacher
4355b31730 libcli/smb2: sign SMB2 Logoff requests
metze
(This used to be commit 35ee165b146b9157b0cff49e1139a0cb37d98926)
2008-07-28 14:09:45 +02:00
Andrew Bartlett
853194c308 More 'must be ignored' options from the MS-SMB doc.
Also in particular the 'sync' flags (which Samba has traditionally
ignored).

Thanks to Olivier Salamin <olivier.salamin@gmail.com> for pointing out
more flags that needed to be handled.

Andrew Bartlett
(This used to be commit 370bb39cd79fe49efd36a1ceb3e896d386e6d3ce)
2008-07-18 18:40:19 +10:00
Andrew Bartlett
e92125e631 Ignore and handle more NT Create & X options.
The MS-SMB document explains that some of these options should be
ignored.  The test proves it.

/* Must be ignored by the server, per MS-SMB 2.2.8 */
/* Must be ignored by the server, per MS-SMB 2.2.8 */

If we implement HSM in samba4 (likely) we should honour this bit.
/* Don't pull this file off tape in a HSM system */

Andrew Bartlett
(This used to be commit 502739ff90d56d2c9aabe8e224317f6ceb175c17)
2008-07-16 14:00:18 +10:00
Andrew Bartlett
403f4f94ff Make up a full hostname for ldapi connections.
The DIGEST-MD5 SASL method requires a hostname, so provide one.

Andrew Bartlett
(This used to be commit edfb2ed1f22bc735af5a0c3d3ae6ab6771d28f2c)
2008-07-15 15:10:29 +10:00
Andrew Bartlett
ab00b65dde Cleanup ldap_bind_sasl.
With these changes, we don't leak the LDAP socket, and don't reset all
credentials feature flags, just the ones we are actually incompatible
with.

Andrew Bartlett
(This used to be commit 72e52a301102941c41ab423e0212fe9a1aed0405)
2008-07-15 15:08:57 +10:00
Stefan Metzmacher
997f539bf5 libcli/raw: remove unused smb_raw_max_trans_data() function
metze
(This used to be commit d235ce673705641e06b4ad5f5679e146b59a19e1)
2008-07-07 20:59:18 +02:00
Stefan Metzmacher
efaf4cedb2 libcli/raw: make multi fragmented nttrans requests possible
metze
(This used to be commit a6aa055097313975299f214d8ebe8d45aa51d10a)
2008-07-07 18:10:08 +02:00
Stefan Metzmacher
848ab7fa3b libcli/raw: trans(2) setup count is uint8_t
metze
(This used to be commit 48ccb51caf7976ec07c8a9bfc1afd3076bf4ee22)
2008-07-07 18:10:07 +02:00
Stefan Metzmacher
fd1ce8c263 libcli/raw: remove unused smbcli_request_receive_more() function
metze
(This used to be commit e1d81388fcabba9a947ed0be9ccae875e2b19135)
2008-07-07 18:10:07 +02:00
Stefan Metzmacher
1777734240 libcli/raw: use the new recv_helper infrastructure for trans/trans2 replies
metze
(This used to be commit ec67c61b6a82e4f39a15f37a98ae3fe93bb81316)
2008-07-07 18:10:03 +02:00
Stefan Metzmacher
b4726d48e5 libcli/raw: use the new recv_helper infrastructure for nttrans replies
metze
(This used to be commit 5bf136e233e26b4372155f494bae5118ef777a76)
2008-07-07 13:43:13 +02:00
Stefan Metzmacher
7718a89222 libcli/raw: add a recv_helper hook infrastructure
The recv helper will be called when a response comes
and the recv helper can decide to let the request
on the SMBCLI_REQUEST_RECV when more reponse packets
are expected. It's up to the helper function
to keep a reference to the in buffers, each incoming
response overwrites req->in.

metze
(This used to be commit 6d84af89ba96627abe142ba7080c24ae2421ed6c)
2008-07-07 13:43:13 +02:00
Stefan Metzmacher
70ccb7e7ce libcli/raw: the nttrans setup count is only 8-bit
metze
(This used to be commit a65599cc83a12ec61e5a6ba6ad9628619a0dc8a3)
2008-07-07 13:43:12 +02:00
Michael Adam
4cd722b912 pynbt: eliminate "initialization from incompatible pointer type" warning
by fixing the signature of py_nbt_node_init().

Jelmer - please check!

Michael
(This used to be commit a7ee17a10f330297dc4d9d15499276b3985c7a51)
2008-06-27 09:56:26 +02:00
Jelmer Vernooij
cceabcd2a4 Use friendly NTSTATUS message in python code when possible.
(This used to be commit 09cf8c7dd82bb95e2f8782782286869654d96375)
2008-06-17 14:21:02 +02:00
Simo Sorce
2daf2897d5 Use a custom init function for samba4 that sets a samba4
specific debug function.
By default do not debug, this is the most appropriate action for a library
as we cannot assume what stderr is use for in the main app.
The main app is responsible to set ev_debug_stderr if they so desire.
(This used to be commit e566a2f308ac6fb4b526a744f7059b565670aea5)
2008-06-14 13:00:53 -04:00
Simo Sorce
929adc9efa Make up the right dependencies now that ldb depends on libevents
(This used to be commit 3b8eec7ca334528cad3cdcd5e3fc5ee555d8d0e0)
2008-06-14 11:59:19 -04:00
Jelmer Vernooij
230503ad84 Add working Python bindings for NBT.
(This used to be commit 9c88f5e1de9db34751f16c2247fa91ae2445c5f7)
2008-06-11 00:05:58 +02:00
Andrew Tridgell
1c33953ae2 make signing per session in the SMB2 client library
Thanks to Metze for spotting this
(This used to be commit e9fd9b821c04d1cb7b574f539dd8169611e662aa)
2008-06-07 08:30:51 -07:00
Andrew Tridgell
e97cf207fa added server side SMB2 signing
(This used to be commit 8e919dcb0826a5b25d037ee6144af5f7cb21f3ae)
2008-06-06 22:10:30 -07:00
Andrew Tridgell
3df3bf577d ensure we don't end up with a partially initialised EA structure
(This used to be commit 388f4fde3655146bf57b4c51c59c39f475aa7fe8)
2008-06-06 10:53:00 -07:00
Andrew Tridgell
7c926ff115 SMB2 signing now works. The spec was wrong (and will be fixed in the
next version)
(This used to be commit 436cb17b869e2d6cc57936ccc5e81680fb992341)
2008-06-03 14:29:27 +10:00
Andrew Tridgell
3850d47fef updated some info levels based on WSPP docs
(This used to be commit f84620324a8cebcd2fd19388d910928ca1ad1334)
2008-06-02 11:02:57 +10:00
Andrew Tridgell
beaa01e403 implemented client side SMB2 signing
This doessn't work against Windows yet, and I've submitted a WSPP
request for clarification of the docs to try and find out
why. Meanwhile this is no worse than what we had, as it only gets used
when the server demands signing, and we didn't work then anyway.
(This used to be commit b788096add3586d7277efcd3bf5ca7f3a604cb7a)
2008-05-30 17:03:54 +10:00
Andrew Tridgell
c86dc11be6 added support for returning the maximal access MXAC tag in SMB2 create
(This used to be commit 4eb49335d5f0319f9aa47ded5215a2977d3336bf)
2008-05-29 19:16:26 +10:00
Andrew Tridgell
f6b678b57e fixed offset for maximal access response
(This used to be commit ddd0bb32510d615c7b943fb4ce4c9c275b98ab89)
2008-05-29 18:23:00 +10:00
Andrew Tridgell
f4077a05cb updated comment based on MS-SMB2 docs
(This used to be commit 5754cc13514a0f5fe4c47ce53521c256c9d96487)
2008-05-28 21:48:26 +10:00
Andrew Tridgell
0be9746e1f ensure we don't change the incoming blobs in a SMB2 create
(This used to be commit a6cc89fffe8c149b540f2125cea57f31331d5460)
2008-05-28 16:58:34 +10:00
Andrew Tridgell
773f5cce80 expose a function for pushing all SMB2 create blobs
(This used to be commit f5985a0490e4105a9b0208f6b7b19e635db324f9)
2008-05-28 16:27:38 +10:00
Andrew Tridgell
2173169e19 added support for all of the known SMB2 create tags in our client
library
(This used to be commit 597b38e97b01d2137e6ac96ca07cd56fadb2c09e)
2008-05-28 15:27:50 +10:00
Jelmer Vernooij
1284308a35 Use variable for ndr_netlogon.o path.
(This used to be commit b5d9d7a0affb4dcd8b89830e6967e4a14b512619)
2008-05-27 18:20:29 +02:00
Andrew Tridgell
8daeee5c5d ensure that we honor SMB2 read min_count properly
(This used to be commit 318038d6f670efffa96d8b0db63f46b3752e1cd3)
2008-05-27 18:20:23 +10:00
Andrew Tridgell
cb36437db2 added support for the output fields of SMB2 close
(This used to be commit 2633bc749792c224acc73a2e4ca723404331c19c)
2008-05-27 16:43:36 +10:00
Andrew Tridgell
9691856569 cope better with read only files in smb2_deltree
(This used to be commit 88a2c7b2f44f160836e477e460812df557204f51)
2008-05-27 14:06:27 +10:00
Andrew Tridgell
2814868e93 don't alter the in blobs in a SMB2 create, otherwise two calls in a
row will fail
(This used to be commit 3b811a52fe9a8356337ad149d01a3498c09d900a)
2008-05-27 12:42:19 +10:00
Jelmer Vernooij
dce310ef4e Remove evil hack which breaks Python bindings.
(This used to be commit 1c179566cb39eb09e522dbce69230472a5d4e655)
2008-05-26 13:31:57 +02:00
Andrew Tridgell
2ad2bdda89 stricter checks for valid inputs in SMB2 open and lock
(This used to be commit a7b5689a73adde59de28770aa3949660441291ea)
2008-05-26 15:02:43 +10:00
Jelmer Vernooij
75e7962d2e Add convenience functions for setting Python objects from errors.
(This used to be commit f1de723b89251cbc8140b838941f304a34871bf3)
2008-05-24 22:13:32 +02:00
Jelmer Vernooij
f9c36fae75 Export functions for setting NTSTATUS and WERRORs in python.
(This used to be commit 4bcb92d2d49d90863b1e64b15d055517fbfd263c)
2008-05-24 21:38:33 +02:00
Jelmer Vernooij
73b789b6d2 Add docstrings to a couple more python modules.
(This used to be commit b4560c90e5e8d3a35367d3a21d361dc4c9c0de23)
2008-05-24 04:01:57 +02:00
Jelmer Vernooij
a46450810b Regenerate with SWIG 1.3.35.
(This used to be commit ce063eca498036937f99161a1f12e076c2ab313f)
2008-05-23 03:22:56 +02:00
Andrew Tridgell
ec7a6ee8ab fix make test for EAs again
- go back to 4 byte alignment until I work out the rules that Vista
  wants more exactly
- add the zero sized EA handling for SMB2 more generically
(This used to be commit 326b69bc8064cbea357864cecd6bd27b50c57184)
2008-05-23 00:07:12 +10:00
Andrew Tridgell
d5def936fe pass in the required alignment to the EA construction routines
(This used to be commit af31030e0b78b6b220740529901ec8d2d9f5a3fe)
2008-05-22 22:46:29 +10:00
Andrew Tridgell
a6e5c70da7 added a define for all valid file attributes
(This used to be commit 198ed9336756f973cebd7cc3df7f51e2c4575205)
2008-05-22 17:54:06 +10:00
Andrew Tridgell
fd7dc46f50 Merge commit 'origin/v4-0-test' into v4-0-test
(This used to be commit d7f3348c891e14de0e1b195714468ff998400f60)
2008-05-22 16:09:10 +10:00
Andrew Tridgell
dec930448f fixed parsing of the SMB2 ALL_INFO qfileinfo level
(This used to be commit a7be5ba22e0cf2c61501f5a05e64673f31ba145c)
2008-05-22 14:49:21 +10:00
Jelmer Vernooij
5ce59419a0 Fix CFLAGS for SWIG files.
(This used to be commit 8ee4f075046e0b181ec8a4ac1eaf3ea5621a56bf)
2008-05-22 02:13:26 +02:00
Jelmer Vernooij
49706ab19b Move more modules inside of the samba package.
(This used to be commit 9b39e99f48266a54ed0b8890c2efde218b4b118a)
2008-05-21 23:59:34 +02:00