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

947 Commits

Author SHA1 Message Date
Jelmer Vernooij
25a0c9146e r21347: All current tests in the testsuite mainly test the RPC code in general. Since
we're running the testsuite mainly against ourselves, we only check that the
push/pull functions work in our own environment, not whether they generate/parse
the same data that other systems do.

This commit adds the infrastructure for a testsuite for just the marshalling
code. The idea is that you provide a data blob, a function name and a function
to check the resulting struct for correctness.
(This used to be commit 9bd2421e44)
2007-10-10 14:48:17 -05:00
Jelmer Vernooij
be852780b4 r21343: Add access masks, pointed out by Ronnie Sahlberg.
(This used to be commit e8cdfd0a61)
2007-10-10 14:48:16 -05:00
Stefan Metzmacher
57b22d9df2 r21342: add parsing code for the trustAuthIncoming/trustAuthOutgoing attributes
not everything has a meaning yet, but it's a start and we know how to get
to the password in cleartext

metze
(This used to be commit 65641181f7)
2007-10-10 14:48:16 -05:00
Jelmer Vernooij
600c167e3b r21341: Improve QueryKeyInfo idl, pointed out by Ronnie Sahlberg.
(This used to be commit 736330d23b)
2007-10-10 14:48:16 -05:00
Stefan Metzmacher
86c5fe1990 r21331: add comment about how the cleartext password is stored
metze
(This used to be commit 2b7d748751)
2007-10-10 14:48:14 -05:00
Stefan Metzmacher
9c21efd9d6 r21329: complete support for parsing the supplementalCredentials value
the package specific data is present as hex string,
we'll need to add parsers for each package later.

metze
(This used to be commit 6a725ae261)
2007-10-10 14:48:13 -05:00
Stefan Metzmacher
4dbf4e1917 r21323: add a start to parse the supplementalCredentials value,
it doesn't work yet but it's a start

metze
(This used to be commit 0417e12c84)
2007-10-10 14:48:10 -05:00
Stefan Metzmacher
71115bb3e6 r21301: - the history contains lm and nt history
- autoset the size values

metze
(This used to be commit 5e51845137)
2007-10-10 14:48:05 -05:00
Volker Lendecke
67f494d72a r20972: "private" -> "private_data"
(This used to be commit 8cbcd3d1cb)
2007-10-10 14:44:05 -05:00
Jelmer Vernooij
615895332a r20830: merge mgmt work
(This used to be commit 3cc299dbbe)
2007-10-10 14:43:37 -05:00
Stefan Metzmacher
0bb7e6847e r20797: make it more clear that this is a 32bit bitmap
metze
(This used to be commit e85a4bfbf3)
2007-10-10 14:43:30 -05:00
Jelmer Vernooij
cd15a223cc r20784: Add ref pointer
(This used to be commit 2ba225ee12)
2007-10-10 14:40:54 -05:00
Stefan Metzmacher
0410300810 r20732: add idl for storing the prefixMap attribute
as w2k3 doesn't return it when you ask for we don't know
the exact format, but we assume that it starts with a uint32 version

and as this attribute is not replicated we can chosse our own version...

metze
(This used to be commit cf546b7c18)
2007-10-10 14:40:33 -05:00
Stefan Metzmacher
ed62bda650 r20702: fix spelling
metze
(This used to be commit dd2832b37a)
2007-10-10 14:40:27 -05:00
Stefan Metzmacher
50ed6e7124 r20686: this is a generic uptodateness vector
metze
(This used to be commit 352d88c8a8)
2007-10-10 14:40:22 -05:00
Jelmer Vernooij
e8d2437cd5 r20676: Add ref pointer to fix warning.
(This used to be commit 1afcf85067)
2007-10-10 14:40:19 -05:00
Andrew Tridgell
1cd4339b9a r20646: first preparations for cluster enablement. This changes "
uint32_t server_id
to
  struct server_id server_id;

