1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
Commit Graph

49 Commits

Author SHA1 Message Date
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
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
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
7cb96a785f r20293: implement store chunk hook for libnet_BecomeDC()
metze
(This used to be commit aba497f2fd)
2007-10-10 14:29:33 -05:00
Stefan Metzmacher
ce38e5368e r20292: set ntds_dn_str if DsAddEntry() was successful
metze
(This used to be commit 5cb5986067)
2007-10-10 14:29:33 -05:00
Stefan Metzmacher
fdf95ba005 r20291: implement prepare_db hook of libnet_BecomeDC()
metze
(This used to be commit 07f1075d46)
2007-10-10 14:29:32 -05:00
Stefan Metzmacher
64ba98bbd4 r20285: pass more info to check_options hook and move behavior versions etc.
to the domain and forest structures

metze
(This used to be commit 15157bf5b9)
2007-10-10 14:29:32 -05:00
Stefan Metzmacher
4973fbe773 r20283: pass in callbacks to libnet_BecomeDC() from the caller
and implement the check_options call

metze
(This used to be commit fc9669e2a0)
2007-10-10 14:29:31 -05:00
Stefan Metzmacher
ceaf036f42 r20282: prepare callback infrastructure to check if the forest/domain
behaviors and the schema version is what the caller expects.
also a callback prepares the new database and commits chunks
to the partitions

metze
(This used to be commit 9b5116be2e)
2007-10-10 14:29:31 -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
6e8a88fe2e r20204: use symbolic constant
metze
(This used to be commit a816c2973a)
2007-10-10 14:29:22 -05:00
Stefan Metzmacher
f1317dadc0 r20142: only the DDNS updates are missing for the full libnet_BecomeDC(),
but that's not needed untill we can support the DsGetNCChanges()
in the server...

metze
(This used to be commit 9c3267e17f)
2007-10-10 14:29:14 -05:00
Stefan Metzmacher
d23f3119a9 r20109: let libnet_BecomeDC() work against w2k servers
metze
(This used to be commit d295239861)
2007-10-10 14:29:08 -05:00
Stefan Metzmacher
d4ac51982c r20105: remove useless comments
metze
(This used to be commit d70140ed07)
2007-10-10 14:29:07 -05:00
Stefan Metzmacher
04b50f0f0d r20095: make a complete copy of the binding string
metze
(This used to be commit b0ee130892)
2007-10-10 14:29:05 -05:00
Stefan Metzmacher
8b137ba30a r20088: implement DsReplicaUpdateRefs() calls for all partitions
metze
(This used to be commit 557bb80089)
2007-10-10 14:29:03 -05:00
Stefan Metzmacher
7312cda3b3 r20086: pull domain partition
metze
(This used to be commit 8b03b3a196)
2007-10-10 14:29:03 -05:00
Stefan Metzmacher
9e426649c5 r20085: add _part to structure elements
metze
(This used to be commit de2f9869b5)
2007-10-10 14:29:03 -05:00
Stefan Metzmacher
d26ac7b937 r20084: pull the config partition
metze
(This used to be commit d770effb89)
2007-10-10 14:29:02 -05:00
Stefan Metzmacher
3155ded048 r20083: move function together which belong to each other
metze
(This used to be commit 0c4a7d713d)
2007-10-10 14:29:02 -05:00
Stefan Metzmacher
662ea9f1c7 r20081: pull the whole schema partition
metze
(This used to be commit 2f1ec24d77)
2007-10-10 14:29:02 -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
3fd9c96342 r20075: start pulling the schema content.
Note: we're not doing the "use the policy handle on a different connection"
      trick, which w2k3 use

metze
(This used to be commit 1e4abd6a91)
2007-10-10 14:29:00 -05:00
Stefan Metzmacher
6011531ac6 r20073: update the computer_dn_str after ldb_rename()
metze
(This used to be commit c40bc7d287)
2007-10-10 14:28:59 -05:00
Stefan Metzmacher
048279b2be r20071: move common code into a function
metze
(This used to be commit 61c312a943)
2007-10-10 14:28:59 -05:00
Stefan Metzmacher
1e17f6ed38 r20070: implement the 2nd and 3rd drsuapi connection
metze
(This used to be commit 6b84a5b595)
2007-10-10 14:28:59 -05:00
Stefan Metzmacher
99390be80c r20068: handle DsAddEntry() errors
metze
(This used to be commit 45466871b4)
2007-10-10 14:28:58 -05:00
Stefan Metzmacher
3aedc80896 r20067: use a global zero_sid
metze
(This used to be commit 5ebf76d23e)
2007-10-10 14:28:58 -05:00
Stefan Metzmacher
81a3bd7bc8 r20066: use the same sid "Domain Admins" for the security_descriptor
metze
(This used to be commit 58ae1bedf1)
2007-10-10 14:28:58 -05:00
Stefan Metzmacher
0df2c30821 r20062: send values in DsAddEntry(), but it didn't work yet (ACCESS_DENIED...)
metze
(This used to be commit e8c77b5cba)
2007-10-10 14:28:57 -05:00
Stefan Metzmacher
ac98f84de7 r20056: send a DsBindInfo28 struct in the DsBind() and take care of the DsBindInfo
the remote end sends back

