Andrew Bartlett
ebae21f023
ntlmssp: Make the ntlmssp.h from source3/ a common header
...
The code is not yet in common, but I hope to fix that soon.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-31 15:10:56 +02:00
Stefan Metzmacher
7d977da925
s3:ntlmssp: pass names and use_ntlmv2 to ntlmssp_client_start() and store them
...
Inspired by the NTLMSSP merge work by Andrew Bartlett.
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:55 +01:00
Stefan Metzmacher
55279dfbe3
s3:ntlmssp: remove server_name from ntlmssp_state and fill the server.* fields also for the client
...
Inspired by the NTLMSSP merge work by Andrew Bartlett.
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:55 +01:00
Volker Lendecke
fdd82e69ab
s3: Explicitly handle inbuf in cli_negprot_done
2010-02-22 23:23:19 +01:00
Volker Lendecke
160c459b54
s3: Explicitly handle inbuf in cli_tcon_andx_done
2010-02-22 23:23:19 +01:00
Volker Lendecke
036fcafe24
s3: Explicitly handle inbuf in cli_sesssetup_blob_done
2010-02-22 23:23:18 +01:00
Volker Lendecke
47c61b4f15
s3: Explicitly handle inbuf in cli_session_setup_guest_done
2010-02-22 23:23:18 +01:00
Volker Lendecke
d122bfc064
s3: Add a talloc_move for the inbuf to cli_smb_recv
2010-02-22 23:23:18 +01:00
Jeremy Allison
687e4eba3c
Fix bug #7079 - cliconnect gets realm wrong with trusted domains.
...
Passing NULL as dest_realm for cli_session_setup_spnego() was
always using our own realm (as for a NetBIOS name). Change this
to look for the mapped realm using krb5_get_host_realm() if
the destination machine name is a DNS name (contains a '.').
Could get fancier with DNS name detection (length, etc.) but
this will do for now.
Jeremy.
2010-01-30 19:24:28 -08:00
Volker Lendecke
ca48d6ab77
s3: Add CLI_FULL_CONNECTION_USE_CCACHE
2010-01-24 20:32:17 +01:00
Volker Lendecke
a03a83ad26
s3: Add ccache use to cli_session_setup_ntlmssp
2010-01-24 20:32:17 +01:00
Tim Prouty
34f0cff066
s3 torture: Prevent smbcli segfault when running smbtorture3 against an smbd with security=share
2010-01-07 15:32:27 -08:00
Volker Lendecke
37ac16a88f
s3: Convert cli_ulogoff to the async API
2010-01-03 21:14:57 +01:00
Volker Lendecke
99f292479f
s3: Convert cli_tdis to the async API
2010-01-03 21:14:57 +01:00
Volker Lendecke
e2f361d05e
s3: Fix some nonempty blank lines
2010-01-03 11:38:22 +01:00
Volker Lendecke
6edfbbd79b
s3: Remove some unused code
2010-01-03 11:38:22 +01:00
Volker Lendecke
2d75aa04da
s3: Convert cli_sesssetup_ntlmssp to the async API
2010-01-03 11:38:22 +01:00
Volker Lendecke
a321dd91a4
s3: Convert cli_session_setup_kerberos to the async API
...
This is still cheated, acquiring the ticket is not async yet, but the SMB
part is
2010-01-03 11:38:22 +01:00
Andrew Bartlett
802e9328ed
s3:ntlmssp: only include ntlmssp.h where actually needed
...
Andrew Bartlett
2009-12-22 21:07:53 +01:00
Volker Lendecke
1b5389ab23
s3: Fix an error case in cli_negprot
2009-12-20 23:30:43 +01:00
Günther Deschner
04f8c229de
s3-kerberos: only use krb5 headers where required.
...
This seems to be the only way to deal with mixed heimdal/MIT setups during
merged build.
Guenther
2009-11-27 16:36:00 +01:00
Günther Deschner
503d035814
spnego: share spnego_parse.
...
Guenther
2009-09-17 01:12:20 +02:00
Volker Lendecke
5c54e4c103
s3:libsmb: Attempt to fix bug 6665
...
Before the async libsmb rewrites, we sent tid==0 on negprot. With the rewrite,
we send 0xffff. This *should* not matter, but this is one difference in the
sniffs I see.
2009-09-03 09:23:57 +02:00
Steven Danneman
bc4b253b2c
s3/debug: make SPENGO OID list appear under one debug header
2009-08-26 16:34:09 -07:00
Jeremy Allison
cdb765a76c
Fix bug #6419 - smbclient -L 127.0.0.1" displays "netbios name" instead of "workgroup"
...
Unify the handling of the sessionsetup parsing so we don't get different
results when parsing a guest reply than an ntlmssp reply.
Jeremy.
2009-06-01 14:38:56 -07:00
Bo Yang
05379f0125
s3: return proper error code in cli_smb_req_send
...
Signed-off-by: Bo Yang <boyang@samba.org>
2009-05-13 18:47:00 +08:00
Jeremy Allison
ad9d64ee1b
Clean up assignments to iov_base, ensure it's always cast to void *. This should quieten some warnings with picky compilers on the buildfarm.
...
Jeremy.
2009-05-12 11:45:37 -07:00
Volker Lendecke
d52b0a25ad
Make cli_tcon_andx chainable
2009-05-07 16:37:54 +02:00
Volker Lendecke
b35967edba
Make cli_session_setup_guest chainable
2009-05-07 16:37:54 +02:00
Andrew Bartlett
6c9caed481
Merge commit 'origin/master' into libcli-auth-merge-without-netlogond
2009-04-20 16:53:02 +02:00
Jeremy Allison
265829c32f
When doing a cli_ulogoff don't invalidate the cnum, invalidate the vuid.
...
Jeremy.
2009-04-16 15:16:28 -07:00
Andrew Bartlett
27815a71a9
More work to adapt to merged libcli/auth function prototypes
2009-04-14 16:23:42 +10:00
Volker Lendecke
3084d49cc0
Add a bad hack to enable level 2 oplocks in torture_open_connection_share
2009-04-06 21:32:08 +02:00
Volker Lendecke
807328ce6d
Convert cli_tcon_andx to tevent_req
2009-04-06 21:32:07 +02:00
Volker Lendecke
03becb5066
Convert cli_negprot to tevent_req
2009-04-06 21:32:06 +02:00
Volker Lendecke
95c792b6af
Convert cli_session_setup_guest to tevent_req
2009-04-06 21:32:06 +02:00
Stefan Metzmacher
6af15943c6
s3:libsmb: use new simplified smb_signing code for the client side
...
We store the seqnum/mid mapping in the cli_request structure
for async requests and in the cli_state structure for sync calls.
We skip the signing check for oplock requests while waiting
for async requests coming in.
metze
2009-03-23 12:21:14 +01:00
Volker Lendecke
298bff5019
Fix connect to port 139 only -- thanks gd for bugging me :-)
2009-03-23 12:06:57 +01:00
Volker Lendecke
20cee26a3d
Convert open_socket_out_defer to tevent_req
2009-03-16 19:32:01 +01:00
Jeremy Allison
f48a345e4a
Remove pwd_cache.c, it was doing nothing. Make user_name, domain, and
...
password talloc'ed strings within the cli_struct.
Jeremy.
2009-03-13 17:49:24 -07:00
Volker Lendecke
e58ade4136
Fix a smbclient segfault against security=share servers
2009-03-07 15:27:13 +01:00
Stefan Metzmacher
6e572d40a9
s3:libsmb: remove cli_setup_signing_state() and add struct cli_state *cli_initialise_ex()
...
This prepares the next changes.
metze
2009-03-06 16:37:21 +01:00
Stefan Metzmacher
918e6288fa
s3:libsmb: smb signing works the same for extented and non-extended security
...
This is only cosmetic, but it makes it easier to understand.
metze
2009-03-06 16:18:50 +01:00
Volker Lendecke
dbc79381a8
Convert name_mangle() to use talloc
2009-02-24 20:40:46 +01:00
Volker Lendecke
7ecaced886
Do not use strlen if not necessary... :-)
2009-02-10 21:55:13 +01:00
Volker Lendecke
810b670b75
Fix Coverity ID 870
2009-02-03 10:22:36 +01:00
Volker Lendecke
c14b7e648b
Split up async_req into a generic and a NTSTATUS specific part
2009-02-01 19:05:39 +01:00
Volker Lendecke
0bd92281e4
Make cli_tcon_andx async
2009-01-30 12:47:59 +01:00
Volker Lendecke
7b934c6af3
Make cli_session_setup_guest async
2009-01-30 12:47:59 +01:00
Volker Lendecke
37da26a06e
Add the strlen to push to smb_bytes_push_str, return the converted size
...
The pushed strlen replaces the STR_TERMINATE flag which I personally always
find very confusing.
2009-01-29 21:38:06 +01:00