1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
Commit Graph

17279 Commits

Author SHA1 Message Date
Andrew Bartlett
a55afef6d3 Rework mkrelease.sh to exclude Samba3 files
This matches my proposal to samba-technical, and should allow a Samba4
release to be made shortly.

Andrew Bartlett
2008-10-20 20:07:09 +11:00
Andrew Bartlett
85acd7eccc Make the updated RPC-LSA pass against Win2008, and Samba4 to match 2008-10-20 20:07:09 +11:00
Matthias Dieter Wallnöfer
b789ff950f LSA Patch for User Manager
New (major) patch
=================
- Enhances the "lsa.idl" file in the sense that it adds more values to
"PolicyInformation" to improve the "lsa_QueryInfoPolicy*" calls.
- Adds a minimal implementation for "AuditEvents" (also lsa_QueryInfoPolicy*
calls) to enable the "Audit" option in the "User Manager for Domains" (at least
readable).
- Adds to the "lsa.idl" file the system access mode flags needed for the calls
"lsa_*SystemAccessAccount".
- Fill in the "lsa_GetSystemAccessAccount" for enabling the "User Rights"
option in the "User Manager for Domains" (at least readable).
- Merge the two similar torture tests of the "lsa_QueryInfoPolicy*" calls in
one using "if"'s for a few separations.
- Add a torture test for "lsa_GetSystemAccessAccount".
- Some cosmetic-only changes (unifications) in output strings in the "LSA"
torture test.

The work has been done using the Microsoft WSPP docs.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2008-10-20 20:07:09 +11:00
Andrew Bartlett
3038bc484e Mark clearTextPassword as a privilaged attribute 2008-10-20 20:07:09 +11:00
Andrew Bartlett
c41cc67722 Ensure the hdb_method structure is not on the stack.
We supply this to krb5 as a plugin, so we must keep it around as long
as the krb5_context.

Andrew Bartlett
2008-10-20 20:07:09 +11:00
Andrew Bartlett
71022daac2 Add samba4kpasswd and rkpty binaries
smaba4kpasswd will be used to test the kpasswdd componet of the KDC
(which is up until now untested), and rkpty is an expect-like wrapper
we can use to blackbox that utility.

Andrew Bartlett
2008-10-20 20:07:08 +11:00
Jelmer Vernooij
c3d8f472e8 Export variables correctly for blackbox tests (thanks metze). 2008-10-20 10:53:26 +02:00
Jelmer Vernooij
e549759efe Fix blackbox tests on IPv6-only hosts. 2008-10-20 10:18:02 +02:00
Jelmer Vernooij
c0de338394 Move Samba4-specific code out of selftest. 2008-10-19 16:07:00 +02:00
Jelmer Vernooij
7e088ec354 Fix comment after paths have changed. 2008-10-19 14:41:10 +02:00
Jelmer Vernooij
2c8cf0b394 Merge branch 'master' of ssh://git.samba.org/data/git/samba into strhex 2008-10-19 10:45:25 +02:00
Jelmer Vernooij
c484b0465c Move SMB-specific attribute function to SMB client library. 2008-10-19 10:45:02 +02:00
Jelmer Vernooij
694a579cb8 Merge branch 'selftest' of git://git.samba.org/jelmer/samba 2008-10-19 10:20:37 +02:00
Günther Deschner
f34b6bfe34 idl: share drsblobs idl.
Guenther
2008-10-18 23:54:49 +02:00
Günther Deschner
80af41b5ea drsuapi: build new merged drsuapi idl and helpers.
Guenther
2008-10-18 23:25:58 +02:00
Günther Deschner
d413e1f40a drsuapi: share drsuapi idl and helper code.
Guenther
2008-10-18 23:25:48 +02:00
Günther Deschner
dd49f7483b s4-drsuapi: merge drsuapi_DsGetNCChanges from s3 drsuapi idl.
Guenther
2008-10-18 23:06:39 +02:00
Günther Deschner
6ddaf5f160 s4-drsuapi: merge drsuapi_DsCrackNames from s3 drsuapi idl.
Guenther
2008-10-18 23:06:31 +02:00
Günther Deschner
ca84c406d3 s4-drsuapi: merge drsuapi_DsGetDomainControllerInfo from s3 drsuapi idl.
Guenther
2008-10-18 23:06:24 +02:00
Günther Deschner
32a1d55797 s4-drsuapi: merge drsuapi_DsWriteAccountSpn from s3 drsuapi idl.
Guenther
2008-10-18 23:06:17 +02:00
Günther Deschner
b684efacf5 s4-drsuapi: merge drsuapi_DsRemoveDSServer from s3 drsuapi idl.
Guenther
2008-10-18 23:06:07 +02:00
Günther Deschner
bc1d39483c s4-drsuapi: merge drsuapi_DsAddEntry from s3 drsuapi idl.
Guenther
2008-10-18 23:05:59 +02:00
Jelmer Vernooij
6a89b59ca6 Add TALLOC_CTX pointer to strhex_to_data_blob for consistency with Samba
3.
2008-10-18 18:09:04 +02:00
Jelmer Vernooij
2d89b52be8 Use separate make variables for libutil and libcrypto. 2008-10-18 14:28:40 +02:00
Jelmer Vernooij
9d9f5b44ed Use common detection function for zlib. 2008-10-18 14:14:44 +02:00
Günther Deschner
7b23d61a68 s4-smbtorture: fix test_DsReplicaGetInfo.
Guenther
2008-10-17 23:06:42 +02:00
Günther Deschner
2f8e854417 s4-smbtorture: fix test_DsGetNCChanges torture test.
This must have been broken since a while already.