which allows a server ID to have an node number. The node number will
be zero in non-clustered case. This is the most basic hook needed for
clustering, and ctdb.
(This used to be commit 2365abaa99)
2007-10-10 14:37:23 -05:00
Andrew Bartlett
08976cb3d2 r20639: Commit part 1 of 2.
This patch updates our build system and glue to support a new snapshot
of lorikeet-heimdal.

We now procude a [SUBSYTEM] in the ans1_deps.pl script, and can depend
on that in the heimdal_build/config.mk.  This is much easier than
listing every generated .o file individually.

This required some small changes to the build system, due to the way
the parent directory was handled for the output of scripts.  I've also
cleaned up et_deps.pl to handle cleaning up it's generated files on
clean.

The PAC glue in Heimdal has changed significantly: we no longer have a
custom hack in the KDC, instead we have the windc plugin interface.
As such, pac-glue.c is much smaller.  In the future, when I'm
confident of the new code, we will also be able to 'downsize'
auth/kerberos/kerberos_pac.c.

(I'll include the updated copy of heimdal in the next chekin, to make
it clearer what's changed in Samba4 itself).

Andrew Bartlett
(This used to be commit 75fddbbc08)
2007-10-10 14:37:20 -05:00
Jelmer Vernooij
38ba8bf8ba r20566: Prepending with r-> is no longer necessary.
(This used to be commit 1df96af310)
2007-10-10 14:36:59 -05:00
Stefan Metzmacher
57f5bf78fa r20514: implement idl for DsGetNT4ChangeLog() which transferres the meta data
for NT4 DC's in mixed mode domains.

This call is triggered by tranferring the PDC FSMO Role to another DC

the real meta data is encoded in the user buffer which is just a DATA_BLOB in idl

metze
(This used to be commit d883815c8d)
2007-10-10 14:36:04 -05:00
Stefan Metzmacher
8d139b0e93 r20513: this values are the same as in drsuapi_DsReplicaObjectIdentifier3Binary
the extra binary blob

metze
(This used to be commit 89f5389e8d)
2007-10-10 14:36:04 -05:00
Stefan Metzmacher
bc32b30011 r20510: fix spelling
metze
(This used to be commit 58066e2252)
2007-10-10 14:36:03 -05:00
Stefan Metzmacher
f06f5e3dee r20506: - fix parsing of LinkedAttribute values
- I also found the meaning of the time field
- and the uint32 field

metze
(This used to be commit f3c83dfb01)
2007-10-10 14:36:02 -05:00
Stefan Metzmacher
536ca21c55 r20504: we handle the attribute values always as DATA_BLOB's and
don't need the union with the attribute id as switch anymore

metze
(This used to be commit d47c81923d)
2007-10-10 14:36:01 -05:00
Stefan Metzmacher
16d6d8d4c5 r20484: get rid of the special case for DN strings
metze
(This used to be commit 4c2addf2dd)
2007-10-10 14:35:59 -05:00
Stefan Metzmacher
b885bc4a20 r20477: get rid of the spcial case for unicode strings
metze
(This used to be commit ececda44c7)
2007-10-10 14:35:57 -05:00
Stefan Metzmacher
d70852659b r20476: get rid of extra case for uint32 values
metze
(This used to be commit 13ccd405b5)
2007-10-10 14:35:57 -05:00
Stefan Metzmacher
2754a73d22 r20475: remove special case for GUID values
metze
(This used to be commit b7ab1c0039)
2007-10-10 14:35:56 -05:00
Stefan Metzmacher
391d97168f r20473: remove special case for boolean values
metze
(This used to be commit 8d80629c5d)
2007-10-10 14:35:55 -05:00
Stefan Metzmacher
7ffdd1246d r20453: add conversation for the DN_BINARY attribute syntax
the ldb_to_drsuapi version need to be completed, but it's
currently not used...

metze
(This used to be commit 9b31e8c1f7)
2007-10-10 14:35:49 -05:00
Stefan Metzmacher
1b6de440b4 r20419: remove unused ojectSid and NTTIME_1sec cases
metze
(This used to be commit a801041f1f)
2007-10-10 14:30:33 -05:00
Stefan Metzmacher
2206a7d592 r20418: start to get step by step rid of the union for the attribute
specific attribute values.

start with ntSecurityDescriptor

metze
(This used to be commit c72f5a16b4)
2007-10-10 14:30:33 -05:00
Stefan Metzmacher
bb75710d40 r20417: - fix pushing of drsuapi_DsAttributeValueDataBlob
- make drsuapi_DsReplicaAttribute public so that the ndr_print_*
  function can be used from the outside

metze
(This used to be commit f12776b9a9)
2007-10-10 14:30:32 -05:00
Stefan Metzmacher
deafbaed86 r20400: this let ndrdump display the content of a frsrpc_FrsSendCommPkt()
call between 2 w2k3 boxes nicely, but I'm not sure if the amount
of 9 chunks is fixed...

metze
(This used to be commit adceac8851)
2007-10-10 14:30:23 -05:00
Andrew Bartlett
105d18eb30 r20395: Decode more unknowns in the IDL. These are language and codepage IDs!
Try to pass more of the CrackNames test.  Make the test quieter.

Andrew Bartlett
(This used to be commit a6bbfebf52)
2007-10-10 14:30:22 -05:00
Stefan Metzmacher
a1a6a0d52a r20392: initial idl for frsrpc_FrsSendCommPkt()
there's a blob containing the real data,
but that needs handwritten code

metze
(This used to be commit dcb0ea99ba)
2007-10-10 14:30:21 -05:00
Stefan Metzmacher
ed7c63a6fc r20391: add idl for the content of the partialAttributeSet attribute
metze
(This used to be commit f7f9f174d7)
2007-10-10 14:30:21 -05:00
Stefan Metzmacher
b5aa81635d r20360: level -4 of DsReplicaGetInfo(), which gives back all open bind handles
returned by DsBind() on all drsuapi connection also contains the client
ip address. Also the u1 value of the clients DsBindInfoX structure is returned
in u5 here...

metze
(This used to be commit 1adb0fb291)
2007-10-10 14:30:16 -05:00
Stefan Metzmacher
c70a3f6706 r20359: level -1 of DsGetDomainControllerInfo gives back a list
of all active connections to the Directory Service Agent (DSA)
(This can be LDAP or DRSUAPI connections)

abartlet: you had just luck by using flag(BIG_ENDIAN) as BIG_ENDIAN is
          defined in <endian.h>, it should be flag(NDR_BIG_ENDIAN)...

metze
(This used to be commit c7e639763d)
2007-10-10 14:30:16 -05:00
Andrew Bartlett
ea4c64388b r20353: Restructure the DRSUAPI DsGetDomainControllerInfo test, because as
usual things are more complex than they appear.

Also remove the incorrect server-side implementation, which blindly
assumed some sense of consistancy across the API switch levels.

Andrew Bartlett
(This used to be commit 79941adbff)
2007-10-10 14:30:15 -05:00
Andrew Bartlett
400a56d6dd r20315: Implement the server side of DsGetDomainControllerInfo. This is a
supprisingly complex call...

It turns out that the in/out parameter 'level' is not in/out, but set
seperatly by the server-side code from r->req.req1.level.

This commit also breaks out some common code from samldb into samdb.

Andrew Bartlett
(This used to be commit 2eb9e6445c)
2007-10-10 14:29:38 -05:00
Stefan Metzmacher
aaccc47c0e r20278: make it possible to use oid strings in the drsuapi instead of uint8_t arrays
with ber encoded oid's

metze
(This used to be commit bc13b36901)
2007-10-10 14:29:30 -05:00
Stefan Metzmacher
88ef467282 r20251: I found out that the oid-prefix to uint32-id-prefix mapping is transferred
in replication replies, but I don't know the exact encoding.

for example the oids are transferred as:

2.5.4			=> uint8_t v[] = { 0x55, 0x04 };
2.5.5			=> uint8_t v[] = { 0x55, 0x05 };
2.5.6			=> uint8_t v[] = { 0x55, 0x06 };
2.5.18			=> uint8_t v[] = { 0x55, 0x12 };
2.5.20			=> uint8_t v[] = { 0x55, 0x14 };
2.5.21			=> uint8_t v[] = { 0x55, 0x15 };
1.2.840.113556.1.2	=> uint8_t v[] = { 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x14, 0x01, 0x02 };
1.2.840.113556.1.3	=> uint8_t v[] = { 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x14, 0x01, 0x03 };
1.2.840.113556.1.4	=> uint8_t v[] = { 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x14, 0x01, 0x04 };
1.2.840.113556.1.5	=> uint8_t v[] = { 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x14, 0x01, 0x05 };
1.2.840.113556.1.5.7000	=> uint8_t v[] = { 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x14, 0x01, 0x05, 0xb6, 0x58 };
1.2.840.113549.1.9	=> uint8_t v[] = { 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x09 };
2.16.840.1.113730.3	=> uint8_t v[] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xf8, 0x42, 0x03 };
2.16.840.1.113730.3.1	=> uint8_t v[] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xf8, 0x42, 0x03, 0x01 };
2.16.840.1.113730.3.2	=> uint8_t v[] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xf8, 0x42, 0x03, 0x02 };
0.9.2342.19200300.100.1	=> uint8_t v[] = { 0x09, 0x92, 0x26, 0x89, 0x93, 0xf2, 0x2c, 0x64, 0x01 };
0.9.2342.19200300.100.4	=> uint8_t v[] = { 0x09, 0x92, 0x26, 0x89, 0x93, 0xf2, 0x2c, 0x64, 0x04 };
1.3.6.1.4.1.250.1	=> uint8_t v[] = { 0x2b, 0x06, 0x01, 0x04, 0x01, 0x81, 0x7a, 0x01 };
1.3.6.1.4.1.1466.101.119=> uint8_t v[] = { 0x2b, 0x06, 0x01, 0x04, 0x01, 0x8b, 0x3a, 0x65, 0x77 };

