1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-25 00:23:52 +03:00
Commit Graph

116 Commits

Author SHA1 Message Date
Günther Deschner
cf953d0481 r23239: Fill in drsuapi_QuerySitesByCost.
Guenther
2007-10-10 14:53:06 -05:00
Stefan Metzmacher
521355b57b r21817: give fields a meaning
metze
2007-10-10 14:49:31 -05:00
Stefan Metzmacher
c543ee5745 r21773: fix typo orginating -> originating
and use the struct member names in all cases

metze
2007-10-10 14:49:24 -05:00
Stefan Metzmacher
b8af925da9 r21595: add a constant and some comments
metze
2007-10-10 14:49:03 -05:00
Jelmer Vernooij
61cb52b65b r21415: Add tests for spoolss and drsuapi. Still need to add validators. 2007-10-10 14:48:29 -05:00
Stefan Metzmacher
cf546b7c18 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
2007-10-10 14:40:33 -05:00
Stefan Metzmacher
dd2832b37a r20702: fix spelling
metze
2007-10-10 14:40:27 -05:00
Jelmer Vernooij
1afcf85067 r20676: Add ref pointer to fix warning. 2007-10-10 14:40:19 -05:00
Jelmer Vernooij
1df96af310 r20566: Prepending with r-> is no longer necessary. 2007-10-10 14:36:59 -05:00
Stefan Metzmacher
d883815c8d 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
2007-10-10 14:36:04 -05:00
Stefan Metzmacher
89f5389e8d r20513: this values are the same as in drsuapi_DsReplicaObjectIdentifier3Binary
the extra binary blob

metze
2007-10-10 14:36:04 -05:00
Stefan Metzmacher
58066e2252 r20510: fix spelling
metze
2007-10-10 14:36:03 -05:00
Stefan Metzmacher
f3c83dfb01 r20506: - fix parsing of LinkedAttribute values
- I also found the meaning of the time field
- and the uint32 field

metze
2007-10-10 14:36:02 -05:00
Stefan Metzmacher
d47c81923d 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
2007-10-10 14:36:01 -05:00
Stefan Metzmacher
4c2addf2dd r20484: get rid of the special case for DN strings
metze
2007-10-10 14:35:59 -05:00
Stefan Metzmacher
ececda44c7 r20477: get rid of the spcial case for unicode strings
metze
2007-10-10 14:35:57 -05:00
Stefan Metzmacher
13ccd405b5 r20476: get rid of extra case for uint32 values
metze
2007-10-10 14:35:57 -05:00
Stefan Metzmacher
b7ab1c0039 r20475: remove special case for GUID values
metze
2007-10-10 14:35:56 -05:00
Stefan Metzmacher
8d80629c5d r20473: remove special case for boolean values
metze
2007-10-10 14:35:55 -05:00
Stefan Metzmacher
9b31e8c1f7 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
2007-10-10 14:35:49 -05:00
Stefan Metzmacher
a801041f1f r20419: remove unused ojectSid and NTTIME_1sec cases
metze
2007-10-10 14:30:33 -05:00
Stefan Metzmacher
c72f5a16b4 r20418: start to get step by step rid of the union for the attribute
specific attribute values.

start with ntSecurityDescriptor

metze
2007-10-10 14:30:33 -05:00
Stefan Metzmacher
f12776b9a9 r20417: - fix pushing of drsuapi_DsAttributeValueDataBlob
- make drsuapi_DsReplicaAttribute public so that the ndr_print_*
  function can be used from the outside

metze
2007-10-10 14:30:32 -05:00
Andrew Bartlett
a6bbfebf52 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
2007-10-10 14:30:22 -05:00
Stefan Metzmacher
1adb0fb291 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
2007-10-10 14:30:16 -05:00
Stefan Metzmacher
c7e639763d 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
2007-10-10 14:30:16 -05:00
Andrew Bartlett
79941adbff 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
2007-10-10 14:30:15 -05:00
Andrew Bartlett
2eb9e6445c 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
2007-10-10 14:29:38 -05:00
Stefan Metzmacher
bc13b36901 r20278: make it possible to use oid strings in the drsuapi instead of uint8_t arrays
with ber encoded oid's

