Volker Lendecke
08fa57335a
s3: Enable use of ccache by default for libsmbclient
...
Disable this by setting the environment variable LIBSMBCLIENT_NO_CCACHE, which
has the advantage over an smb.conf option to be easily settable per
application.
2010-01-26 11:45:56 +01:00
Björn Jacke
5439e1a03f
s3: fix detection and flags for using pthread
...
I hope this fixes the build on Tru64, IRIX and maybe bug #6983
2010-01-26 00:19:10 +01:00
Björn Jacke
60a3086d78
s3: remove unused variable
2010-01-26 00:19:10 +01:00
Björn Jacke
38be40f63c
s3:async_smb: remove unused variable
2010-01-26 00:19:10 +01:00
Volker Lendecke
4eb1523d87
s3-libsmbclient: Add smbc_setOptionUseCCache()
...
Can we enable this by default? This would be a change in behaviour, but this
feature is just too cool for everyone to catch up in the apps.
The patch would be
2010-01-24 20:32:17 +01:00
Volker Lendecke
ca48d6ab77
s3: Add CLI_FULL_CONNECTION_USE_CCACHE
2010-01-24 20:32:17 +01:00
Volker Lendecke
d016bdb72c
s3: Use -C in smbclient
...
$ bin/wbinfo --ccache-save=w2k3ad\\vl%Password
saving creds succeeded
$ bin/smbclient //192.168.42.160/tmp -Uvl -N -C -W w2k3ad
OS=[Windows Server 2003 R2 3790 Service Pack 2] Server=[Windows Server 2003 R2 5.2]
smb: \>
$ bin/wbinfo --ccache-save=w2k3ad\\vl%WrongPassword
saving creds succeeded
$ bin/smbclient //192.168.42.160/tmp -Uvl -N -C -W w2k3ad
Anonymous login successful
Domain=[W2K3AD] OS=[Windows Server 2003 R2 3790 Service Pack 2] Server=[Windows Server 2003 R2 5.2]
tree connect failed: NT_STATUS_ACCESS_DENIED
$
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
Volker Lendecke
ff0274c519
s3: Add NTLMSSP_FEATURE_CCACHE
...
Uses the winbind ccache to do authentication if asked to do so
2010-01-24 20:32:17 +01:00
Volker Lendecke
185815a647
s3: Remove some calls to memset -- reduces text size by some bytes for me
2010-01-24 14:52:33 +01:00
Volker Lendecke
4dd0c5516a
s3: Fix a crash in libsmbclient used against the OpenSolaris CIFS server
...
A user has sent me a sniff where the OpenSolaris CIFS server returns "32" in
totalentries, but the array in ctr only contains 15 entries. Look at the right
delimiter for walking the array.
2010-01-16 13:53:26 +01:00
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