1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-05 20:58:40 +03:00

1204 Commits

Author SHA1 Message Date
Jelmer Vernooij
f29220fe11 Allow base classes to be defined in other files. 2008-09-15 17:39:44 +02:00
Jelmer Vernooij
53c9df4da0 Redefine BSTR. 2008-09-15 17:39:40 +02:00
Jelmer Vernooij
feb0ab15b9 Redefine BSTR. 2008-09-15 17:39:39 +02:00
Jelmer Vernooij
947bde9562 Avoid using unions without discriminants. 2008-09-15 17:36:59 +02:00
Jelmer Vernooij
7b88d09d8d Reimport pidl support for COM. 2008-09-15 17:36:58 +02:00
Jelmer Vernooij
51a613acde Move WMI IDL into separate IDL file. 2008-09-15 17:36:54 +02:00
Andrzej Hajda
323b97f76d Import IDL for WMI. 2008-09-15 17:36:53 +02:00
Jelmer Vernooij
37a38eeff2 Reimport DCOM IDL. 2008-09-15 17:36:51 +02:00
Stefan Metzmacher
5b70daad7a drsblobs.idl: add parser for ExtendedErrorInfo see [MS-EERR]: ExtendedError Remote Data Structure
metze
(This used to be commit 3edbbb12bda8e19a9f5a72849bc79e0fad7976f8)
2008-09-09 11:29:15 +02:00
Andrew Bartlett
b3cee235f5 More work towards trusted domains support in Samba4's LSA
Make 'lsar_CreateTrustedDomain' consistant with
lsar_CreateTrustedDomainEx{,2} by renaming handle -> policy_handle

Implement LSA server logic to create the cn=users trust account for
incoming trusts.

Andrew Bartlett
(This used to be commit d87b655e20b7c38756774cec2e5898af38c46786)
2008-09-08 10:55:34 +10:00
Andrew Bartlett
19fb3b0199 More work to implement LSA CreateTrustedDomainEx2
We still don't get the format inside the encrypted blob correct
however.

Andrew Bartlett
(This used to be commit 99a3abda09716c064b3e9a37c4a79a8f62444eca)
2008-09-04 16:06:38 +10:00
Andrew Bartlett
b936d0f3be Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
(This used to be commit 9590805bcbdd1924eda5a69978ffac7ec7603451)
2008-09-03 15:34:44 +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 82fcd7941f5c54da2d994c8bd99dd8d86299a296)
2008-09-03 15:30:17 +10:00
Andrew Bartlett
279ca74493 Share IDL between the LSA and drsblob representations of trusts
(This used to be commit e5520706c88911c66b3ce5817e371900212ca083)
2008-09-02 11:31:17 +10:00
Andrew Bartlett
81dcc99e9a It turns out that the Netlogon PAC verification is encrypted.
This test now passes against Win2k3, and a implementation in the
Samba4 server should follow shortly.

Andrew Bartlett
(This used to be commit c6b8ba893dd3ed90bca32c0ae89fd33be729c238)
2008-08-29 15:06:30 +10:00
Andrew Bartlett
adb207e903 Further rework the RPC-PAC test.
This would seem to match the documentation requirements for the PAC
verfication over NETLOGON, but I can't get Win2k3 to accept it so far.