metze
2007-10-10 14:29:30 -05:00
Stefan Metzmacher
aa720a1531 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
2007-10-10 14:29:27 -05:00
Stefan Metzmacher
3d51ce92c2 r20230: I found more mappings of OID string to uint32 id
metze
2007-10-10 14:29:25 -05:00
Stefan Metzmacher
38ae6ce7b9 r20219: add enough knowledge to display the content of attributeSchema objects
metze
2007-10-10 14:29:23 -05:00
Stefan Metzmacher
4daa45f98a r20111: this is the total object count of the current replication cycle
metze
2007-10-10 14:29:08 -05:00
Stefan Metzmacher
527bd9a0a3 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
2007-10-10 14:29:01 -05:00
Stefan Metzmacher
3f1e88759c r20076: give the guids meanings
metze
2007-10-10 14:29:00 -05:00
Stefan Metzmacher
a52d5f6ed9 r20074: this values seem to be typos in
http://msdn2.microsoft.com/en-us/library/ms676264.aspx

metze
2007-10-10 14:29:00 -05:00
Stefan Metzmacher
3322dbd901 r20064: - fix pushing of DeReplicaObjectIdentifierX, this lets the DsAddEntry()
request work correctly
- the error structures all have the same type

metze
2007-10-10 14:28:57 -05:00
Stefan Metzmacher
3e6264d872 r19967: this unknowns are max_object_count and max_ndr_size
metze
2007-10-10 14:28:41 -05:00
Stefan Metzmacher
f79d343593 r19951: this statement is true...
metze
2007-10-10 14:28:39 -05:00
Stefan Metzmacher
df133cd22a r19847: add idl for DsRemoveDSServer(), this is used when a server unbecomes a DC
metze
2007-10-10 14:28:25 -05:00
Jelmer Vernooij
347ae96282 r19588: Use include and import statements rather than depends() and helper(). 2007-10-10 14:24:58 -05:00
Jelmer Vernooij
d1364ef0cd r18639: Get rid of the keepref support 2007-10-10 14:18:59 -05:00
Stefan Metzmacher
3e2d923e17 r17441: add some more attribute with credentials in them
metze
2007-10-10 14:15:25 -05:00
Stefan Metzmacher
246c35e008 r17438: extend the comment
metze
2007-10-10 14:15:25 -05:00
Günther Deschner
ca5e133e8c r16796: Fill in dsr_GetMemberships() / dsr_GetMemberships2().
This intersting call is apparently used to construct the user token,
collect memberships from other DSAs and to retrieve (nested) memberships
of a given group.

Torture test to follow (once I cleaned it up).

Guenther
2007-10-10 14:09:46 -05:00
Jelmer Vernooij
bdc6dd3750 r15776: Don't generate ref pointers in Samba4-generated code. There is no point
in having pointers for outgoing data when you can already modify the top-level
element.

This can be overridden (temporarily) by specifying the new "keepref"
attribute. Once we've removed keepref from all IDL files, I'll remove this
attribute as well.
2007-10-10 14:08:18 -05:00
Jelmer Vernooij
54cc9f8ccf r15512: Move uuid functions out of ndr_misc.c 2007-10-10 14:05:44 -05:00
Jelmer Vernooij
c19c2b51d3 r15328: Move some functions around, remove dependencies.
Remove some autogenerated headers (which had prototypes now autogenerated by pidl)
Remove ndr_security.h from a few places - it's no longer necessary
2007-10-10 14:05:17 -05:00
Jelmer Vernooij
7213b7498e r14361: Support 'helper' attribute in pidl and use it.
Remove some headers from include/includes.h (they're now only included
in the file they are used)
2007-10-10 13:57:14 -05:00
Jelmer Vernooij
6967b98849 r12465: Merge Parse::Pidl::Samba4::NDR::Header into Parse::Pidl::Samba4::NDR::Parser.
Small optimization to avoid including NDR headers multiple times
2007-10-10 13:47:42 -05:00