Stefan Metzmacher
b7684f2ac6
s4:libcli/smb2: remove unused 'session_key' from struct smb2_session
...
metze
2012-02-27 12:51:34 +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
Michael Adam
fe24ab4e53
s4:smbcli:smb2: add a random GUID to the transport connection in smb2_transport_init()
...
This GUID is used in the smb2 negprot when max protocol is bigger than 0x0202.
According to section 2.2.3 of the MS-SMB2 document, the Client GUID filed in the
SMB2 negotiate request must be filled with a (non-zero) GUID if there are other
dialects than 0x0202 in the dialects field.
http://msdn.microsoft.com/en-us/library/cc246543%28v=prot.13%29.aspx
Apart from corresponding to the docs, this change makes some of our durable-open
tests (e.g reopen2 and open-oplock) _not_ hang when running against windows 8
preview (which might be still buggy).
Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Thu Feb 23 03:23:57 CET 2012 on sn-devel-104
2012-02-23 03:23:57 +01:00
Michael Adam
6a93475dd0
s4:libcli:smb2: don't allocate the smb2_tree struct earlier than necessary in smb2_connect()
...
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
2012-02-03 11:10:30 +01:00
Michael Adam
97823b69e9
s4:libcli/torture:smb2: change smb2_tree_connect to take a smb2_session instead of smb2_tree arguement.
...
Only the tree->session is needed. This way it is less confusing.
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
2012-02-03 11:10:30 +01:00
Matthias Dieter Wallnöfer
2bc7b8f4c9
s4:libcli/finddcs_nbt.c - free "req" consistently with "finddcs_cldap.c"
...
It is more obvious to free where the context for the first time appears.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-12-23 10:36:19 +01:00
Stefan Metzmacher
35605fa0a3
s4:libcli/rap: the caller should get talloc children from call->ndr_pull_{param,data}
...
This should fix the flakey 'rap.printing.rap_printq_getinfo' test,
see https://git.samba.org/autobuild.flakey/2011-12-16-0022/samba4.stdout
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Dec 16 13:11:42 CET 2011 on sn-devel-104
2011-12-16 13:11:42 +01:00
Stefan Metzmacher
0e04cc2ea4
s4:libcli/rap: call->ndr_push_{param,data} can be talloc childs of 'call'
...
metze
2011-12-16 11:31:48 +01:00
Stefan Metzmacher
17781b1c86
s4:libcli/rap: use talloc_zero() and initialize everything
...
metze
2011-12-16 11:31:48 +01:00
Stefan Metzmacher
850b374ded
s4:libcli/rap: remove unused members from struct rap_call
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Dec 16 10:53:42 CET 2011 on sn-devel-104
2011-12-16 10:53:42 +01:00
Stefan Metzmacher
d0ff10d40c
s4:libcli/rap: initialize call->rcv_datalen
...
metze
2011-12-16 09:20:08 +01:00
Andrew Bartlett
079d1572c2
s4-resolv: fix dns_ex so as to fail correctly when a name does not exist
...
Without this, netbios name lookups do not work, as we never fall back to them.
This caused segfaults from e38d97e042
to
251209bd6f
and then name lookup failure
or timeouts until this patch.
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Dec 14 01:16:37 CET 2011 on sn-devel-104
2011-12-14 01:16:37 +01:00
Stefan Metzmacher
4e57bb0b36
s4:libcli/smb2: mark a request as error if we can't ship it
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Dec 9 15:13:11 CET 2011 on sn-devel-104
2011-12-09 15:13:11 +01:00
Stefan Metzmacher
4486336bd8
s4:libcli/raw: mark a request as error if we can't ship it
...
metze
2011-12-09 13:38:37 +01:00
Matthieu Patou
059523e203
s4-resolver: do not use all the A and AAAA records, those after a NS are not the one we want to use
2011-12-05 18:23:08 +01:00
Stefan Metzmacher
4afbda221c
s4:libcli/raw: implement on top of smbXcli_conn/req
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Nov 30 15:13:36 CET 2011 on sn-devel-104
2011-11-30 15:13:36 +01:00
Stefan Metzmacher
99ef6a4bec
s4:libcli: do the nbss session request within smbcli_sock_connect_*()
...
metze
2011-11-30 13:41:09 +01:00
Stefan Metzmacher
52dd549eb6
s4:libcli/raw: remove unused functions
...
metze
2011-11-30 13:41:08 +01:00
Stefan Metzmacher
b21f344079
s4:libcli: use smbcli_sock_connect() in smbcli_socket_connect()
...
metze
2011-11-30 13:41:08 +01:00
Stefan Metzmacher
4877be53df
s4:libcli: move smbcli_transport_establish() logic into smbcli_socket_connect()
...
metze
2011-11-30 13:41:08 +01:00
Stefan Metzmacher
b51c92a903
s4:libcli: convert smbcli_transport_connect_* to tevent_req
...
metze
2011-11-30 13:41:08 +01:00
Stefan Metzmacher
6b5cfa39f2
s4:libcli/raw: copy smbcli_transport_connect_* to clisocket.c
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Nov 29 17:34:52 CET 2011 on sn-devel-104
2011-11-29 17:34:52 +01:00
Stefan Metzmacher
b3d3395e01
s4:libcli/raw: add transport->ev as copy of transport->socket->event.ctx
...
We'll remove transport->socket soon, but removing transport->ev
will take a bit longer.
metze
2011-11-29 16:00:08 +01:00
Stefan Metzmacher
04fa5b4957
s4:libcli/smb2: make sure only one idle event runs at a time
...
metze
2011-11-29 16:00:08 +01:00
Matthias Dieter Wallnöfer
ad19aa6331
s4:libcli/finddcs_cldap.c - let "finddcs_cldap" work either with the IP address or the domain name
...
This will be useful for a new "samba-tool domain info" command.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-11-26 10:26:52 +01:00
Stefan Metzmacher
4958d7cb44
s4:libcli/smb2: use talloc_zero() in smb2_request_init()
...
metze
2011-11-24 19:02:33 +01:00
Stefan Metzmacher
f132ad32cc
s4:libcli/smb2: fix compiler warning in smb2_push_o16s16_string()
...
metze
2011-11-24 19:02:33 +01:00
Stefan Metzmacher
300343d16c
s4:libcli/smb2: implement on top of smbXcli_conn/req
...
metze
2011-11-24 19:02:33 +01:00
Stefan Metzmacher
88bcdbb16a
s4:finddcs_cldap: debug the correct server address instead of NULL
...
metze
2011-11-10 14:59:10 +01:00
Matthieu Patou
2a8650ed79
s4-resolver: fix bug with DNS servers returning AAAA records when asked for A records
...
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sun Nov 6 03:18:00 CET 2011 on sn-devel-104
2011-11-06 03:18:00 +01:00
Günther Deschner
6e67073900
waf: convert NDR_NBT into shared library.
...
Guenther
2011-11-03 18:35:09 +01:00
Günther Deschner
e426f37b64
librpc: only let NDR_NBT depend on NDR_NBT_BUF.
...
Guenther
2011-11-03 18:35:08 +01:00
Stefan Metzmacher
f07274978a
s4:libcli/smb2: s/SMB_SIGNING_SUPPORTED/SMB_SIGNING_IF_REQUIRED/
...
metze
2011-11-03 16:55:12 +01:00
Stefan Metzmacher
2d55bfd8de
s4:libcli/raw: s/SMB_SIGNING_SUPPORTED/SMB_SIGNING_IF_REQUIRED/
...
metze
2011-11-03 16:55:12 +01:00
Stefan Metzmacher
01ccd59ce0
s4:libcli/smb2: remove unused SMB_SIGNING_AUTO handling
...
metze
2011-11-03 16:55:11 +01:00
Stefan Metzmacher
4fe0e828af
s4:libcli/raw: remove unused SMB_SIGNING_AUTO handling
...
metze
2011-11-03 16:55:11 +01:00
Stefan Metzmacher
22902ef9b8
s4:libcli/smb2: SMB_SIGNING_DEFAULT matches SMB_SIGNING_SUPPORTED on the client for now
...
metze
2011-11-03 16:55:11 +01:00
Stefan Metzmacher
0789fbf697
s4:libcli/raw: SMB_SIGNING_DEFAULT matches SMB_SIGNING_SUPPORTED on the client for now
...
metze
2011-11-03 16:55:11 +01:00
Stefan Metzmacher
f293438abd
s4:libcli/smb2: let SMB_SIGNING_AUTO behave like SMB_SIGNING_SUPPORTED
...
This matches the smb1 behavior.
metze
2011-11-03 16:55:11 +01:00
Stefan Metzmacher
418908eb21
s4:libcli/raw: only use smb signing if required
...
This matches the source3 code, I want to have the behavior
in common before I put the config options in common.
Later we may change this consitently in all code.
metze
2011-11-03 16:55:11 +01:00
Matthieu Patou
251209bd6f
s4-resolver: make it work back with ipv4 only DNS records
...
It turns out that if there is no AAAA record the dns server (bind and MS
windows at least) do not return the A record when just asked for AAAA.
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Wed Nov 2 11:15:34 CET 2011 on sn-devel-104
2011-11-02 11:15:34 +01:00
Michael Adam
530cd2aac6
s4:libcli: in smb2_create_recv, map SMB2_CREATE_DURABLE_HANDLE_RESPONSE buffer smb2_create.out.durable_open
2011-10-30 18:41:22 +01:00
Michael Adam
d01b248d4f
source4/libcli: add bool durable_open to smb2_create.out.
...
The server gives indication whether the open was durable
we should record this.
2011-10-30 18:41:21 +01:00
Andreas Schneider
7b5fb7d9e8
replace: Add don't include unistd.h directly and add uid_wrapper.
2011-10-27 13:32:02 +02:00
Stefan Metzmacher
0d9bd56afb
libcli/smb: merge NEGOTIATE_SECURITY_* flags to smb_constants.h
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Oct 26 11:27:12 CEST 2011 on sn-devel-104
2011-10-26 11:27:12 +02:00
Stefan Metzmacher
ad3cabb6cb
s4:libcli: rename smb_signing.h to smb_raw_signing.h in the install directory
...
metze
2011-10-25 00:24:07 +02:00
Stefan Metzmacher
f3c25bc6a5
libcli/smb: merge LOCKING_ANDX_* and OPLOCK_* defines to smb_constants.h
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Oct 24 17:46:47 CEST 2011 on sn-devel-104
2011-10-24 17:46:47 +02:00
Stefan Metzmacher
2414169241
s4:libcli/raw: remove unuded CMD_REPLY define
...
metze
2011-10-24 16:10:37 +02:00
Stefan Metzmacher
ec7cc700b2
libcli/smb: move more defines to smb_constants.h
...
metze
2011-10-24 16:10:36 +02:00
Stefan Metzmacher
6fef69562b
libcli/smb: move CAP_* defines to smb_constants.h
...
metze
2011-10-24 16:10:36 +02:00