1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

62895 Commits

Author SHA1 Message Date
Günther Deschner
fb16ac229b s3-registry: support REG_QWORD.
Guenther
2010-05-20 18:32:08 +02:00
Günther Deschner
026fae89d6 s3-utils: remove trailing whitespace from profiles utility.
Guenther
2010-05-20 14:18:01 +02:00
Günther Deschner
b75384546a librpc: finally merge ndr_string.c.
Guenther
2010-05-20 13:57:22 +02:00
Günther Deschner
6d9fe52310 s3-libndr: merge in better ndr warnings from s4 ndr_string.c
Guenther
2010-05-20 13:54:44 +02:00
Günther Deschner
764cde5190 s3-build: add missing prototype for regtype_by_string().
Guenther
2010-05-20 13:54:08 +02:00
Günther Deschner
ba1befd365 s3-services: move services.h closer to services implementation.
Guenther
2010-05-20 13:39:46 +02:00
Günther Deschner
e7982bbe0b s3-lanman: Fix various RAP printing calls according to win98 testing and MS-RAP docs.
Guenther
2010-05-20 13:35:49 +02:00
Kai Blin
29629b9390 s3 smb2: Fix the build without kerberos
Jeremy, please check
2010-05-20 11:36:14 +02:00
Andreas Schneider
33c96e6d3a s3-net: Created a migration tool for printing TDBs.
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-20 11:08:14 +02:00
Günther Deschner
9c7d47fdad s4-smbtorture: take a TODO note for RAP-PRINTING.
Guenther
2010-05-20 11:08:14 +02:00
Matthias Dieter Wallnöfer
4b56aa2771 s4:operational LDB module - fix warnings (missing parameters, unused variable) 2010-05-20 10:23:45 +02:00
Andrew Bartlett
a0b0dc16a6 s4:auth handle addition of nested aliases of domain groups.
The challenge here is that we are asked not to add the domain groups
again, but we need to search inside them for any aliases that we need
to add.  So, we can't short-circuit the operation just because we found
the domain group.

Andrew Bartlett
2010-05-20 17:39:10 +10:00
Andrew Bartlett
9c6b637ce8 s4:auth Change auth_generate_session_info to take flags
This allows us to control what groups should be added in what use
cases, and in particular to more carefully control the introduction of
the 'authenticated' group.

In particular, in the 'service_named_pipe' protocol, we do not have
control over the addition of the authenticated users group, so we key
of 'is this user the anonymous SID'.

This also takes more care to allocate the right length ptoken->sids

Andrew Bartlett
2010-05-20 17:39:10 +10:00
Andrew Bartlett
3ff2766231 s4:auth Push check for messaging context into winbind backend
If we don't use the winbind backend, we don't (for now) need a
messaging context- and we don't have one in LDB at the moment.

Andrew Bartlett
2010-05-20 17:39:10 +10:00
Andrew Bartlett
feb9ffdac8 s4:auth Add dependency from the operational module onto auth
We had to split up the auth module into a module loaded by main deamon
and a subsystem we manually init in the operational module.

Andrew Bartlett
2010-05-20 17:39:10 +10:00
Andrew Bartlett
72ccbcacdd s4:auth Allow the operational module to get a user's tokenGroups from auth
This creates a new interface to the auth subsystem, to allow an
auth_context to be created from the ldb, and then tokenGroups to be
calculated in the same way that the auth subsystem would.

Andrew Bartlett
2010-05-20 17:39:10 +10:00
Andrew Bartlett
4fa9aa3099 s4:torture Add tests to demonstrate S2U4Self in the RPC-PAC test
We also compare against SamLogon to try and validate the whole thing.
Note that we must represent NULL as "" when comparing between the PAC
and SamLogon, due to different marshalling of the structures.

Andrew Bartlett
2010-05-20 17:39:09 +10:00
Andrew Bartlett
5f9024c8a4 s4:auth Move BUILTIN group addition into session.c
The group list in the PAC does not include 'enterprise DCs' and
BUILTIN groups, so we should generate it on each server, not in the
list we pass around in the PAC or SamLogon reply.

Andrew Bartlett
2010-05-20 17:39:09 +10:00
Andrew Bartlett
564b4c7443 s4:dsdb disable tokenGroups until end of rewrite
I need to change the functions this calls

Andrew Bartlett
2010-05-20 17:39:09 +10:00
Michael Adam
612a333d65 s3:winbind:idmap_tdb2_set_mapping: untangle assignment from check 2010-05-20 09:18:59 +02:00
Jeremy Allison
2c61c93a51 Fix bug 7442 - Samba returns incorrect SMB2 QFS device info.
Add the correct devicetype and characteristics for this info level.

Jeremy.
2010-05-19 21:28:08 -07:00
Jeremy Allison
fad5d33bf8 Fix connecting to [homes] share over SMB2.
Jeremy.
2010-05-19 21:27:43 -07:00
Jeremy Allison
b7067ee5f7 Correctly check error code return.
Jeremy.
2010-05-19 21:27:17 -07:00
Jeremy Allison
1ad551ce30 After talking with Microsoft engineers, immediately replying
on compound requests on open being deferred for a sharing violation
is a Windows bug. Re-enable the code that simply delays the compound
response if the delay time is less than 2 seconds.

