Andrew Bartlett
f9b042641f
s3-ntlmssp split auth_ntlmssp_client_start() into two parts
...
This will allow it to be a wrapper around a gensec module, which
requires that they options be set on a context, but before the
mechanism is started.
This also simplfies the callers, by moving the lp_*() calls
into one place.
Andrew Bartlett
2011-10-18 12:25:30 +02:00
Andrew Bartlett
0c6e4adcb2
ntlmssp: Move ntlmssp code to auth/ntlmssp
...
This brings in the code from both libcli/auth and
source4/auth/ntlmssp.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-10-18 13:13:31 +11:00
Andrew Bartlett
bba5f0a641
s3-ntlmssp Remove auth_ntlmssp_or_flags
...
We now just use auth_ntlmssp_want_feature to get extra flags
on the NTLMSSP context
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-08-03 18:48:03 +10:00
Andrew Bartlett
6d7ac4f1ad
s3-ntlmssp Add mem_ctx argument to auth_ntlmssp_update
...
This clarifies the lifetime of the returned token.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-08-03 18:48:03 +10:00
Andrew Bartlett
a942401c1f
s3-ntlmssp Use auth_ntlmssp_*() functions in more places
...
This allows auth_ntlmssp_get_ntlmssp_state() to be removed.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-08-03 18:48:02 +10:00
Alban Browaeys
11c2d3717c
Fix bug #8341 - libsmbclient segfault when feed the root of a mounted share via an uri
...
Fix null deref.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Aug 2 02:58:26 CEST 2011 on sn-devel-104
2011-08-02 02:58:26 +02:00
Stefan Metzmacher
390b54554c
s3:libsmb/clifsinfo: make use of cli_state_remote_name()
...
metze
2011-07-22 17:06:09 +02:00
Stefan Metzmacher
2b0cc3c412
s3:libsmb: use clistr_pull_talloc() in cli_get_fs_volume_info()
...
metze
2011-07-06 17:18:13 +02:00
Stefan Metzmacher
27736bed83
s3:libsmb: the SMB_QUERY_FS_VOLUME_INFO response needs at least 18 data bytes
...
metze
2011-07-06 17:18:13 +02:00
Andrew Bartlett
74eed8f3ed
s3-param Remove special case for global_myname(), rename to lp_netbios_name()
...
There is no reason this can't be a normal constant string in the
loadparm system, now that we have lp_set_cmdline() to handle overrides
correctly.
Andrew Bartlett
2011-06-09 12:40:09 +02:00
Volker Lendecke
0645deb1b4
s3: Do central cli_set_error
2011-05-19 17:31:30 +02:00
Günther Deschner
27022587e3
s3-libsmb: move protos to libsmb/proto.h
...
Guenther
2011-05-06 16:37:18 +02:00
Jeremy Allison
e131c94ac1
More const fixes for compiler warnings from the waf build.
2011-05-05 23:56:07 +02:00
Günther Deschner
50883cfeb4
s3-tevent: only include ../lib/util/tevent wrappers where needed.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Apr 29 14:00:30 CEST 2011 on sn-devel-104
2011-04-29 14:00:30 +02:00
Günther Deschner
99f4a64543
s3-trans2: only include trans2.h where needed.
...
Guenther
2011-03-30 01:13:06 +02:00
Günther Deschner
6c8d802391
s3-libsmb: move smb encryption structs into own header.
...
Guenther
2011-03-16 10:11:16 +01:00
Volker Lendecke
b57721faaf
s3: Convert enc_blob_send_receive to cli_trans()
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Jan 9 11:40:04 CET 2011 on sn-devel-104
2011-01-09 11:40:04 +01:00
Volker Lendecke
36637a7ced
s3: Convert cli_get_posix_fs_info() to cli_trans()
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Nov 14 10:24:02 UTC 2010 on sn-devel-104
2010-11-14 10:24:02 +00:00
Volker Lendecke
a5d485112e
s3: Remove the use of cli_send_trans from cli_get_fs_full_size_info
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Nov 4 22:08:53 UTC 2010 on sn-devel-104
2010-11-04 22:08:52 +00:00
Günther Deschner
c7fe04abc7
s3-build: only include async headers where needed.
...
Guenther
2010-09-20 13:54:42 -07:00
Volker Lendecke
0a224bc77b
s3: Save the received trans2 from the inbuf in cli_trans
2010-08-05 13:57:29 +02:00
Jeremy Allison
5002b3a90d
Add approriate TALLOC_CTX's thoughout the spnego code. No more implicit NULL contexts.
...
Jeremy.
2010-07-20 16:17:58 -07:00
Jeremy Allison
cce19c5162
Fix one more data_blob -> data_blob_talloc. Move away from implicit NULL context tallocs.
...
Jeremy.
2010-07-20 14:59:31 -07:00
Jeremy Allison
8a882b645c
Remove gen_negTokenTarg(), as it's not actually creating a TokenTarg frame, but a TokenInit one.
...
Move to using spnego_gen_negTokenInit() instead.
Jeremy
2010-07-20 11:04:19 -07:00
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
Jeremy Allison
74c4c7fe4f
Don't set "requested_posix_capabilities" in the sync code, already done in the async.
...
Jeremy.
2010-04-13 19:12:43 -07:00
Jeremy Allison
f3b8e31f83
Split out the client unix capabilities to those the server offered, and those the client asked for.
...
This fixes a bug when using encrypted transport and DFS links. Found
by my basic DFS torture test, which I'll check in next. Testing *rocks* :-).
Jeremy.
2010-04-13 18:41:14 -07: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
Volker Lendecke
6e510b49c0
s3: Make cli_get_fs_volume_info() use cli_trans()
2010-02-07 12:29:25 +01:00
Volker Lendecke
c73ffb7280
s3: Remove some unused code
2010-02-07 12:29:25 +01:00
Volker Lendecke
5552b44960
s3: Fix some nonempty blank lines
2010-02-07 12:29:25 +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
37e4e387db
s3: Convert cli_get_fs_attr_info to the async API
2009-11-21 14:01:56 +01:00
Volker Lendecke
b1ed9a8963
s3: Fix the build on Solaris
2009-11-17 15:16:28 +01:00
Stefan Metzmacher
0762893c48
s3:libsmb: avoid passing a function call as function parameter
...
Using a helper variable makes it easier to "step" into the desired function
within gdb.
metze
2009-11-16 10:13:05 +01:00
Volker Lendecke
f4cf1c56a2
s3: Add min_setup, min_param and min_data to cli_trans_recv
...
Every caller that expects to receive something needs to check if enough was
sent. Make this check mandatory for everyone.
Yes, this makes the parameter list for cli_trans a bit silly, but that's just
the way it is: A silly protocol request :-)
While there, convert some _done functions to tevent_req_simple_finish_ntstatus.
2009-11-14 12:20:12 +01:00
Volker Lendecke
f668e4104f
s3: Convert cli_set_unix_extensions_capabilities_send to async
2009-11-14 11:03:28 +01:00
Volker Lendecke
f9ad5cd133
s3: Convert cli_unix_extensions_version to async
2009-11-13 09:30:30 +01:00
Günther Deschner
503d035814
spnego: share spnego_parse.
...
Guenther
2009-09-17 01:12:20 +02:00
Derrell Lipman
ae259575c4
[Bug 6069] Add a fstatvfs function for libsmbclient
...
- port functionality from v3_3_test to master
Derrell
2009-02-12 10:39:48 -05:00
Volker Lendecke
7f25e0da73
Decouple clistr_pull from struct cli_state->inbuf
2009-01-26 05:39:34 +01:00
Jeremy Allison
e8c7ff3e88
Add Derrick Schommer's <dschommer@F5.com> kerberos delegation patch. Some
...
work by me and advice by Love.
Jeremy.
(This used to be commit ecc3838e4c
)
2008-08-08 14:32:15 -07:00
Jeremy Allison
6e2e0e2ce7
Fix the build - don't use SMB_TRANS_ENC_GSS without
...
KRB5.
Jeremy.
(This used to be commit d16c295642
)
2008-02-28 06:01:09 -08:00
Volker Lendecke
3176392878
Fix some warnings
...
warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result
(This used to be commit ad37b7b0ae
)
2008-02-25 16:09:26 +01:00
Jeremy Allison
9baa97a46e
Add general '-e' option to enable smb encryption
...
on tools.
Jeremy.
(This used to be commit 757653966f
)
2008-01-05 00:23:35 -08:00
Jeremy Allison
afc93255d1
Add SMB encryption. Still fixing client decrypt but
...
negotiation works.
Jeremy.
(This used to be commit d78045601a
)
2007-12-26 17:12:36 -08:00
Jeremy Allison
1b92ea5559
Remove pstrings from client/client.c by doing a large rewrite.
...
Mostly compiles....
Jeremy.
(This used to be commit c87f3eba9a
)
2007-12-06 17:16:33 -08:00
Jeremy Allison
30191d1a57
RIP BOOL. Convert BOOL -> bool. I found a few interesting
...
bugs in various places whilst doing this (places that assumed
BOOL == int). I also need to fix the Samba4 pidl generation
(next checkin).
Jeremy.
(This used to be commit f35a266b3c
)
2007-10-18 17:40:25 -07:00
Gerald (Jerry) Carter
e5a951325a
[GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.
...
(This used to be commit 5c6c8e1fe9
)
2007-10-10 15:34:30 -05:00
Andrew Tridgell
5e54558c6d
r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text
...
(This used to be commit b0132e94fc
)
2007-10-10 12:28:22 -05:00