summaryrefslogtreecommitdiff
path: root/source4/libcli
AgeCommit message (Collapse)AuthorFilesLines
2012-02-23s4:smbcli:smb2: add a random GUID to the transport connection in ↵Michael Adam1-1/+5
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-03s4:libcli:smb2: don't allocate the smb2_tree struct earlier than necessary ↵Michael Adam1-5/+5
in smb2_connect() Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
2012-02-03s4:libcli/torture:smb2: change smb2_tree_connect to take a smb2_session ↵Michael Adam2-6/+6
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>
2011-12-23s4:libcli/finddcs_nbt.c - free "req" consistently with "finddcs_cldap.c"Matthias Dieter Wallnöfer1-2/+4
It is more obvious to free where the context for the first time appears. Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-12-16s4:libcli/rap: the caller should get talloc children from ↵Stefan Metzmacher2-1/+6
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-16s4:libcli/rap: call->ndr_push_{param,data} can be talloc childs of 'call'Stefan Metzmacher1-2/+2
metze
2011-12-16s4:libcli/rap: use talloc_zero() and initialize everythingStefan Metzmacher1-8/+3
metze
2011-12-16s4:libcli/rap: remove unused members from struct rap_callStefan Metzmacher1-3/+0
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Dec 16 10:53:42 CET 2011 on sn-devel-104
2011-12-16s4:libcli/rap: initialize call->rcv_datalenStefan Metzmacher1-0/+1
metze
2011-12-14s4-resolv: fix dns_ex so as to fail correctly when a name does not existAndrew Bartlett1-0/+9
Without this, netbios name lookups do not work, as we never fall back to them. This caused segfaults from e38d97e0424f7e5b21c8b7ac0b1f1bac33f19d69 to 251209bd6f6e66ca9bcf28cd652d85d1cd729fdc 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-09s4:libcli/smb2: mark a request as error if we can't ship itStefan Metzmacher1-0/+2
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Dec 9 15:13:11 CET 2011 on sn-devel-104
2011-12-09s4:libcli/raw: mark a request as error if we can't ship itStefan Metzmacher1-0/+2
metze
2011-12-05s4-resolver: do not use all the A and AAAA records, those after a NS are not ↵Matthieu Patou1-0/+16
the one we want to use
2011-11-30s4:libcli/raw: implement on top of smbXcli_conn/reqStefan Metzmacher15-1787/+968
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Nov 30 15:13:36 CET 2011 on sn-devel-104
2011-11-30s4:libcli: do the nbss session request within smbcli_sock_connect_*()Stefan Metzmacher4-147/+108
metze
2011-11-30s4:libcli/raw: remove unused functionsStefan Metzmacher2-76/+0
metze
2011-11-30s4:libcli: use smbcli_sock_connect() in smbcli_socket_connect()Stefan Metzmacher1-5/+11
metze
2011-11-30s4:libcli: move smbcli_transport_establish() logic into smbcli_socket_connect()Stefan Metzmacher2-22/+14
metze
2011-11-30s4:libcli: convert smbcli_transport_connect_* to tevent_reqStefan Metzmacher3-92/+240
metze
2011-11-29s4:libcli/raw: copy smbcli_transport_connect_* to clisocket.cStefan Metzmacher2-124/+123
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Nov 29 17:34:52 CET 2011 on sn-devel-104
2011-11-29s4:libcli/raw: add transport->ev as copy of transport->socket->event.ctxStefan Metzmacher8-6/+9
We'll remove transport->socket soon, but removing transport->ev will take a bit longer. metze
2011-11-29s4:libcli/smb2: make sure only one idle event runs at a timeStefan Metzmacher2-9/+17
metze
2011-11-26s4:libcli/finddcs_cldap.c - let "finddcs_cldap" work either with the IP ↵Matthias Dieter Wallnöfer1-14/+27
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-24s4:libcli/smb2: use talloc_zero() in smb2_request_init()Stefan Metzmacher1-16/+3
metze
2011-11-24s4:libcli/smb2: fix compiler warning in smb2_push_o16s16_string()Stefan Metzmacher1-1/+3
metze
2011-11-24s4:libcli/smb2: implement on top of smbXcli_conn/reqStefan Metzmacher12-867/+426
metze
2011-11-10s4:finddcs_cldap: debug the correct server address instead of NULLStefan Metzmacher1-1/+2
metze
2011-11-06s4-resolver: fix bug with DNS servers returning AAAA records when asked for ↵Matthieu Patou1-2/+4
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-03waf: convert NDR_NBT into shared library.Günther Deschner1-1/+1
Guenther
2011-11-03librpc: only let NDR_NBT depend on NDR_NBT_BUF.Günther Deschner1-1/+1
Guenther
2011-11-03s4:libcli/smb2: s/SMB_SIGNING_SUPPORTED/SMB_SIGNING_IF_REQUIRED/Stefan Metzmacher1-2/+2
metze
2011-11-03s4:libcli/raw: s/SMB_SIGNING_SUPPORTED/SMB_SIGNING_IF_REQUIRED/Stefan Metzmacher1-1/+1
metze
2011-11-03s4:libcli/smb2: remove unused SMB_SIGNING_AUTO handlingStefan Metzmacher1-2/+0
metze
2011-11-03s4:libcli/raw: remove unused SMB_SIGNING_AUTO handlingStefan Metzmacher1-1/+0
metze
2011-11-03s4:libcli/smb2: SMB_SIGNING_DEFAULT matches SMB_SIGNING_SUPPORTED on the ↵Stefan Metzmacher1-0/+2
client for now metze
2011-11-03s4:libcli/raw: SMB_SIGNING_DEFAULT matches SMB_SIGNING_SUPPORTED on the ↵Stefan Metzmacher1-0/+1
client for now metze
2011-11-03s4:libcli/smb2: let SMB_SIGNING_AUTO behave like SMB_SIGNING_SUPPORTEDStefan Metzmacher1-7/+1
This matches the smb1 behavior. metze
2011-11-03s4:libcli/raw: only use smb signing if requiredStefan Metzmacher1-2/+2
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-02s4-resolver: make it work back with ipv4 only DNS recordsMatthieu Patou1-16/+25
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-10-30s4:libcli: in smb2_create_recv, map SMB2_CREATE_DURABLE_HANDLE_RESPONSE ↵Michael Adam1-0/+7
buffer smb2_create.out.durable_open
2011-10-30source4/libcli: add bool durable_open to smb2_create.out.Michael Adam1-0/+1
The server gives indication whether the open was durable we should record this.
2011-10-27replace: Add don't include unistd.h directly and add uid_wrapper.Andreas Schneider1-2/+1
2011-10-26libcli/smb: merge NEGOTIATE_SECURITY_* flags to smb_constants.hStefan Metzmacher1-6/+0
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Oct 26 11:27:12 CEST 2011 on sn-devel-104
2011-10-25s4:libcli: rename smb_signing.h to smb_raw_signing.h in the install directoryStefan Metzmacher1-1/+1
metze
2011-10-24libcli/smb: merge LOCKING_ANDX_* and OPLOCK_* defines to smb_constants.hStefan Metzmacher1-34/+0
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Oct 24 17:46:47 CEST 2011 on sn-devel-104
2011-10-24s4:libcli/raw: remove unuded CMD_REPLY defineStefan Metzmacher1-2/+0
metze
2011-10-24libcli/smb: move more defines to smb_constants.hStefan Metzmacher1-106/+0
metze
2011-10-24libcli/smb: move CAP_* defines to smb_constants.hStefan Metzmacher1-18/+0
metze
2011-10-22s4:finddcs_cldap: talloc free old memory before allocating a new netlogon structStefan Metzmacher1-0/+1
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sat Oct 22 04:55:54 CEST 2011 on sn-devel-104
2011-10-22s4:finddcs_cldap: close the socket when it's not used anymoreStefan Metzmacher1-1/+2
The amount of possible fd's might be restricted, so close them early. metze