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

162 Commits

Author SHA1 Message Date
Stefan Metzmacher
201a033c8f s4:netlogon: always return correct negotiate_flags in Authenticate[2|3]()
metze
2009-02-16 09:53:51 +01:00
Andrew Tridgell
72c2da9d32 fixed two problems with the DsRGetDCNameEx2 call, as used by
Win7-beta.

The first problem is that we removed the dnsDomain attribute a while
back, so we were returning NULL for two fields. We now return the
realm.

The second problem is that Win7-beta sends the domain in the form the
user typed it, so it may be in either the short or long form. We check
for the short form and convert if needed.
2009-02-10 17:28:05 +11:00
Stefan Metzmacher
5bca70a0c2 s4:rpc_server: s/private/private_data
metze
2009-02-02 13:08:49 +01:00
Stefan Metzmacher
183c379fe5 s4:lib/tevent: rename structs
list=""
list="$list event_context:tevent_context"
list="$list fd_event:tevent_fd"
list="$list timed_event:tevent_timer"

for s in $list; do
	o=`echo $s | cut -d ':' -f1`
	n=`echo $s | cut -d ':' -f2`
	r=`git grep "struct $o" |cut -d ':' -f1 |sort -u`
	files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4`
	for f in $files; do
		cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp
		mv $f.tmp $f
	done
done

metze
2008-12-29 20:46:40 +01:00
Günther Deschner
9fa4dfc4ea s4-netlogon: fix the build of netlogon server.
Guenther
2008-12-10 11:58:28 +01:00
Stefan Metzmacher
9d44600470 s4:netlogon: for now implement netr_GetAnyDCName() as wrapper of netr_GetDcName()
metze
2008-12-04 12:48:44 +01:00
Stefan Metzmacher
885a1be8b9 s4:netlogon: Implement netr_GetDcName() similar to netr_DsGetDCName()
metze
2008-12-04 12:48:39 +01:00
Günther Deschner
524156333b s4-netlogon: merge netr_ServerPasswordSet2 from s3 idl.
Guenther
2008-10-29 08:57:52 +01:00
Günther Deschner
556b5bb9ee s4-netlogon: merge netr_ServerPasswordSet from s3 idl.
Guenther
2008-10-29 08:57:52 +01:00
Günther Deschner
1798e9d7ec s4-netlogon: merge netr_ServerReqChallenge from s3 idl.
Guenther
2008-10-29 08:57:52 +01:00
Günther Deschner
8e4c691c0a s4-netlogon: merge netr_ServerAuthenticate{2,3} from s3 idl.
Guenther
2008-10-29 08:57:51 +01:00
Günther Deschner
f285af6367 s4-netlogon: merge netr_LogonSamLogon{Ex,WithFlags} from s3 idl.
Guenther
2008-10-29 08:57:31 +01:00
Günther Deschner
4f6264b66c s4-netlogon: merge netr_LogonGetDomainInfo from s3 idl.
Guenther
2008-10-29 08:57:27 +01:00
Günther Deschner
f0697b0ad5 s4-netlogon: merge netr_DsRGetDCName{Ex,Ex2} from s3 idl.
Guenther
2008-10-29 08:56:52 +01:00
Günther Deschner
2a7de4e3f8 s4-netlogon: merge netr_DsrEnumerateDomainTrusts from s3 idl.
Guenther
2008-10-28 23:40:52 +01: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
Jelmer Vernooij
9565999755 Fix include paths to new location of libutil. 2008-10-11 21:31:42 +02:00
Andrew Bartlett
320d402180 Start implementing AD-style trusted domains in Samba4's NETLOGON server 2008-10-06 14:28:26 -07:00
Andrew Tridgell
de5edb1d0c remove dependencies on my home domain
(in other words, don't do commits in airports)
2008-10-05 15:48:46 +11:00
Andrew Tridgell
fe67306fc6 removed some debug lines I left in the last commit 2008-10-05 08:17:16 +11:00
Andrew Tridgell
ba5ef49f83 updated the LSA and NETLOGON servers with fixes resulting from the AD
plugfest in Redmond
2008-10-03 17:52:59 -07:00
Andrew Bartlett
c39d1b829b Remove unused parameter from decode_pw_buffer and fail on invalid
UTF-16 input

The input checking is important, as otherwise we could set the wrong
password.

Andrew Bartlett
2008-09-22 17:50:43 -07:00
Andrew Bartlett
07a3b7a930 Update copyright, I've been working here many long years...
(This used to be commit 842ab59412)
2008-09-05 16:45:37 +10:00
Andrew Bartlett
a35263e1ab Implement NETLOGON PAC verfication on the server-side
This is implemented by means of a message to the KDC, to avoid having
to link most of the KDC into netlogon.

Andrew Bartlett
(This used to be commit 82fcd7941f)
2008-09-03 15:30:17 +10:00
Andrew Bartlett
60936dd2c4 Start implementing the server-sde NETLOGON PAC verification.
(This used to be commit 8741e8fee6)
2008-08-29 18:05:06 +10:00
Andrew Bartlett
b5a3f45f64 Add GenericInfo level for SamLogon calls from the WSPP IDL.
Andrew Bartlett
(This used to be commit ea58b650a8)
2008-08-12 17:46:01 +10:00
Jelmer Vernooij
21fc767378 Specify event_context to ldb_wrap_connect explicitly.
(This used to be commit b4e1ae07a2)
2008-04-17 12:23:44 +02:00
Andrew Bartlett
5043215f21 Generate ACB_PW_EXPIRED correctly
More correctly handle expired passwords, and do not expire machine accounts.

Test that the behaviour is consistant with windows, using the RPC-SAMR test.

Change NETLOGON to directly query the userAccountControl, just because
we don't want to do the extra expiry processing here.

Andrew Bartlett
(This used to be commit acda1f69bc)
2008-02-28 08:50:00 +11:00
Günther Deschner
bedecbc999 Fix netlogon rpc-server build.
Guenther
(This used to be commit 7a10be2ac7)
2008-01-25 22:42:14 +01:00
Günther Deschner
de50115c38 Fix netlogon rpc-server build.
Guenther
(This used to be commit 31980e03fa)
2008-01-25 00:04:24 +01:00
Andrew Bartlett
7054ce6548 Return 'not implemented' on more RPCs. (easy way to 'pass' the
torture test, as I see little reason to implement these RPCs).

Add information regarding the importance of the LogonGetDomainInfo calls

Andrew Bartlett
(This used to be commit 9cd3a76c25)
2008-01-11 09:24:38 +11:00
Günther Deschner
db225eeef1 r26558: Add IDL for netr_GetForestTrustInformation().
Guenther
(This used to be commit 7aa34b4879)
2007-12-24 01:51:00 -06:00
Jelmer Vernooij
038c75c0cb r26357: Add separate subsystem for auth_sam_reply parsing.
(This used to be commit 2d61e7c96e)
2007-12-21 05:49:02 +01:00
Jelmer Vernooij
2f5ca872a8 r26313: Fix more uses of static loadparm.
(This used to be commit 6fd0d9d3b7)
2007-12-21 05:48:25 +01:00
Jelmer Vernooij
d378cf4c15 r26310: Remove more uses of global_loadparm.
(This used to be commit 9d806da113)
2007-12-21 05:48:22 +01:00
Andrew Bartlett
f5860b5a85 r26298: Use metze's schema loading code to pre-initialise the schema into the
samdb before we start writing entries into it.

In doing so, I realised we still used 'dnsDomain', which is not part
of the standard schema (now removed).

We also set the 'wrong' side of the linked attributes for the
masteredBy on each partition - this is now set in provision_self_join
and backlinks via the linked attributes code.

When we have the schema loaded, we must also have a valid domain SID
loaded, so that the objectclass module works.  This required some ejs
glue.

Andrew Bartlett
(This used to be commit b0de08916e)
2007-12-21 05:48:15 +01:00
Jelmer Vernooij
57f20ccd24 r26296: Store loadparm context in DCE/RPC server context.
(This used to be commit fc1f4d2d65)
2007-12-21 05:48:13 +01:00
Günther Deschner
b466534a0d r26286: IDL and torture test for netr_ServerTrustPasswordsGet().
Guenther
(This used to be commit 231fe8826b)
2007-12-21 05:48:09 +01:00
Günther Deschner
96b46e9907 r26285: Add IDL and torture test for netr_ServerPasswordGet().
Guenther
(This used to be commit d64244cfe8)
2007-12-21 05:48:08 +01:00
Günther Deschner
785928dcec r26273: Add IDL and torture test for netr_NetrEnumerateTurstedDomains() and
netr_NetrEnumerateTurstedDomainsEx().

Guenther
(This used to be commit 32a189e850)
2007-12-21 05:47:56 +01:00
Jelmer Vernooij
43696d2752 r26252: Specify loadparm_context explicitly when creating sessions.
(This used to be commit 7280c1e941)
2007-12-21 05:47:29 +01:00
Jelmer Vernooij
7e298580e0 r26234: More global_loadparm fixes.
(This used to be commit 84892d030d)
2007-12-21 05:47:12 +01:00
Jelmer Vernooij
51db4c3f3d r26228: Store loadparm context in auth context, move more loadparm_contexts up the call stack.
(This used to be commit ba75f1613a)
2007-12-21 05:47:05 +01:00
Jelmer Vernooij
f4a1083cf9 r26227: Make loadparm_context part of a server task, move loadparm_contexts further up the call stack.
(This used to be commit 0721a07aad)
2007-12-21 05:47:04 +01:00
Jelmer Vernooij
181aab56d5 r26221: Add loadparm_context parameter to auth_context_create.
(This used to be commit a9a9634df8)
2007-12-21 05:46:58 +01:00
Jelmer Vernooij
ca0b72a1fd r26003: Split up DB_WRAP, as first step in an attempt to sanitize dependencies.
(This used to be commit 56dfcb4f2f)
2007-12-21 05:45:40 +01:00
Günther Deschner
faa5ef6ba8 r25896: Rename netlogon server stubs.
Guenther
(This used to be commit 2f8b8c0460)
2007-12-21 05:44:44 +01:00
Jelmer Vernooij
05e7c48146 r25553: Convert to standard bool type.
(This used to be commit b7371f1a19)
2007-10-10 15:07:54 -05:00
Jelmer Vernooij
37d53832a4 r25398: Parse loadparm context to all lp_*() functions.
(This used to be commit 3fcc960839)
2007-10-10 15:07:25 -05:00
Jelmer Vernooij
ffeee68e4b r25026: Move param/param.h out of includes.h
(This used to be commit abe8349f9b)
2007-10-10 15:05:38 -05:00