Jelmer Vernooij [Mon, 6 Oct 2008 02:54:48 +0000 (04:54 +0200)]
Print proper error if include file can't be found.
Volker Lendecke [Sun, 5 Oct 2008 14:14:27 +0000 (16:14 +0200)]
Fix some nonempty blank lines
Volker Lendecke [Sun, 5 Oct 2008 18:47:00 +0000 (20:47 +0200)]
smbd3 is unhappy if stderr is not open
Volker Lendecke [Sun, 5 Oct 2008 14:09:18 +0000 (16:09 +0200)]
Re-enable build of smb_samba3.c after the rename smbd->samba
Volker Lendecke [Sun, 5 Oct 2008 13:48:55 +0000 (15:48 +0200)]
Remove an unused variable
Volker Lendecke [Sun, 5 Oct 2008 11:58:09 +0000 (13:58 +0200)]
Fix some missing error handlings
Volker Lendecke [Sun, 5 Oct 2008 11:12:31 +0000 (13:12 +0200)]
OS/X does not have rl_done in readline.h
Volker Lendecke [Sun, 5 Oct 2008 08:55:30 +0000 (10:55 +0200)]
Fix an uninitialized variable warning
Not sure if we can ever not get domain and dns_domain, but gcc complained
Andrew Tridgell [Sun, 5 Oct 2008 04:48:46 +0000 (15:48 +1100)]
remove dependencies on my home domain
(in other words, don't do commits in airports)
Andrew Tridgell [Sat, 4 Oct 2008 21:17:16 +0000 (08:17 +1100)]
removed some debug lines I left in the last commit
Andrew Tridgell [Sat, 4 Oct 2008 20:56:20 +0000 (13:56 -0700)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Volker Lendecke [Sat, 4 Oct 2008 20:17:30 +0000 (22:17 +0200)]
Fix an unlikely memleak found by the IBM checker
Volker Lendecke [Sat, 4 Oct 2008 20:15:03 +0000 (22:15 +0200)]
Fix an uninitialized variable found by the IBM Checker
Volker Lendecke [Sat, 4 Oct 2008 20:07:14 +0000 (22:07 +0200)]
Fix a potential NULL deref in line 258 found by the IBM checker
Volker Lendecke [Sat, 4 Oct 2008 19:52:11 +0000 (21:52 +0200)]
"gwen/cc" does not like the double const :-)
Jeremy Allison [Sat, 4 Oct 2008 00:57:37 +0000 (17:57 -0700)]
Fix the build farm. In this branch cli_echo returns NTSTATUS.
Jeremy
Andrew Tridgell [Sat, 4 Oct 2008 00:52:59 +0000 (17:52 -0700)]
updated the LSA and NETLOGON servers with fixes resulting from the AD
plugfest in Redmond
Andrew Tridgell [Sat, 4 Oct 2008 00:10:53 +0000 (17:10 -0700)]
expanded the netlogon test to better simulate the WSPP NRPC test that
we had some trouble with
Andrew Tridgell [Sat, 4 Oct 2008 00:08:39 +0000 (17:08 -0700)]
fixed the ldb blackbox test to work with non-bourne shells (as needed
by ubuntu)
fixed spelling of 'wellknown'
Jeremy Allison [Fri, 3 Oct 2008 21:58:41 +0000 (14:58 -0700)]
Correctly fix smbclient to terminate on eof from server.
Jeremy.
Jeremy Allison [Fri, 3 Oct 2008 21:18:35 +0000 (14:18 -0700)]
Simply our main loop processing. A lot :-). Correctly use events for all the previous "special" cases.
A step on the way to adding signals to the events and being able to merge the S3 event system with
the S4 one.
Jeremy.
Jeremy Allison [Fri, 3 Oct 2008 21:05:33 +0000 (14:05 -0700)]
Document "cups connection timeout".
Jeremy.
Andrew Tridgell [Fri, 3 Oct 2008 19:23:00 +0000 (12:23 -0700)]
Merge commit 'master/master'
Andrew Tridgell [Fri, 3 Oct 2008 19:21:53 +0000 (12:21 -0700)]
fixed the partition module and the GC handling
- when multiple partitions are searched, consider the search a
success if any of the partitions return success
- only search the right subset of partitions, looking at the scope
and basedn of the search
This fixes several errors with GC searches
Gerald (Jerry) Carter [Fri, 3 Oct 2008 15:51:54 +0000 (10:51 -0500)]
net_dns: Make "lwinet ads dns register" honor the "interfaces" parameter.
This is helpful on multihomed hosts that only require a subset
of IP addresses be registered with DNS.
Gerald (Jerry) Carter [Fri, 3 Oct 2008 15:51:21 +0000 (10:51 -0500)]
libaddns: Use the same prerequisite for DDNS update as Windows XP.
Hostname, TYPE: CNAME, CLASS: NONE
This has to have been broken for ages. I cannot see
how it would have worked in any environment.
Matthias Dieter Wallnöfer [Fri, 3 Oct 2008 12:29:47 +0000 (14:29 +0200)]
Fix regressions in patchfile after last patch, several other minor fixes.
Andrew Tridgell [Fri, 3 Oct 2008 04:58:46 +0000 (21:58 -0700)]
fixed the sense of ldb base dn comparisons in two places, and use a
direct comparison instead of a sub-tree comparison in another
this fixes basedn searches on the global catalog port
Andrew Tridgell [Fri, 3 Oct 2008 04:57:27 +0000 (21:57 -0700)]
fixed a talloc error in the rpc handle desctructor - destructors
should not try to free the ptr they are given
Andrew Tridgell [Fri, 3 Oct 2008 04:55:26 +0000 (21:55 -0700)]
we need to listen on all interfaces in the CLDAP server as the windows
CDLAP client ignores replies from the wrong IP
Simo Sorce [Thu, 2 Oct 2008 21:15:00 +0000 (17:15 -0400)]
Fix crash bugs in error paths: ac is not yet initialized here, and we don't
need to call ldb_module_done in the main module functions, we can directly
return an error. ldb_module_done() is for callbacks
Jeremy Allison [Thu, 2 Oct 2008 19:21:11 +0000 (12:21 -0700)]
Don't reject a successful alloc :-(.
Jeremy.
Stefan Metzmacher [Thu, 2 Oct 2008 16:49:11 +0000 (18:49 +0200)]
s4:blackblox/test_ldb: test searches via wellknownObjects
metze
Stefan Metzmacher [Thu, 2 Oct 2008 09:56:12 +0000 (11:56 +0200)]
s4:setup: add wellknownObjects to the domain object
metze
Derrell Lipman [Thu, 2 Oct 2008 13:03:32 +0000 (09:03 -0400)]
Fix bug 5805: don't close stdout
- When calling setup_logging multiple times, the code was closing the debug
file descriptor before opening or assigning the new one. We don't, however,
want to close the debug file descriptor if it is stdout.
Derrell
Stefan Metzmacher [Thu, 2 Oct 2008 09:25:13 +0000 (11:25 +0200)]
s4:drsuapi.idl: fix some fields in drsuapi_DsRemoveDSServer()
metze
Stefan Metzmacher [Thu, 2 Oct 2008 09:20:10 +0000 (11:20 +0200)]
s4:rootdse: for now don't pass down controls for the rootdse search
metze
Stefan Metzmacher [Thu, 2 Oct 2008 09:22:33 +0000 (11:22 +0200)]
s4:partition: register DOMAIN_SCOPE and SEARCH_OPTIONS controls
metze
Stefan Metzmacher [Thu, 2 Oct 2008 09:11:14 +0000 (11:11 +0200)]
s4:partition: pass down the SEARCH_OPTIONS control as uncritical
metze
Stefan Metzmacher [Thu, 2 Oct 2008 09:05:02 +0000 (11:05 +0200)]
s4:linked_attributes: fix a crash bug when the definition of a target attribute is missing
Windows 2003 has a broken schema where the definition of msDS-IsDomainFor
is missing (which is supposed to be the backlink of the msDS-HasDomainNCs
attribute.
Our schema is extracted from windows 2003, so we have the problem.
As the NET-API-BECOME-DC test triggers this bug, windows 2003
seems to just skip creating a backlink.
metze
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.
Andrew Tridgell [Tue, 30 Sep 2008 21:03:01 +0000 (14:03 -0700)]
add a test for a LSA lookupnames with a NULL string
Andrew Tridgell [Tue, 30 Sep 2008 20:57:23 +0000 (13:57 -0700)]
handle NULL strings in strchr_m() and strrchr_m()
This is needed for the LSA server code which needs to cope with a NULL
names passed to lsa_LookupNames3()
Andrew Tridgell [Tue, 30 Sep 2008 20:42:30 +0000 (13:42 -0700)]
fixed a number of places in our LSA server where we should return the
sid/name array even when all are unmapped. If we don't fill in the
array then the windows client runtime crashes
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.