if someone knows how the encoding works, please tell me:-)
I assume some ASN.1 encoding...

metze
(This used to be commit aa720a1531)
2007-10-10 14:29:27 -05:00
Stefan Metzmacher
2e8746cc14 r20230: I found more mappings of OID string to uint32 id
metze
(This used to be commit 3d51ce92c2)
2007-10-10 14:29:25 -05:00
Stefan Metzmacher
5249de8519 r20219: add enough knowledge to display the content of attributeSchema objects
metze
(This used to be commit 38ae6ce7b9)
2007-10-10 14:29:23 -05:00
Andrew Bartlett
d471e52d23 r20149: Remove the smb.conf distinction between PDC and BDC. Now the correct
way to setup a Samba4 DC is to set 'server role = domain controller'.

We use the fSMORoleOwner attribute in the base DN to determine the PDC.

This patch is quite large, as I have corrected a number of places that
assumed taht we are always the PDC, or that used the smb.conf
lp_server_role() to determine that.

Also included is a warning fix in the SAMR code, where the IDL has
seperated a couple of types for group display enumeration.

We also now use the ldb database to determine if we should run the
global catalog service.

In the near future, I will complete the DRSUAPI
DsGetDomainControllerInfo server-side on the same basis.

Andrew Bartlett
(This used to be commit 67d8365e83)
2007-10-10 14:29:15 -05:00
Stefan Metzmacher
3cfa1db71d r20111: this is the total object count of the current replication cycle
metze
(This used to be commit 4daa45f98a)
2007-10-10 14:29:08 -05:00
Stefan Metzmacher
cc0edee3f6 r20096: now I'm 100% sure:-)
metze
(This used to be commit 3daa68e1c4)
2007-10-10 14:29:05 -05:00
Stefan Metzmacher
d3c9737e5b r20079: the 2nd guid is the source_dsa invocation_id not the objectGUID,
this wasn't noticed because on the 1st dc in the forest both have the
same value

metze
(This used to be commit 527bd9a0a3)
2007-10-10 14:29:01 -05:00
Stefan Metzmacher
2326af7dbd r20076: give the guids meanings
metze
(This used to be commit 3f1e88759c)
2007-10-10 14:29:00 -05:00