1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-25 06:04:04 +03:00

48310 Commits

Author SHA1 Message Date
Volker Lendecke
9097a67def Fix bug 5798: "CFLAGS info lost in configure"
Michael, please check and merge to the other branches if it's right.

Thanks,

Volker
2008-10-02 02:27:30 +02:00
Jeremy Allison
3bfb53caa8 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.
2008-10-01 16:40:41 -07:00
Jeremy Allison
ea85ceefa9 Whitespace cleanup.
Jeremy.
2008-10-01 15:01:05 -07:00
Jeremy Allison
e4f5bfb34b 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.
2008-10-01 13:15:54 -07:00
Jeremy Allison
370cbe0060 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.
2008-10-01 12:50:29 -07:00
Jelmer Vernooij
ca44340891 Fix some syntax errors for use with ReST. 2008-10-01 18:06:55 +02:00
Jelmer Vernooij
bdd80734c9 Fix header. 2008-10-01 17:29:16 +02:00
Jelmer Vernooij
90d1481cf6 Fix formatting to be compatible with ReST. 2008-10-01 17:28:12 +02:00
Jelmer Vernooij
d56a81f60a Update to refer to 3 and 4, not just Samba 3. 2008-10-01 17:27:42 +02:00
Jeremy Allison
c164ff2be5 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.
2008-09-30 16:19:37 -07:00
Jeremy Allison
5d7d18b7e8 Revert erroneous commit.
Jeremy.
2008-09-30 15:26:26 -07:00
Jeremy Allison
4e6445a072 Remove current_user_info - not needed.
Jeremy.
2008-09-30 15:21:58 -07:00
Jeremy Allison
321191d5e2 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.
2008-09-30 15:13:19 -07:00
Andrew Tridgell
14378d7c4c add a test for a LSA lookupnames with a NULL string 2008-09-30 14:03:01 -07:00
Andrew Tridgell
2c978bbfa9 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()
2008-09-30 13:57:23 -07:00
Andrew Tridgell
69fe3a5ddd 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
2008-09-30 13:42:30 -07:00
Jeremy Allison
97d57d0364 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.
2008-09-30 13:26:41 -07:00
Andrew Tridgell
f84093df86 Merge branch 'master' of ssh://git.samba.org/data/git/samba 2008-09-30 13:02:09 -07:00
root
687ce0b60a Use a getatr instead to make things cleaner.
Jeremy.
2008-09-30 12:44:24 -07:00
Jeremy Allison
a238f17e27 Add in test name visible on the wire or in debug logs so you can see when particular tests start.
Jeremy.
2008-09-30 12:33:00 -07:00
Matthias Dieter Wallnöfer
ee97097783 Use UTF8 rather than the possibly different UNIX charset. 2008-09-30 18:10:04 +02:00
Andrew Tridgell
ef6fc37add check call status not rpc fault code when calling to different levels
of calls
2008-09-30 08:46:22 -07:00
Andrew Tridgell
dab5d4abbc cope with NULL attr 2008-09-30 08:46:22 -07:00
Andrew Tridgell
be050125b6 - 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
2008-09-30 08:46:00 -07:00
Jelmer Vernooij
40a6a28170 Move Samba4-specific files into source4/ 2008-09-30 17:11:39 +02:00
Jelmer Vernooij
e0af9601e1 Fix FHS flag, rename to --enable-fhs since it's a feature flag
and doesn't take any arguments.
2008-09-30 16:41:21 +02:00
Andrew Tridgell
4f07894c29 The author of the upstream code asked for this code to be GPLv2+ not GPLv3 2008-09-30 07:17:02 -07:00
Andrew Tridgell
717b36c672 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
2008-09-30 07:14:31 -07:00
Jelmer Vernooij
3d8323fbff Compare sids in samba3sam tests. 2008-09-30 16:02:21 +02:00
Jelmer Vernooij
a36b6c5a42 Make Sid member variables accessible from Python. 2008-09-30 16:02:09 +02:00
Jelmer Vernooij
7f1c02cd7a Enable winreg Python tests - authentication works now. 2008-09-30 15:24:46 +02:00
Jelmer Vernooij
ae38514534 Merge branch 'master' of ssh://git.samba.org/data/git/samba 2008-09-30 14:57:51 +02:00
Stefan Metzmacher
394f24b374 s4:drsblob: fix the build
metze
2008-09-30 09:05:45 +02:00
Stefan Metzmacher
e622325155 s4:smb_server/smb: FLAGS2_SMB_SECURITY_SIGNATURES should only be echoed, not set always
metze
2008-09-30 08:42:47 +02:00
Andrew Bartlett
04edf11bee Rework to match new trustDomainPasswords IDL 2008-09-29 22:34:36 -07:00
Andrew Bartlett
64195b72be Fix parsing of the trust passwords in LSA CreateTrustedDomainEx* 2008-09-29 22:34:35 -07:00
Andrew Bartlett
15b6861981 Use the new 'samba4' name for our internal hdb plugin. 2008-09-29 22:34:35 -07:00
Andrew Bartlett
6ad78f01a5 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
2008-09-29 22:34:35 -07:00
Andrew Bartlett
8dd35fabbb 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
2008-09-29 22:34:35 -07:00
Andrew Tridgell
d87e9ba56b setup the loadparm context for ldb in testjoin 2008-09-29 21:59:50 -07:00
Andrew Tridgell
8104968004 return a more useful error message when no name resolution methods are
available
2008-09-29 21:59:04 -07:00
Stefan Metzmacher
45645426c2 s4:selftest: make sure we test RPC-OBJECTUUID with seal
metze
2008-09-30 06:47:25 +02:00
Stefan Metzmacher
40e7769959 s4:torture/rpc: add RPC-OBJECTUUID
This test shows that object uuids should be ignored
if they're present in a dcerpc request.

metze
2008-09-30 06:47:25 +02:00
Stefan Metzmacher
844b331d25 s4:rpc_server: correctly handle dcerpc requests with object uuids
metze
2008-09-30 06:47:24 +02:00
Stefan Metzmacher
eb1de4f0ed s4:librpc/rpc: correctly sign or seal rpc request with an object guid
metze
2008-09-30 06:47:23 +02:00
Stefan Metzmacher
abe0af4ab4 dcerpc.idl: add DCERPC_PFC_OFFSET
metze
2008-09-30 06:47:23 +02:00
Stefan Metzmacher
3ff298c37b s4:selftest: add "smb.signing" to anon signing tests
metze
2008-09-30 06:47:22 +02:00
Jelmer Vernooij
ac5e69a999 dcesrv: Remove use of global_loadparm. 2008-09-30 06:10:32 +02:00
Jelmer Vernooij
43aaa78fe6 Update .gitignore for new pidl location. 2008-09-30 06:05:46 +02:00
Jelmer Vernooij
454122ab09 make sure dcerpc is always initialized. 2008-09-30 06:05:05 +02:00