Stefan Metzmacher
1e9df26ef9
s3:cli_netlogon: keep the the correct negotiate_flags on the cli->dc structure
...
This should fix the rpccli_netlogon_set_trust_password() against DC's
without netr_ServerPasswordSet2 support.
This fixes bug #7160 .
metze
2010-02-23 16:19:58 +01:00
Volker Lendecke
81a848be6d
s3: Remove some unused variables
2010-01-10 22:43:02 +01:00
Günther Deschner
3d679a3b5f
s3-rpc: Avoid including every pipe's client and server stubs everywhere in samba.
...
Guenther
2009-11-26 20:03:17 +01:00
Günther Deschner
64e8aa1b14
s3-netlogon: fix updating trust accout passwords with downlevel domains.
...
When choosing the netlogon password set function, make sure to look at the
*negotiated* flags in the cli->dc state, not the ones we start the negotiation
with.
Guenther
2009-10-16 18:03:32 +02:00
Günther Deschner
ebe0e64ba9
s3: use enum netr_SchannelType all over the place.
...
Guenther
2009-10-13 10:21:46 +02:00
Günther Deschner
4a1b50afd5
s3-netlogon: pass down account name to remote password set functions.
...
Guenther
2009-10-13 00:07:45 +02:00
Günther Deschner
0c2fc9eedf
s3-netlogon: setup NETLOGON credential chain in rpccli_netlogon_set_trust_password() only when needed.
...
Guenther
2009-10-06 16:50:23 +02:00
Volker Lendecke
872f9c4f91
Revert "s3: Attempt to fix machine password change"
...
This reverts commit 20a8ea91e10af167067cc794a251265aaf489e75.
Ooops, this should not have been committed.
2009-10-05 22:14:06 +02:00
Volker Lendecke
20a8ea91e1
s3: Attempt to fix machine password change
2009-10-05 22:12:20 +02:00
Günther Deschner
7450f3ad99
s3-netlogon: remove remaining netlogon init functions.
...
Guenther
2009-06-25 16:46:31 +02:00
Volker Lendecke
6af92c0228
Do not panic unnecessarily
2009-04-28 05:31:48 +02:00
Günther Deschner
8d3e61e5ce
s3-netlogon: Start fixing rpccli_netlogon_setup_creds after auth merge.
...
Guenther
2009-04-24 09:52:00 +02:00
Andrew Bartlett
baf7274fed
Make Samba3 use the new common libcli/auth code
...
This is particuarly in the netlogon client (but not server at this
stage)
2009-04-14 16:23:44 +10: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
Günther Deschner
3b9a03a7c3
s3: fix samlogon client and server calls.
...
Guenther
2008-10-15 16:14:20 +02:00
Günther Deschner
e194ded26e
netlogon: move password change code out to rpccli_netlogon_set_trust_password.
...
Guenther
2008-09-21 22:30:39 +02:00
Günther Deschner
84bc4ff546
rpc_client: Bug 5616 - fix session keys also in rpccli_netr_LogonSamLogonEx wrapper.
...
Guenther
(This used to be commit fef58091408cce0d7870c86f28f78cf9400cf2b6)
2008-07-30 19:14:00 +02:00
Volker Lendecke
91df5551a4
Attempt to fix bug 5616
...
We were calculating the session key but did not return it to the caller...
(cherry picked from commit 8ab79b1d009d53e414b90e4a0ab8fc7a4889b6df)
(This used to be commit b63a6a1fd6a96bbafd88cacb9493bfea9944d404)
2008-07-28 18:07:01 +02:00
Volker Lendecke
abce3cdf56
Remove some unused code
...
(This used to be commit b60a681dd09349426aa522d697abacf62ebfdaf2)
2008-07-21 14:36:31 +02:00
Volker Lendecke
d460ead468
Remove one reference to PI_NETLOGON
...
(This used to be commit e89bbab1b875a0b55b70913dcc1e3e73137c8b90)
2008-07-21 14:36:31 +02:00
Volker Lendecke
2e905d2cd1
Allocate rpc_cli->dc in rpccli_netlogon_setup_creds()
...
The general cli_pipe routines should not have to know about this NETLOGON
speciality.
(This used to be commit d30237598d0c55b73e202c1de3a020194b67a7e6)
2008-07-20 17:06:21 +02:00
Volker Lendecke
f56eedb95c
Remove the pipe_idx variable from rpc_pipe_client
...
(This used to be commit 4840febcd481563c3d9b2fabc1fe1b2ae5a76cf6)
2008-04-20 11:47:33 +02:00
Volker Lendecke
2a2188591b
Add "desthost" to rpc_pipe_client
...
This reduces the dependency on cli_state
(This used to be commit 783afab9c891dd7bcb78895b2a639b6f3a0edf5b)
2008-04-20 00:13:09 +02:00
Volker Lendecke
b46d340fd5
Refactoring: Make struct rpc_pipe_client its own talloc parent
...
(This used to be commit a6d74a5a562b54f0b36934965f545fdeb1e8b34a)
2008-04-20 00:12:52 +02:00
Günther Deschner
99d3590455
Fix NETLOGON credential chain with Windows 2008 all over the place.
...
In order to avoid receiving NT_STATUS_DOWNGRADE_DETECTED from a w2k8
netr_ServerAuthenticate2 reply, we need to start with the AD netlogon negotiate
flags everywhere (not only when running in security=ads). Only for NT4 we need
to do a downgrade to the returned negotiate flags.
Tested with w2k8, w2ksp4, w2k3r2 and nt4sp6.
Guenther
(This used to be commit 0970369ca0cb9ae465cff40e5c75739824daf1d0)
2008-04-02 11:12:47 +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
d8d1eea136
Fix typo.
...
Guenther
(This used to be commit ffe77dc8b0476b7a5d81d63c3cf67f81033df12e)
2008-03-27 00:48: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
bdd5f1cb2a
Fix some uninitialized data in new netlogon client.
...
Guenther
(This used to be commit bd6e2fcf3b3ab15736584edbbfb941b381988499)
2008-02-19 01:51:41 +01:00
Günther Deschner
95cd28299e
Remove unused marshalling for NET_AUTH3.
...
Guenther
(This used to be commit ccf3ba0f5ce30d45a3d644552d1245391bf01754)
2008-02-17 02:53:23 +01:00
Günther Deschner
9519d95c4a
Use rpccli_netr_LogonSamLogonEx in rpccli wrapping function.
...
Guenther
(This used to be commit 51a664cd5fc1cecc21a8a515bb959cac87296bcb)
2008-02-17 02:37:12 +01:00
Günther Deschner
9f8f9c1483
Finally let our samlogon routines call rpccli_netr_LogonSamLogon internally and
...
return netr_SamInfo3.
Guenther
(This used to be commit 9e5b732d451f6a2f09d2a71e5a3aec59c771db01)
2008-02-17 02:12:01 +01:00
Günther Deschner
697f8904e7
Remove unused marshalling for NET_SRV_PWSET.
...
Guenther
(This used to be commit e48737f04d2324b604f3290904ec6163a6242ae5)
2008-02-16 16:06:55 +01:00
Günther Deschner
26106d2e39
Remove unused marshalling for NET_REQ_CHAL and NET_AUTH2.
...
Guenther
(This used to be commit 2123aff75c8db431cb37d132058902287e740a85)
2008-02-16 00:05:45 +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
34df32446d
Remove unused marshalling for NET_SAM_SYNC.
...
Guenther
(This used to be commit a94d93725a649c7a0ac1fcd61ea07579f65596da)
2008-02-15 14:24:31 +01:00
Günther Deschner
99f1806af9
Remove unused marshalling for NET_SAM_DELTAS.
...
Guenther
(This used to be commit 2dd01f07411744f1f8fec0bff7af554db08ab960)
2008-02-15 14:06:50 +01:00
Günther Deschner
d134bd3c27
Remove unused marshalling for NET_LOGON_CTRL and NET_LOGON_CTRL2.
...
Guenther
(This used to be commit c94538e742e469e4afc6e30d9d99951fda6dd219)
2008-02-13 23:12:42 +01:00
Günther Deschner
5da927716a
Remove unused marshalling for NET_DSR_GETDCNAME.
...
Guenther
(This used to be commit 65c2aa344e45064cbfddd87715862d60f7ac2a8a)
2008-02-08 23:38:13 +01:00
Günther Deschner
44f1485f0b
Remove unused marshalling for NET_DSR_GESITENAME.
...
Guenther
(This used to be commit c2682273fdbe35dce0a9caffb829c8693e3cd845)
2008-02-07 10:42:59 +01:00
Günther Deschner
f79051fe19
Remove unused marshalling for NET_GETANYDCNAME and NET_GETANYDCNAME.
...
Guenther
(This used to be commit a495e0e7c1eb91dd700a7d0fe9832fd0811cb2bb)
2008-02-07 10:31:09 +01:00
Günther Deschner
a6ce6c5649
Remove hand-written rpccli_netlogon_dsr_getdcnameex[2].
...
Guenther
(This used to be commit 3ded8b9b7eee18a3f903e264adfb7fea6a3c0c5f)
2008-01-25 21:43:55 +01:00
Volker Lendecke
533d6f617e
Remove static zeros
...
(This used to be commit dbcc213710a9af31b6094d4741a6f68f573dcdad)
2007-12-28 17:02:34 +01:00
Günther Deschner
8ded1df767
Kill fstring in getdcname & getanydcname return.
...
Guenther
(This used to be commit b7383818168863a7ba43c2456f8c44e96e76707a)
2007-12-21 15:12:40 +01:00
Andrew Tridgell
5e54558c6d
r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text
...
(This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
2007-10-10 12:28:22 -05:00
Jeremy Allison
d824b98f80
r23779: Change from v2 or later to v3 or later.
...
Jeremy.
(This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
2007-10-10 12:28:20 -05:00
Günther Deschner
1ea5dfae04
r23380: netr_getdcname returns WERROR not NTSTATUS.
...
Guenther
(This used to be commit 5e75ea7f2b568d76c8ced5f43171741532cc97c2)
2007-10-10 12:23:12 -05:00
Volker Lendecke
d807dec0f4
r23219: Two warnings
...
(This used to be commit eccd50abdaed3e4e06cc5da5473ca1beeb3fc49a)
2007-10-10 12:22:54 -05:00
Günther Deschner
d8e454664a
r23210: Very funny, we thought to use netr_GetDcName (e.g. in winbind) but were using
...
netr_GetDcAnyName all the time (which is the correct thing to do).
Fix the naming and opcode mixup in all branches.
Guenther
(This used to be commit def6464c872a5939f0028837254f2c019d2d71c8)
2007-10-10 12:22:54 -05:00
Günther Deschner
94e4a468f0
r23127: Fill in some more netlogon dsgetdcname flavours (netr_DsRGetDCNameEx,
...
netr_DsRGetDCNameEx2) and add new ds request and reply flags, also add some
more WERROR codes.
Guenther
(This used to be commit 37ae7f419702c563bcd0d9c27c02bde7efd34dd7)
2007-10-10 12:22:48 -05:00