Stefan Metzmacher [Thu, 2 Oct 2008 00:44:25 +0000 (02:44 +0200)]
s4:kludge_acl: just fake support for the SD_FLAGS control
metze
Stefan Metzmacher [Thu, 2 Oct 2008 00:30:48 +0000 (02:30 +0200)]
s4:extended_dn: add support for <GUID=...>, <SID=...> or <WKGUID=...,DC=...> as basedn
We resolve them into the real basedn before do the real search.
metze
Stefan Metzmacher [Thu, 2 Oct 2008 09:23:21 +0000 (11:23 +0200)]
s4:lib/ldb: fix stupid <SID=...> dn parsing bugs
metze
Volker Lendecke [Thu, 2 Oct 2008 06:09:25 +0000 (08:09 +0200)]
The IRIX compiler does not like embedded unnamed unions
Volker Lendecke [Thu, 2 Oct 2008 01:37:52 +0000 (03:37 +0200)]
Attempt to fix the build on IRIX
Under irix, "sa_family" is a #define to sa_union.sa_generic.sa_family2
Volker Lendecke [Thu, 2 Oct 2008 00:17:04 +0000 (02:17 +0200)]
Fix bug 5798: "CFLAGS info lost in configure"
Michael, please check and merge to the other branches if it's right.
Thanks,
Volker
Jeremy Allison [Wed, 1 Oct 2008 23:40:41 +0000 (16:40 -0700)]
Fix bug #5080. Access to cups-printers via samba broken with cups 1.3.4, Unsupported character set.
Cups 1.3.4 expects utf8 to be used in all messages to/from the server. We may be using a
different character set so we need to use talloc utf8 push/pull functions in all communication.
Needs more testing. Don't release until I've done a thorough test. I also have a version for 3.2.x.
Jeremy.
Jeremy Allison [Wed, 1 Oct 2008 22:01:05 +0000 (15:01 -0700)]
Whitespace cleanup.
Jeremy.
Jeremy Allison [Wed, 1 Oct 2008 20:15:54 +0000 (13:15 -0700)]
Fix use of DLIST_REMOVE as spotted by Constantine Vetoshev <gepardcv@gmail.com>.
This API is unusual in that if used to remove a non-list head it nulls out
the next and prev pointers. This is what you want for debugging (don't want
an entry removed from the list to be still virtually linked into it) but
means there is no consistent idiom for use as the next and prev pointers
get trashed on removal from the list, meaning you must save them yourself.
You can use it one way when deleting everything via the head pointer, as
this preserves the next pointer, but you *must* use it another way when not
deleting everything via the head pointer. Fix all known uses of this (the main
one is in conn_free_internal() and would not free all the private data entries
for vfs modules. The other changes in web/statuspage.c and winbindd_util.c
are not strictly neccessary, as the head pointer is being used, but I've done
them for consistency. Long term we must revisit this as this API is too hard
to use correctly.
Jeremy.
Jeremy Allison [Wed, 1 Oct 2008 19:50:29 +0000 (12:50 -0700)]
Turn the socket connections into a refcounted list - in the common case there'll now only be one socket per smbd.
Changed the format of the wire data to (a) include a version number (V1) as the first element. (b) removed the
";)" at the end an replaced it with a "\n". Receiver can change back if needed, and now receiver can just log
"as-is" to a text file (making testing easier). Added my (C). Sorry Holger, but I've changed quite a bit now.
Jeremy.
Jelmer Vernooij [Wed, 1 Oct 2008 16:06:55 +0000 (18:06 +0200)]
Fix some syntax errors for use with ReST.
Jelmer Vernooij [Wed, 1 Oct 2008 15:29:16 +0000 (17:29 +0200)]
Fix header.
Jelmer Vernooij [Wed, 1 Oct 2008 15:28:12 +0000 (17:28 +0200)]
Fix formatting to be compatible with ReST.
Jelmer Vernooij [Wed, 1 Oct 2008 15:27:42 +0000 (17:27 +0200)]
Update to refer to 3 and 4, not just Samba 3.
Jeremy Allison [Tue, 30 Sep 2008 23:19:37 +0000 (16:19 -0700)]
Convert to allocated strings. Use write_data(), not send as this doesn't correctly
deal with EINTR. Jim and Holger please check this still works.
Jeremy.
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