Guenther
2008-10-17 23:06:33 +02:00
Günther Deschner
1cdd9e37b0 s4-smbtorture: fix drsuapi_DsGetNT4ChangeLog test.
Guenther
2008-10-17 23:06:24 +02:00
Günther Deschner
e941e4ad52 s4: merge from s3 drsuapi.idl.
Guenther
2008-10-17 10:54:01 +02:00
Andrew Bartlett
c35b0d9ab5 Merge branch 'master' of ssh://git.samba.org/data/git/samba into master-devel 2008-10-17 15:57:07 +11:00
Andrew Bartlett
4fb64f13d5 Add a test to RPC-NETLOGON for random machine account passwords.
Andrew Bartlett
2008-10-17 14:06:33 +11:00
Andrew Bartlett
85919c34f4 Improve RPC-SAMR tests to check random passwords
By random I don't mean 'nice stream of ASCII chars, but pure random
passwords containing invalid UTF16 sequences etc.

Andrew Bartlett
2008-10-17 13:00:24 +11:00
Andrew Bartlett
99315a19be Fix errrors in new password handling code found by RPC-SAMR.
I'm very glad we have such a comprehensive testsuite for the SAMR
password change process, as it makes this a much easier task to get
right.

Andrew Bartlett
2008-10-17 12:41:02 +11:00
Simo Sorce
2deeb99fff Transform the sequence_number operation into a normal extended operation as it should always have been. Make it also async so that it is not a special case. 2008-10-16 12:55:30 -04:00
Günther Deschner
80f9029aae s4-idl: merge drsuapi.idl from s3.
Guenther
2008-10-16 11:33:33 +02:00
Andrew Bartlett
7c88ea8aad Create a 'straight paper path' for UTF16 passwords.
This uses a virtual attribute 'clearTextPassword' (name chosen to
match references in MS-SAMR) that contains the length-limited blob
containing an allegidly UTF16 password.  This ensures we do no
validation or filtering of the password before we get a chance to MD4
it.  We can then do the required munging into UTF8, and in future
implement the rules Microsoft has provided us with for invalid inputs.

All layers in the process now deal with the strings as length-limited
inputs, incluing the krb5 string2key calls.

This commit also includes a small change to samdb_result_passwords()
to ensure that LM passwords are not returned to the application logic
if LM authentication is disabled.

The objectClass module has been modified to allow the
clearTextPassword attribute to pass down the stack.

Andrew Bartlett
2008-10-16 12:48:16 +11:00
Andrew Bartlett
fc54ca014b Move the password_hash module up the module stack.
This makes it operate in all partitions (minor), but more importantly
places it above some other modules that implement some extra schema
checks.  (The linked_attributes module objects to unknown attributes,
which inclues clearTextPassword, which we need internally but is not
in the schema).

Andrew Bartlett
2008-10-16 12:31:19 +11:00
Andrew Bartlett
004bbbcd3b Assert that the server provides allowedAttributes (etc) on each entry
This attribute is critical for the operation of nearly all the
Microsoft Mangement Console tools

Andrew Bartlett
2008-10-16 12:26:03 +11:00
Günther Deschner
d242491488 idl: finally fully share nbt.idl in s3 and s4.
Guenther
2008-10-15 21:44:39 +02:00
Günther Deschner
a1b7b6d5b4 idl: more lsa.idl merges.
Guenther
2008-10-15 20:46:35 +02:00
Günther Deschner
ca54a563d6 s4: fix registry/rpc.c after winreg changes.
jelmer, can you check if this is ok?

Guenther
2008-10-15 19:54:17 +02:00
Günther Deschner
e561c9acd5 s4: merge from s3 lsa idl.
Guenther
2008-10-15 19:45:28 +02:00
Jelmer Vernooij
4c61745573 Merge branch 'master' of git://git.samba.org/samba 2008-10-15 17:48:25 +02:00
Günther Deschner
11ecd5acfd s4: merge from s3 samr.idl.
Guenther
2008-10-15 17:42:33 +02:00
Jelmer Vernooij
ada0e343b2 Sync parameter names with samba 3. 2008-10-15 17:38:51 +02:00
Jelmer Vernooij
fed4658c1b winreg.idl: Sync ref change from Samba 3. 2008-10-15 17:34:55 +02:00
Günther Deschner
c4d5fe702d s4: fix smbtorture build with merged wksvcs idl.
Guenther
2008-10-15 17:32:58 +02:00
Jelmer Vernooij
915f1df904 Fix wkssvc test build. 2008-10-15 17:04:19 +02:00
Jelmer Vernooij
5390dc0d24 Share wkssvc.idl. 2008-10-15 16:48:53 +02:00
Jelmer Vernooij
85c36cb2cd Share eventlog.idl. 2008-10-15 16:37:27 +02:00