metze
(This used to be commit ff27129792)
2007-10-10 14:28:56 -05:00
Stefan Metzmacher
383cbaa6b0 r20055: implement dummy DsAddEntry call (without attributes yet)
metze
(This used to be commit 8441500a32)
2007-10-10 14:28:56 -05:00
Stefan Metzmacher
496b65d593 r20053: implement the DsBind on the 1st drsuapi connection
metze
(This used to be commit f66f9c2150)
2007-10-10 14:28:55 -05:00
Stefan Metzmacher
85497ed8cb r20052: implement the first drsuapi connection
metze
(This used to be commit 96e5d89655)
2007-10-10 14:28:55 -05:00
Stefan Metzmacher
840ef0d5cf r20051: handle the case where the server object exist, but doesn't have a serverReference
metze
(This used to be commit e5729a29fd)
2007-10-10 14:28:55 -05:00
Stefan Metzmacher
bb725bbe01 r20045: implement the drsuapi_DsRemoveDSServer() call
metze
(This used to be commit deb85414c4)
2007-10-10 14:28:54 -05:00
Stefan Metzmacher
20f55aaad8 r20043: when becoming a dc:
- implement set userAccountControl = UF_SERVER_TRUST_ACCOUNT | UF_TRUSTED_FOR_DELEGATION
- implement moving to CN=Domain Controllers

metze
(This used to be commit c4037880a0)
2007-10-10 14:28:53 -05:00
Stefan Metzmacher
1027451d52 r20031: - implement earching for an existing server object
- implement adding a server object

metze
(This used to be commit 6d5a1f11e7)
2007-10-10 14:28:50 -05:00
Stefan Metzmacher
d0be12ad50 r20030: - implement the computer object search
- fix a source vs. dest dsa bug

metze
(This used to be commit ef9d9799a4)
2007-10-10 14:28:50 -05:00
Stefan Metzmacher
408db037ac r20029: - implement source_dsa site object search
metze
(This used to be commit c6166a5641)
2007-10-10 14:28:49 -05:00
Stefan Metzmacher
bb6f3ece26 r20026: - store the infrastructure server_dn_str
- implement the rid manager info searches

metze
(This used to be commit be3f91afe2)
2007-10-10 14:28:49 -05:00
Stefan Metzmacher
6bf98f3adb r20025: - implement the windows2003update revision search
- finish the infrastructure fsmo detail searches

metze
(This used to be commit f1a2bd6f37)
2007-10-10 14:28:48 -05:00
Stefan Metzmacher
effc51d7db r20024: lookup the infrastructure fSMORoleOwner on the 1st LDAP connection
metze
(This used to be commit 99bdd5523b)
2007-10-10 14:28:48 -05:00
Stefan Metzmacher
46d2824907 r20022: - implement the ldap connect code
- implement rootdse search on the 1st LDAP connection
- implement msDs-Behavior-Version and objectVersion searches on the 1st LDAP connection

metze
(This used to be commit b9b705b7dd)
2007-10-10 14:28:48 -05:00
Stefan Metzmacher
c83efbe900 r20021: implement a CLDAP netlogon request to get some infos
needed for becoming a dc.

metze
(This used to be commit 6a007aaa51)
2007-10-10 14:28:47 -05:00
Stefan Metzmacher
6d7630a516 r20011: define libnet_BecomeDC_state struct and add some dummy functions
metze
(This used to be commit 2a50a885ed)
2007-10-10 14:28:47 -05:00
Stefan Metzmacher
1d7f8edb7a r20009: use a composite context
metze
(This used to be commit ed3826bc47)
2007-10-10 14:28:46 -05:00
Stefan Metzmacher
1e02e77fe1 r20008: add stubs for a libnet_BecomeDC() call
metze
(This used to be commit 103ac9a96b)
2007-10-10 14:28:46 -05:00