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

194 Commits

Author SHA1 Message Date
Günther Deschner
2d8157fb9e s3-netlogon: add netr_creds_server_step_check() convenience wrapper.
Guenther
2009-08-27 15:55:19 +02:00
Günther Deschner
2cbacd5e10 s3-netlogon: let get_md4pw() return a struct dom_sid.
Guenther
2009-08-26 15:45:09 +02:00
Günther Deschner
a77b036f3b s3-netlogon: fix default case when _netr_LogonSamLogon is called from other opcodes.
Guenther
2009-08-26 01:06:36 +02:00
Günther Deschner
87ce535243 Revert "s3: Fix uninitialized const char *"
Tim, I am reverting this as this eliminates "_netr_LogonSamLogonEx" from the
debug messages completely. Followup fix to come immediately.

This reverts commit add9b4afb1.
2009-08-26 01:06:22 +02:00
Günther Deschner
e460c211b0 s3-netlogon: get rid of init_net_r_req_chal().
Guenther
2009-08-26 00:48:13 +02:00
Günther Deschner
5b46e5985e s3-netlogon: let get_md4pw() return a struct samr_Password.
(in preparation of credential merge).

Guenther
2009-08-26 00:48:04 +02:00
Günther Deschner
1a53b61771 s3-netlogon: make _netr_ServerAuthenticate a callback to _netr_ServerAuthenticate3.
Guenther
2009-08-26 00:47:55 +02:00
Günther Deschner
4799020e9f s3-netlogon: Only hand out rid when netlogon credential chain has been setup sucessfully.
Guenther
2009-08-24 23:09:57 +02:00
Günther Deschner
78519b6500 s3-netlogon: remove unneeded fstrings from netlogon server.
Guenther
2009-06-30 22:21:09 +02:00
Günther Deschner
f62d9f5b57 s3-netlogon: fix validation level 2 support in netr_SamLogon and friends.
Guenther
2009-06-25 12:19:10 +02:00
Andrew Bartlett
33a59921be s3:netlogon Cope with recent rename in netlogon.idl 2009-06-18 15:00:28 +10:00
Günther Deschner
90b3890654 s3-netlogon: Fix _netr_LogonSamLogon{Ex} with validation level != 3.
Guenther
2009-05-29 13:17:52 +02:00
Günther Deschner
65f86a644a s3-netlogon: return proper error code for unsupported validation class.
Guenther
2009-05-29 13:17:52 +02:00
Jeremy Allison
78fb479325 After getting confirmation from Guenther, add 3 changes we'll
ultimately need to fix bug #6099 Samba returns incurrate capabilities list.
1). Add a comment to point out that r->in.negotiate_flags is an aliased pointer to
r->out.negotiate_flags.
2). Ensure we return NETLOGON_NEG_STRONG_KEYS in our flags
return if the client requested it.
3). Clean up the error exits so we always return the same
way.
Signed off by Guenther.
Jeremy.
2009-05-06 16:10:20 -07:00
Günther Deschner
78754ab2c9 s3-netlogon: Fix NETLOGON credential chain. Fixes Bug #6099 (Windows 7 joining Samba3) and probably many, many more.
Jeremy, with 9a5d5cc1db you alter the in negotiate
flags (which are a pointer to the out negotiate flags assigned in the generated
netlogon server code). So, while you wanted to just set the *out* negflags, you
did in fact reset the *in* negflags, effectively eliminating the
NETLOGON_NEG_STRONG_KEYS bit (formerly known as NETLOGON_NEG_128BIT) which then
caused creds_server_init() to generate 64bit creds instead of 128bit, causing
the whole chain to break. *Please* check.

Guenther
2009-05-06 19:37:39 +02:00
Andrew Bartlett
f28f113d8e Rework Samba3 to use new libcli/auth code (partial)
This commit is mostly to cope with the removal of SamOemHash (replaced
by arcfour_crypt()) and other collisions (such as changed function
arguments compared to Samba3).

We still provide creds_hash3 until Samba3 uses the credentials code in
netlogon server

Andrew Bartlett
2009-04-14 16:23:35 +10:00
Volker Lendecke
4aed9abbf8 Remove the static "chal" from ntlmssp.c:get_challenge() 2009-02-21 14:04:14 +01:00
Yasuma Takeda
e32f946114 Fix bug 5920
The length of the memcpy was calculated wrong, r->out.return_authenticator is
a pointer
2009-02-16 14:08:39 +01:00
Stefan Metzmacher
fe417b29bd s3:netlogon: implement _netr_LogonGetCapabilities() with NT_STATUS_NOT_IMPLEMENTED
This hopefully fixes bug #6100.

