Jeremy Allison
f85b6ee90b
Second part of bug 7045 - Bad (non memory copying) interfaces in smbc_setXXXX calls.
...
Protect against SMB_STRDUP of null...
Jeremy.
2010-01-15 17:33:24 -08:00
Jeremy Allison
2d41b1ab78
Fix bug 7045 - Bad (non memory copying) interfaces in smbc_setXXXX calls.
...
In smbc_free_context libsmbclient just called free() on the string options
so it assumes the callers have malloced them before setting them via smbc_set
calls.
Change to corretly malloc/free string options to the library.
Jeremy
2010-01-15 17:22:35 -08:00
Günther Deschner
e635b0074c
s3-libsmbclient: Fix crash bug in SMBC_parse_path().
...
Patch from Tim Waugh <twaugh@redhat.com>.
This resolves https://bugzilla.redhat.com/show_bug.cgi?id=552658
LIBSMBCLIENT-OPENDIR torture test checks this as well.
Guenther
2010-01-14 19:48:33 +01:00
Volker Lendecke
3ea64e0ad8
s3: Replace most calls to sid_append_rid() by sid_compose()
2010-01-10 20:56:16 +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
3f25fb5677
s3: NT_STATUS_MORE_PROCESSING_REQUIRED is a valid sesssetup return value
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
Stefan Metzmacher
c9b6ad2500
s3:ntlmssp: change get_challange() to return NTSTATUS
...
metze
2009-12-29 17:06:22 +01:00
Stefan Metzmacher
4afb211f4f
s3:ntlmssp: remove unused p24 variable from ntlmssp_sign_init()
...
metze
2009-12-29 08:46:19 +01:00
Stefan Metzmacher
9d5f41ca01
s3:ntlmssp: move some indentation in ntlmssp_sign.c
...
metze
2009-12-29 08:46:18 +01:00
Stefan Metzmacher
05f7a86a99
s3:ntlmssp: remove unused ntlmssp_stored_response()
...
metze
2009-12-29 08:46:12 +01:00
Stefan Metzmacher
7cff7d937e
s3:ntlmssp: remove unused ref_count from ntlmssp_state
...
metze
2009-12-29 08:19:01 +01:00
Stefan Metzmacher
5ff127b641
s3:ntlmssp: rename NTLM_MESSAGE_TYPE into ntlmssp_message_type
...
metze
2009-12-29 08:19:00 +01:00
Volker Lendecke
50e5f9dc51
s3: Fix some nonempty blank lines
2009-12-26 12:26:06 +01:00
Volker Lendecke
96207912cb
s3: Remove unused delete_negative_conn_cache()
2009-12-24 15:24:35 +01:00
Volker Lendecke
ffab1a2318
s3: Remove unused flush_negative_conn_cache()
2009-12-24 15:24:35 +01:00
Volker Lendecke
53bf5f0064
s3: Remove some unnecessary variables from libsmb/conn_cache.c
2009-12-24 15:24:35 +01:00
Volker Lendecke
a3f43e3d86
s3: Fix a comment in conn_cache.c
2009-12-24 15:24:35 +01:00
Volker Lendecke
04210986f1
s3: Fix a 64-bit error
2009-12-24 15:24:35 +01:00
Volker Lendecke
daecb747e4
s3: Remove some pointless SMB_ASSERTs
2009-12-24 15:24:34 +01:00
Volker Lendecke
56f9d18fba
s3: Remove some pointless casts
2009-12-24 15:24:34 +01:00
Andrew Bartlett
802e9328ed
s3:ntlmssp: only include ntlmssp.h where actually needed
...
Andrew Bartlett
2009-12-22 21:07:53 +01:00
Andrew Bartlett
5b37cd23bf
s3:ntlmssp: remove the typedef NTLMSSP_STATE
...
Andrew Bartlett
2009-12-22 21:07:53 +01:00
Andrew Bartlett
9b36fa0441
s3:ntlmssp: rename enum NTLMSSP_ROLE into enum ntlmssp_role
...
Andrew Bartlett
2009-12-22 21:07:52 +01:00
Andrew Bartlett
ba2cfceb96
libcli/auth Make gd's NDR NTLMSSP parsers helpers common
...
(but not built in Samba4 for now)
2009-12-22 21:07:51 +01:00
Volker Lendecke
47bee67c05
s3: Restore correct timeouts for SMB requests
2009-12-22 16:07:58 +01:00
Volker Lendecke
528c150d55
s3: Remove a pointless else branch
2009-12-22 14:08:08 +01:00
Volker Lendecke
b6f446ca35
s3: Move smb_splice_chain to smbd/process.c, its only user
2009-12-22 13:54:43 +01:00
Jeremy Allison
714c60e627
Rename 282 -> ERReasnotsupported.
...
Jeremy.
2009-12-21 11:05:11 -08:00
Volker Lendecke
1b5389ab23
s3: Fix an error case in cli_negprot
2009-12-20 23:30:43 +01:00
Stefan Metzmacher
8f19c08072
s3: let netsamlogon_cache_init() use tdb_check()
...
If the check fails we try to unlink the old file and
start with an empty cache.
metze
2009-12-07 19:56:56 +01:00
Günther Deschner
da79cbb080
s3-kerberos: add a missing reference to authdata headers.
...
Guenther
2009-11-27 18:52:32 +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
1a8f838274
s3-kerberos: Fix Bug #6929 : build with recent heimdal.
...
Heimdal changed the KRB5_DEPRECATED define (which now may not take an identifier
for activation) in new releases (like 1.3.1).
Guenther
2009-11-27 01:40:35 +01:00
Günther Deschner
3d679a3b5f
s3-rpc: Avoid including every pipe's client and server stubs everywhere in samba.
...
Guenther
2009-11-26 20:03:17 +01:00
Volker Lendecke
e28545e854
s3: Fix some nonempty blank lines
2009-11-21 23:19:50 +01:00
Volker Lendecke
384f303c2c
s3: Remove a struct typedef
2009-11-21 23:19:50 +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
6133ab6055
s3: Tiny logic simplification
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
Jeremy Allison
5363d6e62c
Ensure all callers to the rpc_client/cli_pipe functions correctly
...
initialize return variables.
Jeremy.
2009-11-12 13:56:33 -08:00