summaryrefslogtreecommitdiff
path: root/source3/libsmb
AgeCommit message (Collapse)AuthorFilesLines
2010-02-04s3:libsmb: don't reuse the callers stype variable in cli_NetServerEnum()Stefan Metzmacher1-2/+3
When we need to do more than one network operation to get the browse list we need to use the same 'stype' value each time. metze
2010-02-02Change uint_t to unsigned int in source3Matt Kraai1-4/+4
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-01-30Fix bug #7079 - cliconnect gets realm wrong with trusted domains.Jeremy Allison1-3/+22
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-29Fix a really interesting problem found by Volker's conversion of ↵Jeremy Allison1-3/+3
sessionsetup SPNEGO to asynchronous code. Normally clistr_push_fn() can depend upon cli->outbuf being initialized by negprot and sessionsetup packets, and cli->outbuf[smb_flgs2] being correctly set with FLAGS2_UNICODE_STRINGS when cli_setup_packet() is called. When all the sessionsetups are async, then cli_setup_packet() is never called, the async code uses cli_setup_packet_buf() - which initializes the allocated async buffer, not the cli->outbuf one. So the first time clistr_push_fn() is called is from libsmb/clidfs.c:cli_dfs_get_referral(), just after the connection and tconX. In this case cli->outbuf has never been initialized, and cli->outbuf[smb_flgs2] = 0 so the DFS query pushes ASCII on the wire, which is not what we want :-). Remove the dependency on cli->outbuf[smb_flgs2] in clistr_push_fn(), and fake up a SVAL(cli->outbuf, smb_flg2) value using cli_ucs2(cli) function instead, which has been initialized. We only care about the FLAGS2_UNICODE_STRINGS bit anyway. I don't think this is an issue for 3.5.0 as the sessionsetup is still synchronous there, but Volker PLEASE CHECK ! Jeremy.
2010-01-26s3: Enable use of ccache by default for libsmbclientVolker Lendecke1-0/+3
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-26s3: fix detection and flags for using pthreadBjörn Jacke1-0/+4
I hope this fixes the build on Tru64, IRIX and maybe bug #6983
2010-01-26s3: remove unused variableBjörn Jacke1-2/+0
2010-01-26s3:async_smb: remove unused variableBjörn Jacke1-2/+0
2010-01-24s3-libsmbclient: Add smbc_setOptionUseCCache()Volker Lendecke3-0/+39
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-24s3: Add CLI_FULL_CONNECTION_USE_CCACHEVolker Lendecke1-0/+3
2010-01-24s3: Use -C in smbclientVolker Lendecke1-0/+1
$ 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-24s3: Add ccache use to cli_session_setup_ntlmsspVolker Lendecke1-0/+4
2010-01-24s3: Add NTLMSSP_FEATURE_CCACHEVolker Lendecke1-0/+60
Uses the winbind ccache to do authentication if asked to do so
2010-01-24s3: Remove some calls to memset -- reduces text size by some bytes for meVolker Lendecke1-5/+2
2010-01-16s3: Fix a crash in libsmbclient used against the OpenSolaris CIFS serverVolker Lendecke1-1/+1
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-15Second part of bug 7045 - Bad (non memory copying) interfaces in ↵Jeremy Allison1-3/+9
smbc_setXXXX calls. Protect against SMB_STRDUP of null... Jeremy.
2010-01-15Fix bug 7045 - Bad (non memory copying) interfaces in smbc_setXXXX calls.Jeremy Allison2-10/+25
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-14s3-libsmbclient: Fix crash bug in SMBC_parse_path().Günther Deschner1-1/+1
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-10s3: Replace most calls to sid_append_rid() by sid_compose()Volker Lendecke1-4/+2
2010-01-07s3 torture: Prevent smbcli segfault when running smbtorture3 against an smbd ↵Tim Prouty1-0/+5
with security=share
2010-01-03s3: Convert cli_ulogoff to the async APIVolker Lendecke1-14/+77
2010-01-03s3: Convert cli_tdis to the async APIVolker Lendecke3-16/+79
2010-01-03s3: Fix some nonempty blank linesVolker Lendecke1-14/+14
2010-01-03s3: Remove some unused codeVolker Lendecke1-95/+0
2010-01-03s3: Convert cli_sesssetup_ntlmssp to the async APIVolker Lendecke1-92/+196
2010-01-03s3: NT_STATUS_MORE_PROCESSING_REQUIRED is a valid sesssetup return valueVolker Lendecke1-9/+23
2010-01-03s3: Convert cli_session_setup_kerberos to the async APIVolker Lendecke1-83/+285
This is still cheated, acquiring the ticket is not async yet, but the SMB part is
2009-12-29s3:ntlmssp: change get_challange() to return NTSTATUSStefan Metzmacher1-3/+8
metze
2009-12-29s3:ntlmssp: remove unused p24 variable from ntlmssp_sign_init()Stefan Metzmacher1-2/+0
metze
2009-12-29s3:ntlmssp: move some indentation in ntlmssp_sign.cStefan Metzmacher1-19/+19
metze
2009-12-29s3:ntlmssp: remove unused ntlmssp_stored_response()Stefan Metzmacher1-25/+1
metze
2009-12-29s3:ntlmssp: remove unused ref_count from ntlmssp_stateStefan Metzmacher1-12/+4
metze
2009-12-29s3:ntlmssp: rename NTLM_MESSAGE_TYPE into ntlmssp_message_typeStefan Metzmacher1-1/+1
metze
2009-12-26s3: Fix some nonempty blank linesVolker Lendecke1-3/+3
2009-12-24s3: Remove unused delete_negative_conn_cache()Volker Lendecke1-23/+0
2009-12-24s3: Remove unused flush_negative_conn_cache()Volker Lendecke1-9/+0
2009-12-24s3: Remove some unnecessary variables from libsmb/conn_cache.cVolker Lendecke1-9/+4
2009-12-24s3: Fix a comment in conn_cache.cVolker Lendecke1-1/+1
2009-12-24s3: Fix a 64-bit errorVolker Lendecke1-4/+5
2009-12-24s3: Remove some pointless SMB_ASSERTsVolker Lendecke1-3/+10
2009-12-24s3: Remove some pointless castsVolker Lendecke1-5/+4
2009-12-22s3:ntlmssp: only include ntlmssp.h where actually neededAndrew Bartlett5-0/+5
Andrew Bartlett
2009-12-22s3:ntlmssp: remove the typedef NTLMSSP_STATEAndrew Bartlett3-23/+23
Andrew Bartlett
2009-12-22s3:ntlmssp: rename enum NTLMSSP_ROLE into enum ntlmssp_roleAndrew Bartlett1-1/+1
Andrew Bartlett
2009-12-22libcli/auth Make gd's NDR NTLMSSP parsers helpers commonAndrew Bartlett3-190/+1
(but not built in Samba4 for now)
2009-12-22s3: Restore correct timeouts for SMB requestsVolker Lendecke1-0/+5
2009-12-22s3: Remove a pointless else branchVolker Lendecke1-5/+3
2009-12-22s3: Move smb_splice_chain to smbd/process.c, its only userVolker Lendecke1-174/+0
2009-12-21Rename 282 -> ERReasnotsupported.Jeremy Allison1-3/+3
Jeremy.
2009-12-20s3: Fix an error case in cli_negprotVolker Lendecke1-0/+1