summaryrefslogtreecommitdiffstats
path: root/source3/libsmb
Commit message (Collapse)AuthorAgeFilesLines
* s3: Remove unused cli_setup_packet()Volker Lendecke2011-05-202-6/+0
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Fri May 20 10:51:36 CEST 2011 on sn-devel-104
* s3: Do central cli_set_errorVolker Lendecke2011-05-199-189/+2
|
* s3: Remove the use of cli->inbuf/outbuf from cli_session_requestVolker Lendecke2011-05-191-45/+53
|
* s3: Add sync read_smbVolker Lendecke2011-05-192-0/+25
|
* s3: Make read_smb_send/recv publicVolker Lendecke2011-05-193-87/+144
|
* s3-lib Replace StrnCaseCmp() with strncasecmp_m()Andrew Bartlett2011-05-181-37/+37
| | | | | | | strncasecmp_m() never needs to call to talloc, and via next_codepoint() still has an ASCII fast-path bypassing iconv() calls. Andrew Bartlett
* s3-lib Replace StrCaseCmp() with strcasecmp_m()Andrew Bartlett2011-05-181-60/+60
| | | | | | | strcasecmp_m() never needs to call to talloc, and via next_codepoint() still has an ASCII fast-path bypassing iconv() calls. Andrew Bartlett
* s3-libsmb/passchange.c: Fix cli_errstr() usage (part of bug #7864)Björn Baumbach2011-05-181-8/+9
| | | | | | Convert cli_errstr() to nt_errstr() Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:libsmb convert user-specified domain to uppercaseChristian Ambach2011-05-161-0/+1
| | | | | | | | | | | | | | | | with client ntlmv2 auth = yes, there is a small difference between using smbclient -U user\domain and smbclient -U user -W domain if domain is provided in lowercase using -W will uppercase the given parameter, while picking the domain name from -U will not convert it to uppercase and this leads to failing NTLMv2 authentication with this patch, there is no difference between smbclient -U domain\user and smbclient -U user -W domain any more Autobuild-User: Christian Ambach <ambi@samba.org> Autobuild-Date: Mon May 16 11:42:55 CEST 2011 on sn-devel-104
* s3: Make&use set_socket_addr_v4Volker Lendecke2011-05-141-12/+14
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat May 14 18:57:57 CEST 2011 on sn-devel-104
* s3: Paranoia in smbsock_connect_state_destructorVolker Lendecke2011-05-141-0/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat May 14 14:19:01 CEST 2011 on sn-devel-104
* s3: Use tevent_req_ntstatus properly in a few placesVolker Lendecke2011-05-101-58/+29
|
* async_smb.c: convert cli->timeout properlyRusty Russell2011-05-101-1/+2
| | | | | | | | | | | | | | | I have a test failure on my 32-bit Ubuntu system, in that samba3.smbtorture_s3.plain(s3dc).LOCK9 immediately times out (rather than waiting 5 seconds for the child). Debugging revealed this code: timeout is in ms and is set to > 1000 in various places. The code dates from 2002, and other perturbations didn't reveal why it breaks now, but fix it anyway. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Tue May 10 12:09:07 CEST 2011 on sn-devel-104
* gencache: don't use CLEAR_IF_FIRST as fallback.Rusty Russell2011-04-191-10/+3
| | | | | | | | | | | | CLEAR_IF_FIRST only works if *all* openers use that flag. So just truncate the file: it's racy, but that's what we're doing anyway. We'd really need a TDB_OPENCHECK_OR_CLEAR flag to do this properly (or in TDB2, a open hook at the right point). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* s3: Fix including libsmb/proto.h without prior ads.hVolker Lendecke2011-05-071-0/+2
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat May 7 11:38:11 CEST 2011 on sn-devel-104
* s3-includes: no need to globally include libads/ads_status.h.Günther Deschner2011-05-061-0/+1
| | | | Guenther
* s3-includes: finally only include client.h when libsmb is used.Günther Deschner2011-05-063-0/+4
| | | | Guenther
* s3-libsmb: move protos to libsmb/proto.hGünther Deschner2011-05-0635-0/+889
| | | | Guenther
* s3: only include tdb headers where needed.Günther Deschner2011-05-062-0/+2
| | | | Guenther
* libcli/smb Move cifs posix helper functions and headers in commonAndrew Bartlett2011-05-061-94/+0
| | | | | | unix_perms_to_wire() was a duplicate symbol in the top level build. Andrew Bartlett
* libcli/util Move NTSTATUS table to the top levelAndrew Bartlett2011-05-061-725/+4
|
* nterr: Add mem_ctx for return string from get_nt_error_c_code()Andrew Bartlett2011-05-061-4/+4
| | | | | | It is clearer to avoid the implicit return on talloc_tos() Andrew Bartlett
* libcli/util Merge ntstatus_to_dos() ntstatus_to_werror() to the top levelAndrew Bartlett2011-05-061-1214/+0
| | | | | | | This takes the Samba4 version, with the NT_STATUS_IS_DOS() check. This will be used in smbd/error.c shortly. Andrew Bartlett
* errors: Merge ntstatus -> DOS error table between Samba3 and Samba4.Andrew Bartlett2011-05-061-8/+9
| | | | | | They are now identical Andrew Bartlett
* More const fixes. Remove CONST_DISCARD.Jeremy Allison2011-05-061-1/+1
|
* More simple const fixes.Jeremy Allison2011-05-054-14/+14
|
* More const fixes for compiler warnings from the waf build.Jeremy Allison2011-05-0510-77/+85
|
* Fix many const compiler warnings.Jeremy Allison2011-05-052-4/+4
|
* s3-libsmb: run minimal_includes.pl.Günther Deschner2011-05-052-2/+0
| | | | Guenther
* Add in bufflen limit when storing NetBIOS names. Remove safe_strcpy.Jeremy Allison2011-05-041-16/+32
|
* Change safe_strcpy_base to strlcpy_base. Note the size doesn't change here ↵Jeremy Allison2011-05-041-6/+6
| | | | as the original macro auto-added the -1.
* s3: Filter out duplicates in name_query()Volker Lendecke2011-05-041-2/+18
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed May 4 00:03:47 CEST 2011 on sn-devel-104
* s3: Tune broadcast namequeries for unique namesVolker Lendecke2011-05-031-3/+9
| | | | | | | | | If we get a unique name via a broadcast query, there's no point in waiting the full timeout. A unique name is just what its name says: unique. No point in waiting longer. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue May 3 00:57:24 CEST 2011 on sn-devel-104
* s3:libsmb/nterr: NO_S4U_PROT_SUPPORT and CROSSREALM_DELEGATION_FAILUREStefan Metzmacher2011-05-021-0/+2
| | | | metze
* s3: Make name_resolve_bcast return sockaddr_storageVolker Lendecke2011-04-303-26/+35
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat Apr 30 20:40:46 CEST 2011 on sn-devel-104
* s3: Remove ip_sevice from get_ipc_connect_master_ipVolker Lendecke2011-04-302-6/+6
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat Apr 30 18:16:28 CEST 2011 on sn-devel-104
* Add POSIX O_RDONLY test of a directory for bug #8112 - POSIX extension opens ↵Jeremy Allison2011-04-301-2/+0
| | | | | | | | | of a directory are denied with EISDIR. Don't strip access bits from wire flags when opening a directory. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Apr 30 02:21:24 CEST 2011 on sn-devel-104
* s3-tevent: only include ../lib/util/tevent wrappers where needed.Günther Deschner2011-04-2916-0/+17
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Fri Apr 29 14:00:30 CEST 2011 on sn-devel-104
* s3-smb Use FILE_ATTRIBUTE_ARCHIVE intead of aARCHAndrew Bartlett2011-04-291-1/+1
| | | | | | This means we use just one constant for this file attribute. Andrew Bartlett
* s3-smb Use FILE_ATTRIBUTE_DIRECTORY intead of aDIRAndrew Bartlett2011-04-292-5/+5
| | | | | | This means we use just one constant for this file attribute. Andrew Bartlett
* s3-smb Use FILE_ATTRIBUTE_SYSTEM intead of aSYSTEMAndrew Bartlett2011-04-292-8/+8
| | | | | | This means we use just one constant for this file attribute. Andrew Bartlett
* s3-smb Use FILE_ATTRIBUTE_HIDDEN intead of aHIDDENAndrew Bartlett2011-04-292-8/+8
| | | | | | This means we use just one constant for this file attribute. Andrew Bartlett
* s3-smb Use FILE_ATTRIBUTE_READONLY intead of aRONLYAndrew Bartlett2011-04-291-1/+1
| | | | | | This means we use just one constant for this file attribute. Andrew Bartlett
* s3-libads Pass a struct sockaddr_storage to cldap routinesAndrew Bartlett2011-04-281-1/+2
| | | | | | | This avoids these routines doing a DNS lookup that has already been done, and ensures that the emulated DNS lookup isn't thrown away. Andrew Bartlett
* Remove another fstring in this code.Jeremy Allison2011-04-281-12/+20
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Apr 28 03:15:32 CEST 2011 on sn-devel-104
* Fixup (C) - we've both worked lots on this :-).Jeremy Allison2011-04-271-0/+2
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Apr 27 21:56:29 CEST 2011 on sn-devel-104
* Remove fstrings from client struct. Properly talloc strings (ensuring we ↵Jeremy Allison2011-04-271-42/+266
| | | | never end up with a NULL pointer).
* s3-libsmb Use 'resolv:hosts file' as a DNS emulation when specified.Andrew Bartlett2011-04-271-0/+27
| | | | | | This allows make test to operate without making real DNS calls. Andrew Bartlett
* s3: Make cli_session_setup_lanman2 asyncVolker Lendecke2011-04-271-53/+201
| | | | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Apr 27 00:25:35 CEST 2011 on sn-devel-104
* s3: Make cli_session_setup_nt1 asyncVolker Lendecke2011-04-261-87/+246
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>