metze
2009-02-16 11:34:35 +01:00
Jeremy Allison
9a5d5cc1db Attempt to fix bug #6099. According to Microsoft
Windows 7 looks at the negotiate_flags
returned in this structure *even if the
call fails with access denied ! So in order
to allow Win7 to connect to a Samba NT style
PDC we set the flags before we know if it's
an error or not.
Jeremy.
2009-02-15 18:12:20 -08:00
Tim Prouty
add9b4afb1 s3: Fix uninitialized const char * 2009-02-13 17:56:08 -08:00
Günther Deschner
75562a1e34 s3-netlogon: some more appropriate debug messages.
Guenther
2009-02-14 01:21:20 +01:00
Günther Deschner
99b45f71cc s3-netlogon: implement _netr_ServerAuthenticate3.
Guenther
2009-02-13 01:47:58 +01:00
Günther Deschner
076f15f54e s3: refactor _netr_LogonControl{2,2Ex} server side.
Guenther
2008-12-17 23:23:56 +01:00
Günther Deschner
3c66ba0b3c s3: fix netlogon rpc_server build after idl change.
Guenther
2008-12-13 00:28:00 +01:00
Günther Deschner
b431406357 s3-netlogon: fix netlogon server build.
Guenther
2008-12-10 11:58:28 +01:00
Stefan Metzmacher
6815fd1730 s3: rpc: let serverinfo_to_SamInfo3() work with no pipe_session_key
metze
2008-11-06 21:39:14 +01:00
Günther Deschner
f5269ff182 s3-netlogon: kill an fstring in rpc_server.
Guenther
2008-10-28 00:13:50 +01:00
Günther Deschner
3b9a03a7c3 s3: fix samlogon client and server calls.
Guenther
2008-10-15 16:14:20 +02:00
Günther Deschner
efbb8c189d rpc_server: make it a little more obvious what flags we send to a client.
Guenther
(This used to be commit f3791e03ab)
2008-08-22 00:21:31 +02:00
Volker Lendecke
8a9881c30b Remove a check on p->vuid in _netr_LogonSamLogon/off
This is in preparation of removing p->vuid completely. I don't think this check
here makes any sort of sense, it only proves that the user having done the
session setup on its way to the schannel bind (ususally anonymous) did not do a
logoff in between. But this would have been caught way before this in
reply_pipe_write_and_X.
(This used to be commit fbc00460f8)
2008-06-26 13:13:23 +02:00
Volker Lendecke
df905a5d77 Make pipes_struct its own talloc ctx
(This used to be commit 829b1ad469)
2008-06-21 10:34:34 +02:00
Volker Lendecke
968a006555 Factor out generation of an info3 struct from a serversupplied_info
(This used to be commit e60faccc1b)
2008-05-17 23:17:40 +02:00
Günther Deschner
7a6f33e3d8 _netr_LogonSamLogon: fix lm session key length.
Thanks Volker for pointing this out.

Guenther
(This used to be commit 7ccca9a004)
2008-04-29 20:22:02 +02:00
Günther Deschner
b1198fc9fd Fix samlogon rpc client & server.
Guenther
(This used to be commit 0aaf975560)
2008-03-27 13:06:43 +01:00
Günther Deschner
63b49e1f6e Fix _netr_LogonControl2(). Return talloced dcname.
Guenther
(This used to be commit 42971b71ac)
2008-03-26 19:18:08 +01:00
Günther Deschner
7269a504fd Add my copyright.
Guenther
(This used to be commit d078a87571)
2008-02-27 19:38:48 +01:00
Günther Deschner
185842df52 Use pidl for _netr_LogonSamLogon() and _netr_LogonSamLogonEx().
Guenther
(This used to be commit 0d0b939953)
2008-02-16 14:28:55 +01:00
Günther Deschner
3f24ef1848 Replace DOM_CHAL with "struct netr_Credential" where we can right now.
This allows to remove some more old netlogon client calls.

Guenther
(This used to be commit c0b1a87658)
2008-02-15 23:57:54 +01:00
Günther Deschner
ea1443efff Fix the netlogon rpc_server build.
Guenther
(This used to be commit 47806386e5)
2008-02-15 23:36:31 +01:00
Günther Deschner
5bce07977a Use pidl for _netr_LogonSamLogoff().
Guenther
(This used to be commit a9683cbf43)
2008-02-15 21:52:19 +01:00
Günther Deschner
c9f1f3d5ff Use pidl for _netr_ServerAuthenticate2().
Guenther
(This used to be commit 5d81cc136b)
2008-02-15 21:41:38 +01:00
Günther Deschner
55b2292aba Use pidl for _netr_ServerAuthenticate().
Guenther
(This used to be commit 943386c5dd)
2008-02-15 21:32:14 +01:00
Günther Deschner
4f0b904538 Use pidl for _netr_ServerPasswordSet().
Guenther
(This used to be commit 85b7489dd2)
2008-02-15 21:18:23 +01:00
Günther Deschner
7acdc9e8d6 Use pidl for _netr_LogonControl2.
Guenther
(This used to be commit 4bd02aa6cd)
2008-02-13 23:06:09 +01:00
Günther Deschner
3722208ddf Add some netr_NETLOGON_INFO init functions.
Guenther
(This used to be commit f0c6668858)
2008-02-13 23:01:34 +01:00
Günther Deschner
4140f3213d Use pidl for _netr_ServerReqChallenge.
Guenther
(This used to be commit ef42431941)
2008-02-13 14:18:58 +01:00
Günther Deschner
b94093173d Pure cosmetics: remove trailing whitespace in netlogon server.
Guenther
(This used to be commit 983ac0a676)
2008-02-13 14:18:23 +01:00
Günther Deschner
abba82ef5b Use pidl for _netr_LogonControl.
Guenther
(This used to be commit ec4947525e)
2008-02-13 12:19:37 +01:00
Günther Deschner
3b45ebb1b7 Use pidl for _netr_NetrEnumerateTrustedDomains().
This call is completely broken. For now, just make sure that we return the exact same
data as before the conversion to pidl.

Guenther
(This used to be commit 243bdaeea7)
2008-02-13 10:23:45 +01:00