summaryrefslogtreecommitdiffstats
path: root/source3
Commit message (Collapse)AuthorAgeFilesLines
* tdb_store: check returns for 0, not -1.Rusty Russell2011-06-205-13/+13
| | | | | | | | TDB2 returns a negative error number on failure. This is compatible if we always check for != 0 instead of == -1. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_delete: check returns for 0, not -1.Rusty Russell2011-06-203-6/+6
| | | | | | | | TDB2 returns a negative error number on failure. This is compatible if we always check for != 0 instead of == -1. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_fetch_compat: use instead of tdb_fetch.Rusty Russell2011-06-2012-46/+46
| | | | | | | This is a noop for tdb1. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_compat.h: divert every tdb build and includes to tdb_compatRusty Russell2011-06-2012-52/+53
| | | | | | | | We change all the headers and wscript files to use tdb_compat; this means we have one place to decide whether to use TDB1 or TDB2. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* source3/smdb/files.c: file_name_hash to use Jenkins hash from CCAN.Rusty Russell2011-06-201-3/+2
| | | | | Rather than tdb's internal one.
* source3/lib/util.c: str_checksum to use Jenkins hash from CCAN.Rusty Russell2011-06-202-3/+5
| | | | | Rather than tdb's internal one.
* smb_share_modes: don't use tdb_jenkins_hash.Rusty Russell2011-06-203-5/+4
| | | | | | | | It's a nice hash, but this usage has nothing to do with TDB. So use the Jenkins hash directly from CCAN instead (it's the same one). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* lib: import ccan modules for tdb2Rusty Russell2011-06-204-1/+6
| | | | | | | Imported from git://git.ozlabs.org/~ccan/ccan init-1161-g661d41f Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* s3: Replace shadow_copy2 with a new implementationVolker Lendecke2011-06-201-598/+1205
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Jun 20 11:17:47 CEST 2011 on sn-devel-104
* libcli/util Rename common map_nt_error_from_unix to avoid duplicate symbolAndrew Bartlett2011-06-201-1/+1
| | | | | | | | | | | | The two error tables need to be combined, but for now seperate the names. (As the common parts of the tree now use the _common function, errmap_unix.c must be included in the s3 autoconf build). Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Mon Jun 20 08:12:03 CEST 2011 on sn-devel-104
* libcli/util Bring samba4 unix -> nt_status code in common.Andrew Bartlett2011-06-201-2/+1
| | | | | | | | Due to library link orders, this is already the function that is being used. However we still need to sort out the duplicate symbol issues, probably by renaming things. Andrew Bartlett
* s3-winbind Move winbind privileged socket dir into state_path()Andrew Bartlett2011-06-201-1/+1
| | | | | | | | | On default installs, this will be the same as the old lock_path(), but lock_path() is now a directory that can safely be mapped to /var/locks and removed by the OS on reboot. It is important that the directory permissions of this directory be preserved, as they may be customised. Andrew Bartlett
* s3: Fix Coverity ID 2582: FORWARD_NULLVolker Lendecke2011-06-191-0/+5
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Jun 19 20:46:43 CEST 2011 on sn-devel-104
* s3: Fix Coverity ID 2583: RESOURCE_LEAKVolker Lendecke2011-06-191-1/+5
|
* s3: Remove unused name_queriesVolker Lendecke2011-06-191-34/+0
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Jun 19 15:14:38 CEST 2011 on sn-devel-104
* s3: Fix some type-punned warningsVolker Lendecke2011-06-191-7/+8
|
* s3: Add name_resolve_bcast_send/recvVolker Lendecke2011-06-192-20/+104
|
* s3: Fix a memleak in name_resolve_bcastVolker Lendecke2011-06-191-4/+7
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Jun 19 12:40:55 CEST 2011 on sn-devel-104
* s3: Test nttrans_createVolker Lendecke2011-06-195-0/+112
| | | | This is a test for the share security descriptor exception for nttrans_create
* s3: Add incomplete cli_nttrans_createVolker Lendecke2011-06-192-0/+208
| | | | secdesc only at this moment
* s3: Correctly align evenVolker Lendecke2011-06-191-1/+3
|
* s3:modules fix Bug 8244 - Cannot copy files larger than 2 GB to Samba shareChristian Ambach2011-06-171-3/+3
| | | | | | | | | | | | | the time_audit module uses int instead of uint64 as return value in get_alloc_size so that sizes of files larger than 2 GB are cut of leading to wrong replies to NtCreateAndX and Windows clients giving up While checking the types of all functions, I found two more wrong return value types that needed correction Autobuild-User: Christian Ambach <ambi@samba.org> Autobuild-Date: Fri Jun 17 23:11:10 CEST 2011 on sn-devel-104
* errors: reorder error codes for easier s3/s4 comparisonAndrew Bartlett2011-06-171-11/+11
|
* s3-util: remove the s3 nterr.cAndrew Tridgell2011-06-174-66/+2
| | | | | | this is now in common code Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* libclu/util: Move get_friendly_nt_error_msg() in common.Andrew Bartlett2011-06-171-20/+0
| | | | | | Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3:wb_lookupsids: add some paranoia checks to wb_lookupsids_recv()Stefan Metzmacher2011-06-161-0/+18
| | | | | | | | | This hopefully catches future bugs. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Jun 16 19:50:16 CEST 2011 on sn-devel-104
* s3:wb_lookupsids: don't ignore 'result' and check if we got useable valuesStefan Metzmacher2011-06-161-4/+48
| | | | | | | The wrong fix for bug #8215 discovered this bug, as it caused sam_rids_to_names() to always return NT_STATUS_NONE_MAPPED. metze
* Revert "s3-winbind: Fix paranoia checks in winbindd_samr.c."Stefan Metzmacher2011-06-161-2/+2
| | | | | | | | This reverts commit 207a84d725b905c2b119d2ef0f4f4d4eb391140d. This is the wrong fix for the problem, see bug #8215. metze
* s3:rpc_server/svcctl: fix valgrind bug in _svcctl_QueryServiceObjectSecurity()Stefan Metzmacher2011-06-161-1/+1
| | | | | | | | | | | r->out.buffer needs to stay in its size, as it will be marshalled completely. As it's preallocated and initialized with zeros, we just need to copy the payload into it, even if it's smaller than the offered buffer size. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Jun 16 14:15:47 CEST 2011 on sn-devel-104
* s3:rpc_server/svcctl: fix valgrind bugs in _svcctl_QueryServiceConfig2W()Stefan Metzmacher2011-06-161-9/+5
| | | | | | | | | | | r->out.buffer needs to stay in its size, as it will be marshalled completely. As it's preallocated and initialized with zeros, we just need to copy the payload into it. If we always marshall the return buffer, we already have the needed buffer size and don't need to call ndr_size_* functions. metze
* s3:rpc_server/svcctl: don't allocate return values on a temporary stackframeStefan Metzmacher2011-06-161-5/+3
| | | | | | | | | | | And always initialize the whole return structure. This caused samba3.posix_s3.rpc.svcctl to be flakey. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Jun 16 11:34:34 CEST 2011 on sn-devel-104
* s3: Add debug level 0 warnings to make_new_server_info_guestVolker Lendecke2011-06-151-2/+6
| | | | | | | | I've got a backtrace where this must have failed, but it is not clear why. If this fails, we should really complain because we can't start up. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Jun 15 15:20:49 CEST 2011 on sn-devel-104
* s3: Fix the return of make_new_server_info_guestVolker Lendecke2011-06-151-1/+1
|
* s3-winbind: Fix paranoia checks in winbindd_samr.c.Andreas Schneider2011-06-151-2/+2
| | | | | | | | | | | This fixes looking up the correct unix user instead of allocation a new uid and creating it. Fix bug #8215 (winbind unix username lookup doesn't work correctly). (cherry picked from commit 531edfdd1924bfb2ef486820f7f5787098bd953a) Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Wed Jun 15 09:56:01 CEST 2011 on sn-devel-104
* s3:utils/net_*registry: use c99 initializers which are supported by old gcc ↵Stefan Metzmacher2011-06-152-4/+8
| | | | | | | | | 2.95 compilers (bug #8226) metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Jun 15 03:48:41 CEST 2011 on sn-devel-104
* s3: Fix connecting to ctdb as non-rootVolker Lendecke2011-06-141-0/+7
| | | | | | | This is at least one instance which I could identify Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Jun 14 19:06:39 CEST 2011 on sn-devel-104
* s3: Fix count_current_connectionsVolker Lendecke2011-06-141-2/+4
| | | | "False" is not really a valid return value for "int"..
* s3-utils: fix crash in net cache getChristian Ambach2011-06-141-1/+1
| | | | | | | free the blob correctly Autobuild-User: Christian Ambach <ambi@samba.org> Autobuild-Date: Tue Jun 14 12:01:59 CEST 2011 on sn-devel-104
* s3:smbd/quotas: add #include "system/filesys.h" (bug #8224)Stefan Metzmacher2011-06-141-0/+1
| | | | | | | | | This should fix the build on FreeBSD metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Jun 14 09:38:49 CEST 2011 on sn-devel-104
* s3:proto.h: remove prototypes of error functions moved to common code.Michael Adam2011-06-131-3/+0
| | | | | | | ntstatus_to_dos, werror_to_ntstatus, ntstatus_to_werror Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Mon Jun 13 03:31:58 CEST 2011 on sn-devel-104
* s3: Use resolve_wins_send/recv in resolve_winsVolker Lendecke2011-06-121-110/+15
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Jun 12 18:19:41 CEST 2011 on sn-devel-104
* s3: Add resolve_wins_send/recvVolker Lendecke2011-06-122-0/+184
|
* s3: Add wins_server_tag_ips()Volker Lendecke2011-06-122-0/+44
| | | | For a given tag, return the list of all wins servers
* s3: Add query_wins_list_send/recvVolker Lendecke2011-06-121-0/+144
|
* s3: Fix IO_TIMEOUT handling for wins queriesVolker Lendecke2011-06-121-3/+12
|
* s3: Remove "struct ip_service" from resolve_winsVolker Lendecke2011-06-123-25/+18
|
* s3-passdb: Implement new pdb trust calls for the default backendSumit Bose2011-06-123-8/+194
| | | | | | | Signed-off-by: Simo Sorce <idra@samba.org> Autobuild-User: Simo Sorce <idra@samba.org> Autobuild-Date: Sun Jun 12 06:45:25 CEST 2011 on sn-devel-104
* Revert "s3:idmap_autorid: add a talloc_stackframe() to ↵Michael Adam2011-06-111-6/+5
| | | | | | | | | | | idmap_autorid_initialize()" This reverts commit 65490ea4e67bf82cf8fb0b8e4e74047c3f63c509. This sequence of patches needs to be done differently. Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Sat Jun 11 12:55:11 CEST 2011 on sn-devel-104
* Revert "s3:idmap_autorid: use "idmap config <DOMAIN> : rangesize" instead of ↵Michael Adam2011-06-111-9/+1
| | | | | | | | "autorid:rangesize"" This reverts commit b0b0b625b588057c8c97371934bf21eb1fd985d8. This sequence of patches needs to be done differently.
* Revert "s3:idmap_autorid: fail initialization if the domain is not "*""Michael Adam2011-06-111-9/+1
| | | | | | This reverts commit cd8dc47bf17d2cdb1558dc6ab49320ba12af8f34. This sequence of patches needs to be done differently.