Jeremy Allison [Tue, 30 Sep 2008 22:26:26 +0000 (15:26 -0700)]
Revert erroneous commit.
Jeremy.
Jeremy Allison [Tue, 30 Sep 2008 22:21:58 +0000 (15:21 -0700)]
Remove current_user_info - not needed.
Jeremy.
Jeremy Allison [Tue, 30 Sep 2008 22:13:19 +0000 (15:13 -0700)]
Restructure the module so it connects to the remote data sink
on connect, and closes the socket on client disconnect. This should
make it much more efficient. Store the remote fd in a private data
pointer off the handle. Finally we need to remove the fstrings and
convert to allocated buffer storage.
Jeremy.
Jeremy Allison [Tue, 30 Sep 2008 20:26:41 +0000 (13:26 -0700)]
Fix the make test problem Karolin reported. Now rename_open_files actually works correctly we must emit the change notify before we change the name, not before.
Jeremy.
Andrew Tridgell [Tue, 30 Sep 2008 20:02:09 +0000 (13:02 -0700)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba
root [Tue, 30 Sep 2008 19:44:24 +0000 (12:44 -0700)]
Use a getatr instead to make things cleaner.
Jeremy.
Jeremy Allison [Tue, 30 Sep 2008 19:33:00 +0000 (12:33 -0700)]
Add in test name visible on the wire or in debug logs so you can see when particular tests start.
Jeremy.
Matthias Dieter Wallnöfer [Tue, 30 Sep 2008 16:10:04 +0000 (18:10 +0200)]
Use UTF8 rather than the possibly different UNIX charset.
Andrew Tridgell [Tue, 30 Sep 2008 15:44:31 +0000 (08:44 -0700)]
check call status not rpc fault code when calling to different levels
of calls
Andrew Tridgell [Tue, 30 Sep 2008 15:44:06 +0000 (08:44 -0700)]
cope with NULL attr
Andrew Tridgell [Tue, 30 Sep 2008 15:42:12 +0000 (08:42 -0700)]
- make bcast name resolution match other name resolution modules for
host not found errors
- when we have no resolve context return NT_STATUS_OBJECT_NAME_NOT_FOUND
Jelmer Vernooij [Tue, 30 Sep 2008 15:11:39 +0000 (17:11 +0200)]
Move Samba4-specific files into source4/
Jelmer Vernooij [Tue, 30 Sep 2008 14:41:21 +0000 (16:41 +0200)]
Fix FHS flag, rename to --enable-fhs since it's a feature flag
and doesn't take any arguments.
Andrew Tridgell [Tue, 30 Sep 2008 14:17:02 +0000 (07:17 -0700)]
The author of the upstream code asked for this code to be GPLv2+ not GPLv3
Andrew Tridgell [Tue, 30 Sep 2008 14:14:31 +0000 (07:14 -0700)]
merged a bugfix for the idtree code from the Linux kernel. This
matches commit
7aae6dd80e265aa9402ed507caaff4a5dba55069 in the kernel.
Many thanks to Jim Houston for pointing out this fix to us
Jelmer Vernooij [Tue, 30 Sep 2008 14:02:21 +0000 (16:02 +0200)]
Compare sids in samba3sam tests.
Jelmer Vernooij [Tue, 30 Sep 2008 14:02:09 +0000 (16:02 +0200)]
Make Sid member variables accessible from Python.
Jelmer Vernooij [Tue, 30 Sep 2008 13:24:46 +0000 (15:24 +0200)]
Enable winreg Python tests - authentication works now.
Jelmer Vernooij [Tue, 30 Sep 2008 12:57:51 +0000 (14:57 +0200)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Stefan Metzmacher [Tue, 30 Sep 2008 07:04:52 +0000 (09:04 +0200)]
s4:drsblob: fix the build
metze
Stefan Metzmacher [Tue, 30 Sep 2008 06:41:16 +0000 (08:41 +0200)]
s4:smb_server/smb: FLAGS2_SMB_SECURITY_SIGNATURES should only be echoed, not set always
metze
Andrew Bartlett [Tue, 30 Sep 2008 05:34:30 +0000 (22:34 -0700)]
Rework to match new trustDomainPasswords IDL
Andrew Bartlett [Tue, 30 Sep 2008 04:36:21 +0000 (21:36 -0700)]
Fix parsing of the trust passwords in LSA CreateTrustedDomainEx*
Andrew Bartlett [Wed, 24 Sep 2008 19:53:40 +0000 (12:53 -0700)]
Use the new 'samba4' name for our internal hdb plugin.
Andrew Bartlett [Wed, 24 Sep 2008 19:53:10 +0000 (12:53 -0700)]
Rename hdb_ldb to hdb_samba4 and load as a plugin into the kdc.
This avoids one more custom patch to the Heimdal code, and provides a
more standard way to produce hdb plugins in future.
I've renamed from hdb_ldb to hdb_samba4 as it really is not generic
ldb.
Andrew Bartlett
Andrew Bartlett [Wed, 24 Sep 2008 18:20:45 +0000 (11:20 -0700)]
NetApp found that we never set the smb signing flags2.
This was found during testing at the CIFS plugfest.
No other client seems to honour or use this bit, but it is quite
ligitimately required by the spec.
Andrew Bartlett
Andrew Tridgell [Tue, 30 Sep 2008 04:59:50 +0000 (21:59 -0700)]
setup the loadparm context for ldb in testjoin
Andrew Tridgell [Tue, 30 Sep 2008 04:59:04 +0000 (21:59 -0700)]
return a more useful error message when no name resolution methods are
available
Stefan Metzmacher [Tue, 30 Sep 2008 04:42:53 +0000 (06:42 +0200)]
s4:selftest: make sure we test RPC-OBJECTUUID with seal
metze
Stefan Metzmacher [Tue, 30 Sep 2008 04:40:15 +0000 (06:40 +0200)]
s4:torture/rpc: add RPC-OBJECTUUID
This test shows that object uuids should be ignored
if they're present in a dcerpc request.
metze
Stefan Metzmacher [Tue, 30 Sep 2008 03:01:19 +0000 (05:01 +0200)]
s4:rpc_server: correctly handle dcerpc requests with object uuids
metze
Stefan Metzmacher [Tue, 30 Sep 2008 02:59:56 +0000 (04:59 +0200)]
s4:librpc/rpc: correctly sign or seal rpc request with an object guid
metze
Stefan Metzmacher [Tue, 30 Sep 2008 02:59:24 +0000 (04:59 +0200)]
dcerpc.idl: add DCERPC_PFC_OFFSET
metze
Stefan Metzmacher [Tue, 30 Sep 2008 04:43:32 +0000 (06:43 +0200)]
s4:selftest: add "smb.signing" to anon signing tests
metze
Jelmer Vernooij [Tue, 30 Sep 2008 04:10:32 +0000 (06:10 +0200)]
dcesrv: Remove use of global_loadparm.
Jelmer Vernooij [Tue, 30 Sep 2008 04:05:46 +0000 (06:05 +0200)]
Update .gitignore for new pidl location.
Jelmer Vernooij [Tue, 30 Sep 2008 04:05:05 +0000 (06:05 +0200)]
make sure dcerpc is always initialized.
Jelmer Vernooij [Tue, 30 Sep 2008 02:22:54 +0000 (04:22 +0200)]
Fix segfault.
Jelmer Vernooij [Tue, 30 Sep 2008 02:22:24 +0000 (04:22 +0200)]
wmi: Use cli_credentials.
Jelmer Vernooij [Tue, 30 Sep 2008 02:01:47 +0000 (04:01 +0200)]
Remove two more uses of global loadparm by remember required
details for secondary DCE/RPC connections.
Jelmer Vernooij [Tue, 30 Sep 2008 01:20:46 +0000 (03:20 +0200)]
Eliminate another global_loadparm.
Jelmer Vernooij [Tue, 30 Sep 2008 01:07:08 +0000 (03:07 +0200)]
Cope with API changes.
Jelmer Vernooij [Tue, 30 Sep 2008 00:47:19 +0000 (02:47 +0200)]
Pass session options around; saves another use of global_loadparm.
Jelmer Vernooij [Tue, 30 Sep 2008 00:19:15 +0000 (02:19 +0200)]
Remove global_loadparm instance, discard_const_p.
Jelmer Vernooij [Tue, 30 Sep 2008 00:11:55 +0000 (02:11 +0200)]
Remove global_loadparm instance.
Jelmer Vernooij [Tue, 30 Sep 2008 00:07:14 +0000 (02:07 +0200)]
Remove uses of global_loadparm.
Jelmer Vernooij [Mon, 29 Sep 2008 23:59:10 +0000 (01:59 +0200)]
Remove global_loadparm instance.
Jelmer Vernooij [Mon, 29 Sep 2008 23:58:06 +0000 (01:58 +0200)]
Remove redundant call.
Andrew Tridgell [Mon, 29 Sep 2008 23:51:21 +0000 (16:51 -0700)]
added new level for lsalookupnames2
Andrew Tridgell [Mon, 29 Sep 2008 23:51:05 +0000 (16:51 -0700)]
WSPP docs say we need to check that root_dir is NULL
Andrew Tridgell [Mon, 29 Sep 2008 23:50:46 +0000 (16:50 -0700)]
we need to return NT_STATUS_INVALID_PARAMETER for bad levels in
lsalookupnames2
Jelmer Vernooij [Mon, 29 Sep 2008 23:38:51 +0000 (01:38 +0200)]
Explicitly pass on session options to session setup function.
Jelmer Vernooij [Mon, 29 Sep 2008 23:29:53 +0000 (01:29 +0200)]
Pass options struct into session initialization functions rather than
using global_loadparm.
Andrew Tridgell [Mon, 29 Sep 2008 23:10:54 +0000 (16:10 -0700)]
unmapped SIDs should be rid 0 not rid -1
Andrew Tridgell [Mon, 29 Sep 2008 23:01:07 +0000 (16:01 -0700)]
added some more well known SIDs - thanks to the WSPP LSAT test suite
Jelmer Vernooij [Mon, 29 Sep 2008 22:48:13 +0000 (00:48 +0200)]
Remove unused uninstallheader script.
Jelmer Vernooij [Mon, 29 Sep 2008 22:32:20 +0000 (00:32 +0200)]
Re-add uninstallplugins, there has to be at least one instance of this.
Jelmer Vernooij [Mon, 29 Sep 2008 22:29:03 +0000 (00:29 +0200)]
Fix installation of misc files.
Jelmer Vernooij [Mon, 29 Sep 2008 22:28:06 +0000 (00:28 +0200)]
Remove ldb_module_wait implementation - ldb_module.wait() is gone.
Matthias Dieter Wallnöfer [Mon, 29 Sep 2008 21:34:05 +0000 (23:34 +0200)]
Patch by Matthias that removes old SWAT support and fixes uninstall.
Andrew Tridgell [Mon, 29 Sep 2008 21:04:48 +0000 (14:04 -0700)]
make the schannel creentials persistent
this makes testing with the WSPP test suite much easier over samba
restarts
Jelmer Vernooij [Mon, 29 Sep 2008 20:57:16 +0000 (22:57 +0200)]
Consistently use lower case variable names for path variables.
Patch by Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> and me.
Matthias Dieter Wallnöfer [Mon, 29 Sep 2008 20:47:07 +0000 (22:47 +0200)]
Stop creating symlinks to libraries without sonames. (caused recursive
symlinks overwriting the original file).
Jeremy Allison [Mon, 29 Sep 2008 17:57:22 +0000 (10:57 -0700)]
Ensure we null out fsp after a close in all paths.
Jeremy.
Jelmer Vernooij [Mon, 29 Sep 2008 17:09:53 +0000 (19:09 +0200)]
Avoid freeing fsp twice when opening new_file fails. (Debian #431696)
If opening new_file fails, fsp would still be set to the files_struct of
old_file.
Stefan Metzmacher [Thu, 18 Sep 2008 03:01:47 +0000 (05:01 +0200)]
s3:mapping_tdb: fix the del_aliasmem() function
We should not cancel the transaction, when we want to delete a key.
metze
Karolin Seeger [Mon, 29 Sep 2008 13:39:43 +0000 (15:39 +0200)]
docs: Adapt version strings in man vfs_smb_traffic_analyzer.
Karolin
(cherry picked from commit
662eda8458a304b224b6bc502f8030a07030b7c2)
Holger Hetterich [Mon, 29 Sep 2008 12:34:36 +0000 (14:34 +0200)]
Add an initial version of a manpage for the vfs_smb_traffic_analyzer module.
(cherry picked from commit
7857b783049b19d32a078927a46cb1070e863b45)
Andrew Tridgell [Wed, 17 Sep 2008 05:37:54 +0000 (15:37 +1000)]
re-added "winbind:ignore domains" patch
This option really is essential, as we discover again and again at
customer sites. Due to bugs in winbind some domains are toxic. When
you are installing at a site and a particular domain in a complex
setup causes winbind to segfault or hang then you need a way to
disable that domain and continue.
In an ideal world winbind could handle arbitrarily complex ADS
domains, but we are nowhere near that yet. If we ever get to that
stage then we won't need this option.
Andrew Tridgell [Mon, 15 Sep 2008 04:51:35 +0000 (14:51 +1000)]
fixed an (unlikely) memory leak
Andrew Tridgell [Mon, 15 Sep 2008 04:27:50 +0000 (14:27 +1000)]
fixed a segfault on the ctdb destructor code
Andrew Tridgell [Wed, 17 Sep 2008 06:23:17 +0000 (16:23 +1000)]
removed unused variables
Andrew Tridgell [Wed, 17 Sep 2008 06:15:40 +0000 (16:15 +1000)]
fixed segv on startup with trusted domains
With some setups, idmap_tdb2_allocate_id can be called before the
allocate backend is initialised, leading to a segv. This change
ensures that the db is opened in all paths that use it
Michael Adam [Mon, 29 Sep 2008 11:52:23 +0000 (13:52 +0200)]
[s3]fix build --with-cluster-support after ndr_[pull|push]_struct blob changes.
Michael
Stefan Metzmacher [Mon, 29 Sep 2008 06:42:03 +0000 (08:42 +0200)]
s4:samldb: use the code path with async ldb
This removes the event_context leak that caused
NT_STATUS_TOO_MANY_OPENED_FILES in the server,
because of all the epool fds
metze
Stefan Metzmacher [Mon, 29 Sep 2008 05:43:50 +0000 (07:43 +0200)]
s4:libcli/smb2: remove unused header
This hopefully fixes the build with internal popt.
metze
Stefan Metzmacher [Sat, 27 Sep 2008 19:36:18 +0000 (21:36 +0200)]
s4:lib/ldb: disable sqlite3 backend always as it doesn't compile anymore
metze
Simo Sorce [Thu, 11 Sep 2008 22:38:40 +0000 (18:38 -0400)]
LDB ASYNC: misc changes
Simo Sorce [Fri, 12 Sep 2008 17:27:15 +0000 (13:27 -0400)]
LDB ASYNC: ldb misc changes
Simo Sorce [Thu, 11 Sep 2008 22:36:28 +0000 (18:36 -0400)]
LDB ASYNC: samba4 modules
Simo Sorce [Thu, 11 Sep 2008 22:35:38 +0000 (18:35 -0400)]
LDB ASYNC: core modules
Simo Sorce [Thu, 11 Sep 2008 22:34:56 +0000 (18:34 -0400)]
LDB ASYNC: other backends
Simo Sorce [Thu, 11 Sep 2008 22:34:11 +0000 (18:34 -0400)]
LDB ASYNC: ldb_tdb backend
Simo Sorce [Thu, 11 Sep 2008 22:33:16 +0000 (18:33 -0400)]
LDB ASYNC: Core files
Stefan Metzmacher [Sat, 27 Sep 2008 18:37:27 +0000 (20:37 +0200)]
s4:configure: require tdb >= 1.1.3 from the system
metze
Stefan Metzmacher [Sat, 27 Sep 2008 18:35:52 +0000 (20:35 +0200)]
lib/tdb: increase the version number after some critial changes
The tdb_transaction/traverse interaction fixes are critical.
metze
Stefan Metzmacher [Sat, 27 Sep 2008 00:27:54 +0000 (02:27 +0200)]
s4:dsdb: passdown DSDB_CONTROL_REPLICATED_UPDATE_OID for replicated updates
We need to make sure replicated updates are handled differently
in some situations, e.g. we should bypass the schema checks.
metze
Volker Lendecke [Mon, 29 Sep 2008 01:14:20 +0000 (03:14 +0200)]
Fix async_connect
Michael Adam [Sat, 27 Sep 2008 20:19:56 +0000 (22:19 +0200)]
[s3]loadparm: refactor freeing of parameter data out and reduce memleak.
Add new functions free_parameter(), free_parameters() and
free_global_parameters() and use these in the appropriate places,
reducing code duplication.
Also, always TALLOC_FREE data of type P_LIST, thus reducing mem-leaks:
This had not been done in init_globals before.
Michael
Michael Adam [Sat, 27 Sep 2008 20:13:17 +0000 (22:13 +0200)]
[s3]loadparm: in lp_do_parameter() use function lp_local_ptr()
instead of hard coded calculation.
Michael
Michael Adam [Wed, 24 Sep 2008 22:54:45 +0000 (00:54 +0200)]
[s3]loadparm: remove superfluous talloc context / talloc_stackframe call.
Michael
Michael Adam [Wed, 24 Sep 2008 22:52:11 +0000 (00:52 +0200)]
[s3]loadparm: refactor setting parametric options in list out
into new function set_param_opt().
This unifies and clarifies two instances of the code.
Michael
Michael Adam [Wed, 24 Sep 2008 20:19:26 +0000 (22:19 +0200)]
[s3]loadparm: fix memory error - free the right param_opt->list in copy_service.
Michael
Michael Adam [Wed, 24 Sep 2008 19:59:34 +0000 (21:59 +0200)]
[s3]loadparm: refactor freeing of parametric options into free_param_opts().
This code was there in three places.
Michael
Michael Adam [Wed, 24 Sep 2008 18:31:39 +0000 (20:31 +0200)]
[s3]loadparm: rename process_registry_service() to process_smbconf_service().
There is nothing registry-specific in that function.
Michael
Michael Adam [Sat, 27 Sep 2008 20:10:44 +0000 (22:10 +0200)]
[s3]testparm: give testparm one common exit point and call gfree_loadparm().
Michael
Michael Adam [Sat, 27 Sep 2008 20:10:05 +0000 (22:10 +0200)]
[s3]testparm: free the popt context when it is no longer used.
Michael
Michael Adam [Sat, 27 Sep 2008 20:08:02 +0000 (22:08 +0200)]
[s3]build: build the new test_lp_load command.
Michael
Michael Adam [Sat, 27 Sep 2008 20:06:27 +0000 (22:06 +0200)]
[s3]loadparm: add a command test_lp_load to test the lp_load function.
This is not like testparm, just a simple tool that runs
lp_load_with_registry_shares the requested number of times.
Michael
Jeremy Allison [Sat, 27 Sep 2008 01:39:03 +0000 (18:39 -0700)]
Second part of the fix for bug #5790 - samba returns STATUS_OBJECT_NAME_NOT_FOUND on set file disposition call.
This was my fault. I use a singleton cache (positive and negative) to speed up pathname based qfileinfo/setfileinfo lookups for alternate fsp's open on the same path. I only invalidated the negative cache on adding a new file fsp, as I incorrectly imagined the new fsp was put at the *end* of the open files list. DLIST_ADD puts it at the start, meaning any subsequent open wasn't seen once the cache was set. Doh !
Jeremy.