92786aebf1
s4-resolve: fixed a crash bug on timeout
...
We were creating the name resolution context as a child of lp_ctx,
which meant when we gave up on a connection the timer on name
resolution kept running, and when it timed out the callback crashed as
the socket was already removed.
2009-09-19 08:23:03 -07:00
01b05df766
s4:libcli/smb2: use new SMB2_DIVELECT_REVISION constants
...
Also send them in the order a windows client would
send them (the lowest first).
metze
2009-05-26 09:50:43 +02:00
5b55e47b71
s4:libcli/smb2: fill in transport->negotiate.secblob with the correct data
...
metze
2009-05-20 19:58:36 +02:00
8595f260eb
s4 libcli: Add back Longhorn beta dialect as a constant
...
Also tweak how the dialect array and count is initialized.
2009-03-18 11:03:33 -07:00
6c08e329fa
s4 libcli: Add SMB2.1 dialect to libcli
...
Negotiate 2.1 if possible, leave negotiate results in
transport->negotiate.dialect_revision.
2009-03-17 13:43:27 -07:00
183c379fe5
s4:lib/tevent: rename structs
...
list=""
list="$list event_context:tevent_context"
list="$list fd_event:tevent_fd"
list="$list timed_event:tevent_timer"
for s in $list; do
o=`echo $s | cut -d ':' -f1`
n=`echo $s | cut -d ':' -f2`
r=`git grep "struct $o" |cut -d ':' -f1 |sort -u`
files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4`
for f in $files; do
cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp
mv $f.tmp $f
done
done
metze
2008-12-29 20:46:40 +01:00
29a20af75f
Remove use of global_loadparm for SMB2 client connections.
2008-11-02 16:20:00 +01:00
c537f7a914
Fix the build.
2008-11-02 05:49:36 +01:00
b034c519f5
Add gensec_settings structure. This wraps loadparm_context for now, but
...
should in the future only contain some settings required for gensec.
2008-11-02 02:05:48 +01:00
d9cbf2b0d9
Remove another use of global_loadparm.
2008-11-01 23:26:36 +01:00
7942333712
Remove another use of global_loadparm.
2008-11-01 23:09:18 +01:00
9293c59e25
Move calls to lp_* higher up in the call stack.
2008-11-01 22:42:09 +01:00
57a60f0920
Move lp_*() calls a bit higher up the calls tack.
2008-11-01 22:13:47 +01:00
95940d75ec
s4:libcli/smb2: remove unused header
...
This hopefully fixes the build with internal popt.
metze
2008-09-29 07:43:50 +02:00
5a5e2df569
for use in python we need to use global_loadparm
2008-09-24 18:10:23 -07:00
b1f17b23fe
- use the current dialect first, for servers that only look at the
...
first dialect
- allow override of SMB2 port in client code
2008-09-24 18:10:23 -07:00
f086e796d6
libcli/smb2: use smb2 signing in auto mode if the server supports it
...
metze
(This used to be commit fe74faf13d
)
2008-08-14 13:13:49 +02:00
35bd7a6378
libcli/smb2: fix per session signing state
...
metze
(This used to be commit 8bc12dc77a
)
2008-07-28 14:09:45 +02:00
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 b788096add
)
2008-05-30 17:03:54 +10:00
9c6a35ad9b
remember the server time fields on negotiate. Needed for gentest
...
(This used to be commit 7989ca861d
)
2008-05-20 11:57:43 +10:00
c7d7577fb9
private -> private_data for struct smb2_request
...
(This used to be commit 67290e0ad6
)
2008-05-16 15:03:58 +10:00
b0f34bc8ca
libcli/smb2: also offer the SMB2 dialect that what used in longhorn beta3
...
With this smbtorture works against longhorn beta3 again,
hopefully it still works with new versions...
metze
(This used to be commit 874924a85a
)
2008-04-17 01:58:24 +02:00
afe3e8172d
Install public header files again and include required prototypes.
...
(This used to be commit 47ffbbf674
)
2008-04-02 04:53:27 +02:00
b640f475be
updated SMB2 code for getinfo according to WSPP docs
...
- Updated getinfo structures and field names
- also updated the protocol revision number handling to reflect
new docs
(This used to be commit 3aaa2e86d9
)
2008-02-14 17:11:36 +11:00
e94d710b0b
updated SMB2 tcon as per WSPP docs
...
(This used to be commit 5913e3e549
)
2008-02-13 10:13:28 +11:00
ccc27e681c
fixed up the .in side of SMB2 negprot
...
fixed the input side of the SMB2 negprot structure and parsers according to the documentation
(This used to be commit 55af8acc7b
)
2008-02-12 12:54:44 +11:00
771b347f9b
r26644: Janitorial: Pass resolve_context explicitly to various SMB functions, should help fix the build for OpenChange.
...
(This used to be commit 385ffe4f4c
)
2008-01-02 12:48:03 -06:00
4b0199a549
r26409: Pass smb ports along.
...
(This used to be commit 2833f320de
)
2007-12-21 05:49:42 +01:00
5f4842cf65
r26376: Add context for libcli_resolve.
...
(This used to be commit 459e1466a4
)
2007-12-21 05:49:12 +01:00
da2ae49953
r26337: Move global_loadparm to a higher caller.
...
(This used to be commit baa5bcd303
)
2007-12-21 05:48:47 +01:00
2f8dc4f48f
r26266: Remove more global_loadparm uses.
...
(This used to be commit 99113075c4
)
2007-12-21 05:47:42 +01:00
2151cde580
r25554: Convert last instances of BOOL, True and False to the standard types.
...
(This used to be commit 566aa14139
)
2007-10-10 15:07:55 -05:00
2f3551ca7c
r25446: Merge some changes I made on the way home from SFO:
...
2007-09-29 More higher-level passing around of lp_ctx.
2007-09-29 Fix warning.
2007-09-29 Pass loadparm contexts on a higher level.
2007-09-29 Avoid using global loadparm context.
(This used to be commit 3468952e77
)
2007-10-10 15:07:34 -05:00
37d53832a4
r25398: Parse loadparm context to all lp_*() functions.
...
(This used to be commit 3fcc960839
)
2007-10-10 15:07:25 -05:00
ffeee68e4b
r25026: Move param/param.h out of includes.h
...
(This used to be commit abe8349f9b
)
2007-10-10 15:05:38 -05:00
0479a2f1cb
r23792: convert Samba4 to GPLv3
...
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
(This used to be commit fcf38a38ac
)
2007-10-10 14:59:12 -05:00
7c50eec25e
r17318: make better usage of the composite api
...
metze
(This used to be commit 683fc25f65
)
2007-10-10 14:15:11 -05:00
4ac2be9958
r13924: Split more prototypes out of include/proto.h + initial work on header
...
file dependencies
(This used to be commit 1228358767
)
2007-10-10 13:52:24 -05:00
111a920fdb
r12116: got rid of composite_trigger_done() and composite_trigger_error(), and
...
instead make the normal composite_done() and composite_error()
functions automatically trigger a delayed callback if the caller has
had no opportunity to setup a async callback
this removes one of the common mistakes in writing a composite function
(This used to be commit f9413ce792
)
2007-10-10 13:47:11 -05:00
771d4fab26
r11796: Two more uses of !composite_is_ok
...
(This used to be commit 7256157d01
)
2007-10-10 13:46:28 -05:00
27bab09cdb
r11795: used a couple more of volkers composite helper functions. They
...
certainly make the code more compact.
(This used to be commit 872e2a49d8
)
2007-10-10 13:46:28 -05:00
552c0111a1
r11791: simplify the SMB2 connect code following some suggestions from volker
...
(This used to be commit 71e3e61941
)
2007-10-10 13:46:28 -05:00
e9eb560685
r11741: - the buffer code (first 2 bytes in the SMB2 body) seem to be the length
...
of the fixed body part, and +1 if there's a dynamic part
- there're 3 types of dynamic blobs
with uint16_t offset/uint16_t size
with uint16_t offset/uint32_t size
with uint32_t offset/uint32_t size /* aligned to 8 bytes */
- strings are transmitted in UTF-16 with no termination and
packet into a uint16/uint16 blob
metze
(This used to be commit 79103c51e5
)
2007-10-10 13:46:20 -05:00
e27ba5e4c6
r11693: added a full async composite function for SMB2 that does:
...
- name resolution
- socket connect
- negprot
- multi-stage session setup
- tcon
(This used to be commit c1a8e866fe
)
2007-10-10 13:46:14 -05:00