summaryrefslogtreecommitdiffstats
path: root/source3
Commit message (Collapse)AuthorAgeFilesLines
...
* libsmbconf: Convert smbconf_set_includes() to sbcErr.Andreas Schneider2011-05-103-24/+34
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Convert smbconf_get_includes() to sbcErr.Andreas Schneider2011-05-103-23/+22
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Convert smbconf_delete_parameter() to sbcErr.Andreas Schneider2011-05-103-15/+19
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Convert smbconf_get_parameter() to sbcErr.Andreas Schneider2011-05-102-14/+12
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Convert smbconf_set_parameter() to sbcErr.Andreas Schneider2011-05-104-50/+81
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Convert smbconf_delete_share() to sbcErr.Andreas Schneider2011-05-102-13/+21
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Convert smbconf_get_share() to sbcErr.Andreas Schneider2011-05-103-67/+84
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Convert smbconf_create_share() to smbErr.Andreas Schneider2011-05-102-18/+24
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Convert smbconf_get_share_names() to sbcErr.Andreas Schneider2011-05-102-33/+41
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Convert smbconf_drop() to sbcErr.Andreas Schneider2011-05-102-12/+17
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Convert smbconf_open() to sbcErr.Andreas Schneider2011-05-102-12/+16
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Convert smbconf_init() to sbcErr.Andreas Schneider2011-05-109-36/+48
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3-printing: Fix double free of cups request.Günther Deschner2011-05-101-4/+0
| | | | | | | | | | | | | | | | We never free the request in our cups api usage except for here. The reason is probably htis (from the cupsDoConnect API docs): "This function sends the IPP request to the specified server, retrying and authenticating as necessary. The request is freed with ippDelete() after receiving a valid IPP response." Revert "Fix a memory leak in cups_pull_comment_location" This reverts commit fee2664dad37536b05ce8bdae3e74d45b257f632. Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Tue May 10 17:32:58 CEST 2011 on sn-devel-104
* s3-printing: very obvious fix for cups_pull_comment_location().Günther Deschner2011-05-101-1/+1
| | | | | | This has been in there since 2008... Guenther
* s3-events: tevent_internal.h is not a public headerAndrew Tridgell2011-05-101-1/+1
| | | | | | | | | | | | | | | | | | | | We need to use the "foo.h" form instead of the <foo.h> form for headers that are not installed publicly. Otherwise when an external version of tevent is used we won't find the header and the build will fail. Note that this creates a structure dependency between the tevent structures in the external library and the headers in our source tree. That is not ideal, but is currently OK as the waf build will only use the external library if it is at least the same version as the internal tree, which means it will actually be the same version, as we release the external version from our tree. We should come up with a better solution, but for now this allows openchange to build again. Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Tue May 10 16:06:40 CEST 2011 on sn-devel-104
* s3: Use tevent_req_ntstatus properly in a few placesVolker Lendecke2011-05-1030-98/+49
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue May 10 13:11:10 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-192-17/+6
| | | | | | | | | | | | 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-build: Move generated config.h and config.h.in to include/autoconfAndrew Bartlett2011-05-095-9/+14
| | | | | | | This ensures that these are not found by the waf build, which causes issues when the wrong config.h is used by the recursive smbtorture build Andrew Bartlett
* ncalrpc: Force ncalrpc dir to be mode 755 in all usersAndrew Bartlett2011-05-081-2/+2
| | | | | | | This allows this directory to be shared between Samba3 and Samba4 in a Franky-style setup easily. Andrew Bartlett
* s3-auth Add auth_samba4 moduleAndrew Bartlett2011-05-082-0/+141
| | | | | | | | | | This module makes a direct call into the Samba4 auth stack to authenticate Samba4 uses in a Samba3 file server. The direct call avoids the need to obtain schannel credentials. Andrew Bartlett Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>
* s3-passdb: added pdb_samba4Andrew Bartlett2011-05-083-0/+2126
| | | | | | | | This uses direct LDB operations and calls to the dsdb library to allow passdb operations (such as pdbedit and smbpasswd) offline, and uses transactions internally for database consistency. Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>
* s3-passdb Redirect domain GUID and SID queries to the passdb stackAndrew Bartlett2011-05-081-0/+58
| | | | | | | | | This is done if the passdb module supports PDB_ADS, and ensures that a random SID is never made up locally for these directories. This is only enabled when in the waf build, due to dependency issues. Andrew Bartlett
* build: Allow the C code to know if this is a waf buildAndrew Bartlett2011-05-081-0/+1
| | | | | | | This allows addition of functionality that can't be handled (for example, due to dependencies) in the autoconf build. Andrew Bartlett
* s3-test: build smbtorture with --enable-developerAndrew Tridgell2011-05-081-1/+1
| | | | this makes debugging of tests much easier, as we get debug symbols
* s3-lib Use common lib/socket code for get_interfaces() et alAndrew Bartlett2011-05-087-354/+7
|
* s3-smbd: expose smbd_set_server_fd()Andrew Tridgell2011-05-083-29/+30
| | | | | | | | | | this allows the fd to be setup by subsystems that want to use the s3 server core code Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Sun May 8 12:01:13 CEST 2011 on sn-devel-104
* s3-waf: expose the server_exit code in the smbd_base libraryAndrew Tridgell2011-05-081-1/+2
| | | | these functions are called from the rest of smbd_base
* Improve debug messages when creating socket directoriesAndrew Bartlett2011-05-081-5/+12
| | | | | | This makes clear what the permissions error and directory name actually is Andrew Bartlett
* libds: moved enum security_types to a common headerAndrew Tridgell2011-05-081-3/+0
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s3-utils Set dyn_CONFIGFILE from -c on smbpasswd command lineAndrew Bartlett2011-05-081-0/+1
| | | | | | | | This is similar to the code in popt_common and allows the smb.conf to be re-loaded from this file later in the code (or for Samba4 plugins to attempt to parse the same smb.conf). Andrew Bartlett
* 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
* Fix Samba3 on OpenIndiana.Gordon Ross2011-05-072-6/+22
| | | | | | | | | | | I'd like Samba to use the native OpenLDAP and MIT Kerberos libs. Attached are some patches to do that. (relative to git master) It does not build for me without these. (OpenIndiana is an off-shoot of OpenSolaris See http://www.openindiana.org) Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat May 7 02:20:14 CEST 2011 on sn-devel-104
* A couple more off-by-one calculations with strlcpy.Jeremy Allison2011-05-061-2/+2
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri May 6 18:39:17 CEST 2011 on sn-devel-104
* s3-includes: no need to globally include libads/ads_status.h.Günther Deschner2011-05-067-1/+10
| | | | Guenther
* s3-includes: finally only include client.h when libsmb is used.Günther Deschner2011-05-0612-3/+15
| | | | Guenther
* s3-libsmb: move protos to libsmb/proto.hGünther Deschner2011-05-0683-812/+936
| | | | Guenther
* s3-proto: remove some duplicate prototypes.Günther Deschner2011-05-061-54/+0
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Fri May 6 16:21:08 CEST 2011 on sn-devel-104
* s3-spoolss: remove unused struct in construct_notify_printer_info().Günther Deschner2011-05-061-2/+1
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Fri May 6 12:07:17 CEST 2011 on sn-devel-104
* s3: only include tdb headers where needed.Günther Deschner2011-05-0668-8/+81
| | | | Guenther
* libcli/smb Move cifs posix helper functions and headers in commonAndrew Bartlett2011-05-063-524/+1
| | | | | | unix_perms_to_wire() was a duplicate symbol in the top level build. Andrew Bartlett
* lib/util Use lib/util/ms_fnmatch.c in common for gen_fnmatch()Andrew Bartlett2011-05-063-9/+1
| | | | | | | | | gen_fnmatch was a duplicate symbol in the top level build. gen_fnmatch() used for simple non-CIFS pattern matching, so selecting the lib/util implementation should not be a concern. Andrew Bartlett
* errors: Remove unused unix_to_werror()Andrew Bartlett2011-05-061-6/+0
|
* libcli/util Move NTSTATUS table to the top levelAndrew Bartlett2011-05-062-726/+5
|
* nterr: Add mem_ctx for return string from get_nt_error_c_code()Andrew Bartlett2011-05-063-8/+7
| | | | | | It is clearer to avoid the implicit return on talloc_tos() Andrew Bartlett
* s3-smbd ntstatus_to_dos() pulls the DOS error codes out internallyAndrew Bartlett2011-05-061-5/+4
| | | | | | This means we don't need to duplicate that logic here. Andrew Bartlett
* libcli/util Merge ntstatus_to_dos() ntstatus_to_werror() to the top levelAndrew Bartlett2011-05-062-1215/+1
| | | | | | | 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
* s3-lib Remove unused dos error codes from errmap_unixAndrew Bartlett2011-05-063-54/+47
| | | | | | | This also makes unix_nt_errmap private to errmap_unix.c and errormap.c so the tables themselves cannot be duplicate symbols until merged. Andrew Bartlett