Andrew Bartlett
(This used to be commit acfa87f3411a61bdd9066fbbba2bcfbe2a60cbbe)
2008-08-28 16:30:17 +10:00
Andrew Bartlett
960bd9df1f Add a test to explore Netlogon PAC validation
However, I have still not figured out this protocol yet, and the docs
are rather unclear... :-(

Andrew Bartlett
(This used to be commit d878643071a1477435a267e2944461d367cdfa79)
2008-08-27 21:36:27 +10:00
Andrew Bartlett
f08786686c Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into pac-verify
(This used to be commit b706708210a05d6f10474a3cd2bbc550704d4356)
2008-08-26 16:26:08 +10:00
Andrew Bartlett
291b0dfb2a Update RPC-LSA to (almost) pass against Windows 2008.
(This used to be commit a17cb558c23142e522de3ed56d65c7694477395f)
2008-08-26 09:49:54 +10:00
Andrew Bartlett
9eacc3a8f3 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
(This used to be commit a555334db67527b57bc6172e3d08f65caf1e6760)
2008-08-25 08:27:06 +10:00
Andrew Tridgell
e80876ef9e Merge commit 'origin/v4-0-test' into v4-0-test
(This used to be commit 93cf0b3c7e6d8a4758c44519de51e51be89f76c7)
2008-08-22 18:39:52 +10:00
Andrew Tridgell
0a27ff953e Merge branch 'abartlet-4-0-local' into v4-0-test
(This used to be commit 469fac2669991b130dec219e1a109a8b2ce224be)
2008-08-22 17:37:43 +10:00
Stefan Metzmacher
e3319bf849 drsuapi.idl: use hand written push functions for the compressed blobs
This isn't really the final solution, as we compress the data twice,
but it works.

metze
(This used to be commit 6da1d41173a7b82412fcebdd751eade51cf82b2a)
2008-08-21 12:48:48 +02:00
Stefan Metzmacher
8acc7f7da7 krb5pac.idl: make use of subcontext(0xFFFFFC01) to handle the type Serialization header
Now we should be able to handle bigendian PAC_LOGON_INFO buffers.

metze
(This used to be commit adbff0b0f92aa0742a8293071776b388879cbd8e)
2008-08-20 15:23:25 +02:00
Stefan Metzmacher
9d0db64d24 drsuapi.idl: readd type serialization headers to compressed DsGetNCChangesCtr*
metze
(This used to be commit 4e6937816f1563686d04da4ab00a46d4461401b9)
2008-08-20 15:22:05 +02:00
Matthias Dieter Wallnöfer
bec7a95207 Add extra bits to our 'netlogon' response in CLDAP and NBT.
I've studied now the netlogon attribute from the CLDAP request and
have compared them with the table presented in the WSPP docs
(http://msdn.microsoft.com/en-us/library/cc201036.aspx). The first two
bytes seem to be correct, but that the third and fourth one is
completely clear with SAMBA 4.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
(This used to be commit 3024a43c25e3ec9821d94a27d5cf738890b1b8f3)
2008-08-20 12:45:41 +10:00
Andrew Bartlett
ac503b140d Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
(This used to be commit b337369d5c86b37d93ee1c62880068e14d6c09f6)
2008-08-15 07:58:03 +10:00
Andrew Tridgell
0eb1840994 cope with arbitrary unknown pac buffer types, so when MS adds
a new one we don't break our server
(This used to be commit 5e08b285319e35afd3a9a6e6f5f59145350f2d80)
2008-08-14 15:27:48 +10:00
Andrew Bartlett
bf002d1173 Rework the trustAuthInOutBlob with the help of a hand parser.
This produces a C structure that is sane, while still parsing the wire
blobs (as far as I can tell).

Andrew Bartlett
(This used to be commit b5dbe815e5dd3f865c7735bc76e02017a869f09b)
2008-08-13 16:16:59 +10:00
Andrew Bartlett
b5a3f45f64 Add GenericInfo level for SamLogon calls from the WSPP IDL.
Andrew Bartlett
(This used to be commit ea58b650a81b48b0477edbcda1e4e26a3b2a9b9e)
2008-08-12 17:46:01 +10:00
Stefan Metzmacher
0965b22ec5 dcerpc.idl: remove used DCERPC_MAX_SIGN_SIZE
metze
(This used to be commit 54b873e49ff363609632fa2862208bf6b4c1b6ed)
2008-08-11 18:15:59 +02:00
Stefan Metzmacher
802b4596fe dcerpc.idl: add DCERPC_AUTH_TRAILER_LENGTH
metze
(This used to be commit ce36448d74b0c6cdf8928e10c088bf0248a95cf7)
2008-08-11 18:15:58 +02:00
Stefan Metzmacher
8a01bdc99a drsuapi.idl: directly use mszip in level 2
This fixes the push because the switch_level doesn't work
otherwise because the pointer is the same as for
the outer switch_level.

metze
(This used to be commit a4c81ee68c91b2d7a9abe668e8b23246c5c9b00d)
2008-08-07 18:44:49 +02:00
Andrew Bartlett
43d2329da6 Update to a working trustAuthIncoming and trustAuthOutgoing parser.
This is based on the docs, as well as testing against a domain trust
in windows.

Clearly it needs to be more general - perhaps a non IDL parser?

Andrew Bartlett
(This used to be commit 816bb64a56a75d1eb5e879b4abf211af27243686)
2008-07-31 23:17:20 +10:00
Andrew Bartlett
2b0ed1832a Update trustAuthInOutBlob in line with MS-ADTS 7.1.6.8.1
(This used to be commit 26c2a34dec26890230dfa86827804d8160061ce5)
2008-07-31 07:45:30 +10:00
Stefan Metzmacher
7a633ed96b dcerpc.idl: add DCERPC_PFC_FLAG_SUPPORT_HEADER_SIGN flag
metze
(This used to be commit 131a1cfdc9a1228d9263c77bcd31b05d2946fd50)
2008-07-26 21:44:30 +02:00
Stefan Metzmacher
8a86e3cb45 drsblobs.idl: unify the Primary:Kerberos and Primary:Kerberos-Newer-Keys structs
metze
(This used to be commit 4b79a7678571ac2f7d5f827913fdcb419f5d2e20)
2008-07-24 08:24:09 +02:00
Stefan Metzmacher
aaa29d2fa5 drsblobs.idl: give some unknowns a meaning
metze
(This used to be commit 231e6f5ab2dc8a3e991a9872be252cffff6f14c6)
2008-07-24 08:24:08 +02:00
Stefan Metzmacher
28a7e6f125 drsblobs.idl: add idl for Primary:Kerberos-Newer-Keys blob in supplementalCredentials
metze
(This used to be commit 97b7901afbccc9647ad2958d4cf12300de2655d1)
2008-07-23 14:46:10 +02:00
Stefan Metzmacher
e3434f8995 drsblobs.idl: fix unknowns in package_PrimaryKerberos idl
metze
(This used to be commit da9ceb2bf17f964334d9317829d40483e2c04b10)
2008-07-23 14:46:09 +02:00
Stefan Metzmacher
ecdd13389f drsblobs.idl: fix idl for supplementalCredentialsSubBlob
metze
(This used to be commit 24c5b10136f6e640832193aaf9e6d7e865c288bc)
2008-07-23 14:46:08 +02:00
Stefan Metzmacher
bb12c78d44 drsblobs.idl: rename unknown1 -> reserved
metze
(This used to be commit 9a70b2237d4fdd523edfbca0329ad35e71faf998)
2008-07-23 14:46:07 +02:00
Michael Adam
e184b70768 drsuapi.idl: change the u1 field in DsBindInfo* to "pid".
According to the WSPP docs, section 5.35,
this is the "process identifyer" of the client.
It is meant for informational and debugging purposes
only and its assignment is implementation specific.

Michael
(This used to be commit 579306eb5b58b6c1142b3c489e4bcf6da50810d6)
2008-07-22 15:33:26 +02:00
Michael Adam
901e764fa7 drsuapi.idl: add drsuapi_SupportedExtensionsExt bitfield.
This knowledge is obtained from the wspp-docs (section 5.35).

Michael
(This used to be commit f5afb695045b1a2f3b8c00a4d82d40e8e50726c9)
2008-07-22 13:16:56 +02:00
Michael Adam
e7785a371a drsuapi.idl: the last 16 bytes in DsBindInfo48 ar the GUID of the config dn.
This bit seems not to be documented in the WSPP docs.

Michael
(This used to be commit 705f79bd0a5e93daa0cb11b5dcca36e75c75df93)
2008-07-22 13:16:40 +02:00
Michael Adam
2abe5e9240 drsuapi.idl: add drsuapi_DsBindInfo48.
This is necessary to make DsGetNcChanges work with win2008.

Michael
(This used to be commit dd278b069b8683a0e3721ebb7d0de06d2bc1c86f)
2008-07-22 13:16:31 +02:00
Andrew Bartlett
d626a26374 Rename structures to better match the names in the WSPP IDL.
The 'comment' element in a number of domain structures is called
oem_information.  This was picked up actually because with OpenLDAP
doing the schema checking, it noticed that 'comment' was not a valid
attribute.

The rename tries to keep this consistant in both the LDB mappings and
IDL, so we don't make the same mistake in future.

This has no real schema impact, as this value isn't actually used for
anything, as 'comment' was not used in the provision.

Andrew Bartlett
(This used to be commit 65dc0d536590d055a5ee775606ac90ee5fcaee9a)
2008-07-21 13:42:07 +10:00
Stefan Metzmacher
033683b00e drsuapi.idl: fix unknowns in drsuapi_DsGetNCChangesCtr*
metze
(This used to be commit 9e99e59ca7e56bf74417ec85339e09e86f50d17e)
2008-07-16 12:16:55 +02:00
Stefan Metzmacher
e81feb77a2 drsuapi.idl: fix unknowns in drsuapi_DsReplicaObject*
metze
(This used to be commit de2aed042d09ae7a31ddc4cd920c8fcf193ba06a)
2008-07-16 12:15:37 +02:00
Stefan Metzmacher
9827cf832f drsuapi.idl: fix unknowns in drsuapi_DsReplicaCursor[2]
metze
(This used to be commit a681e55067a83f06e465b81afb2b0b870b674dca)
2008-07-16 12:12:30 +02:00