1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-19 10:03:58 +03:00

253 Commits

Author SHA1 Message Date
Günther Deschner
5ddde4e19d s3-netlogon: match all logon levels in netr_SamLogon calls.
Guenther
2009-09-16 17:59:56 +02:00
Günther Deschner
799f8d7e13 schannel: fully share schannel sign/seal between s3 and 4.
Guenther
2009-09-16 01:55:06 +02:00
Günther Deschner
d3af0346c8 s3-dcerpc: use dcerpc_AuthLevel and remove duplicate set of flags.
Guenther
2009-09-15 17:49:34 +02:00
Günther Deschner
15bbae5fd8 s3-netlogon: Fix Coverity #945 UNINIT.
Guenther
2009-09-13 21:32:48 +02:00
Günther Deschner
a0b1968167 s3-netlogon: use WERRORs in NETLOGON_INFO structures.
Guenther
2009-09-02 15:29:44 +02:00
Günther Deschner
2b8afd2257 s3-netlogon: implement _netr_ServerPasswordSet2.
Guenther
2009-09-02 10:47:36 +02:00
Günther Deschner
71e9dfc0cd s3-netlogon: rework _netr_ServerPasswordSet.
Guenther
2009-09-02 10:47:35 +02:00
Günther Deschner
931771138a s3-netlogon: implement _netr_LogonSamLogonWithFlags().
Guenther
2009-09-02 10:23:28 +02:00
Günther Deschner
21a93c2ddc s3-netlogon: use shared credential and schannel storage infrastructure for netlogon server.
Guenther
2009-08-27 15:55:19 +02:00
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 add9b4afb14d3426d1f3bf5b8e7c86926f462578.
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 9a5d5cc1db0ee60486f932e34cd7961b90c70a56 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 f3791e03ab09cadb1f54e32e67f4dfb3cf42e708)
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 fbc00460f8deaa57bfbf16b12d29acec56578b63)
2008-06-26 13:13:23 +02:00
Volker Lendecke
df905a5d77 Make pipes_struct its own talloc ctx
(This used to be commit 829b1ad4697f2f1ea008377d591456722dccd025)
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 e60faccc1bdd2b80e039ec8c93683be10752f937)
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 7ccca9a004c7a4794781cbd7c703c53a0481bd51)
2008-04-29 20:22:02 +02:00
Günther Deschner
b1198fc9fd Fix samlogon rpc client & server.
Guenther
(This used to be commit 0aaf975560dce3b4e58ab71687c3412c0c2a72cf)
2008-03-27 13:06:43 +01:00
Günther Deschner
63b49e1f6e Fix _netr_LogonControl2(). Return talloced dcname.
Guenther
(This used to be commit 42971b71acec9c9fd94011c06d41702dac6b4f87)
2008-03-26 19:18:08 +01:00
Günther Deschner
7269a504fd Add my copyright.
Guenther
(This used to be commit d078a8757182d84dfd3307a2e1b751cf173aaa97)
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 0d0b93995399bba0acf891fab107fd93ecec321f)
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 c0b1a876583230a5130f5df1965d6c742961bcdc)
2008-02-15 23:57:54 +01:00
Günther Deschner
ea1443efff Fix the netlogon rpc_server build.
Guenther
(This used to be commit 47806386e5cb12919615bb3075c9ed613efa4fdb)
2008-02-15 23:36:31 +01:00
Günther Deschner
5bce07977a Use pidl for _netr_LogonSamLogoff().
Guenther
(This used to be commit a9683cbf4352ce331156f40b24a481fc87854b50)
2008-02-15 21:52:19 +01:00