Jeremy.
2010-05-19 20:09:51 -07:00
Jeremy Allison
7e96db4f50 After talking with Microsoft engineers, the "lock spin time" is
no longer used in SMB2.

Jeremy.
2010-05-19 20:09:08 -07:00
Jeremy Allison
af44593555 (Finally) fix bug #7158 - SMB2 connection resets during IOZone tests from 64-bit Vista client
It turns out that the persistent handles are used by the Microsoft
redirector to index files on oplock break requests. So even if we
don't do durable handles (yet) we must set the persistent handle
on create. For now just use the same handle value as we use for
volatile.

Jeremy.
2010-05-19 19:28:26 -07:00
Simo Sorce
ae02691200 tsocket: Improve the language in some parts of the guide. 2010-05-19 17:04:45 -04:00
Thomas Nagy
66cbc62961 s4-waf: Replace local includes in header files with proper system names.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-05-19 22:30:05 +02:00
Jeremy Allison
b0d7a3d123 Thanks to Andrew Bartlett's advice, fix the NTLMSSP version problem the correct way.
No more magic blobs :-). Use ndr_push_struct_blob() to
push a properly formatted VERSION struct.

Jeremy.
2010-05-19 10:36:39 -07:00
Jelmer Vernooij
ac9341245a pynet: Raise proper exceptions rather than invoking sys.exit. 2010-05-19 19:35:22 +02:00
Stefan Metzmacher
d18fbda0d0 testprogs/win32: make it possible to specify MINGW_CC
metze
2010-05-19 13:59:45 +02:00
Stefan Metzmacher
4ce04f6f6f testprogs/win32/spoolss: we don't need absolute pathes to mingw locations
metze
2010-05-19 13:58:26 +02:00
Stefan Metzmacher
38d1776c79 testprogs/win32/npecho: use 'rm -f' instead of 'del' on unix
metze
2010-05-19 13:57:04 +02:00
Stefan Metzmacher
d133ef997d testprogs/win32: explain how to use nmake with NMakefile
metze
2010-05-19 13:56:54 +02:00
Stefan Metzmacher
64fa63c3e9 testprogs/win32/spoolss: rename Makefile.mingw GNUmakefile
metze
2010-05-19 11:12:53 +02:00
Stefan Metzmacher
b00acc81fb testprogs/win32/spoolss: rename Makefile => NMakefile
metze
2010-05-19 11:12:53 +02:00
Jeremy Allison
572e5dec1b Implement missing info level SMB_FILE_LINK_INFORMATION.
Fix bug #7435 - SMB2 hardlink fails (invalid level).
Found at the Microsoft plugsharing plugfest.

Jeremy.
2010-05-18 18:34:54 -07:00
Jeremy Allison
c7982074a7 Keep track of credits we're giving out. Set initial credits to 1 (MS-SMB2 spec required).
Jeremy.
2010-05-18 17:11:54 -07:00
Kamen Mazdrashki
ad9050a6ff s4/drsuapi: Add another set of predefined ATTIDs
Very useful for debugging/dumping purposes
2010-05-19 02:49:05 +03:00
Kamen Mazdrashki
799eb535a9 s4/metadata: fix whitespaces 2010-05-19 02:49:05 +03:00
Kamen Mazdrashki
242b41a3d8 s4/selftest: fix passwords in selftest-vars script 2010-05-19 02:49:05 +03:00
Jeremy Allison
6a903078cb Fix our NTLMSSP implementation against the Microsoft torture tester.
We need to return a version blob if we negotiate version info.

Jeremy.
2010-05-18 16:34:14 -07:00
Jeremy Allison
829c87634b Change data_blob() to be based on top of data_blob_talloc(), instead of the reverse (as it is now).
It makes no sense to talloc off the null context, then talloc steal
into the required context - just talloc off the correct context, and
change data_blob() to pass in the null context to data_blob_talloc().

Jeremy.

Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-18 21:57:23 +02:00
Günther Deschner
f6f3bb1813 s3-passdb: move get_logon_hours_from_pdb() into samr server.
Guenther
2010-05-18 21:43:05 +02:00
Günther Deschner
8478770c35 s3-rpc_client: move protos to init_samr.h
Guenther
2010-05-18 21:42:57 +02:00
Günther Deschner
5a6f3a0666 s3-rpc_client: move protos to init_spoolss.h
Guenther
2010-05-18 21:42:48 +02:00
Günther Deschner
cc06133b0a s3-rpc_client: move protos to cli_spoolss.h
Guenther
2010-05-18 21:42:45 +02:00
Günther Deschner
230b880d14 s3-rpc_client: move protos to cli_lsarpc.h
Guenther
2010-05-18 21:42:41 +02:00
Günther Deschner
5ed3654112 s3-rpc_client: move protos to cli_netlogon.h
Guenther
2010-05-18 21:42:37 +02:00
Günther Deschner
3f2719c202 s3-rpc_client: move protos to cli_samr.h
Guenther
2010-05-18 21:42:32 +02:00