1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

431 Commits

Author SHA1 Message Date
Stefan Metzmacher
37f2d53528 r21827: move comments to the place where the functionality is implemented
metze
(This used to be commit 5d49d8b9e149d320cb08c5c2a4fc4cb8bfd74129)
2007-10-10 14:49:33 -05:00
Stefan Metzmacher
63fd883e54 r21826: reorder functions
metze
(This used to be commit 3d0a810ccd5d7490d46f91ca6aef6052ca0c56c3)
2007-10-10 14:49:32 -05:00
Stefan Metzmacher
31c674bffc r21821: move comment about the becoming a dc to the code which implements it
and extent the comments a bit

metze
(This used to be commit 16c958600ea6d4481f32081262bf8bae4b56a247)
2007-10-10 14:49:32 -05:00
Stefan Metzmacher
952a90814f r21820: move function, so that all are in top-down order as they get called
metze
(This used to be commit 38bb7f5445cf1d1a52a9edb21475ed2d5ed20ce4)
2007-10-10 14:49:32 -05:00
Jelmer Vernooij
fd2d095048 r21541: Export mgmt, samr and atsvc for use in samba-gtk.
(This used to be commit 7f451cbb8da26cfe27861c402e06b3f34f7ac647)
2007-10-10 14:48:55 -05:00
Stefan Metzmacher
815d3f2e68 r21538: this looks better...
metze
(This used to be commit 8ddfbbcb93f7c94ab040984d460d6122f0ff6520)
2007-10-10 14:48:54 -05:00
Stefan Metzmacher
d92bc6db36 r21516: - use the same assoc_group_id, for all 3 drsuapi connection
- use the PFC_CONC_MPX flag for the 3rd connection
- to DsGetNCChanges requests on the 3rd connection with the bind handle
  from the 2nd connection to match w2k3

metze
(This used to be commit 5071af332c2c079fd94c577e58ee6e8ccf157ffa)
2007-10-10 14:48:48 -05:00
Stefan Metzmacher
3b14713f6d r21362: rename:
"ntPwdHash" => "unicodePwd"
"lmPwdHash" => "dBCSPwd"
"sambaLMPwdHistory" => "lmPwdHistory"
"sambaNTPwdHistory" => "ntPwdHistory"

Note: you need to reprovision after this change!

metze
(This used to be commit dc4242c09c0402cbfdba912f82892df3153456ad)
2007-10-10 14:48:20 -05:00
Stefan Metzmacher
eee140d7da r21300: let the caller decide if it wants rid decrypted hashes or not
metze
(This used to be commit 8711d01ffd080c43512b88b995daf2d6b7c06ba1)
2007-10-10 14:48:05 -05:00
Stefan Metzmacher
5a61821e7e r21295: pass down the gensec session key to the store_chunk hook
metze
(This used to be commit 91de9591732aab822f2a44c4a6698edce48f723b)
2007-10-10 14:48:03 -05:00
Stefan Metzmacher
c672e06cd5 r21293: store the gensec session key for each drsuapi connection
metze
(This used to be commit d399739820650bcbe486956374af84c436d3ec16)
2007-10-10 14:48:02 -05:00
Stefan Metzmacher
78eb31a8f0 r21292: add become_dc:print = yes option to dump out the drsuapi traffic
metze
(This used to be commit 5065a9b5ffe4dc9a77f4e5955dc0d8d86feb8c5e)
2007-10-10 14:48:02 -05:00
Andrew Bartlett
728ff99fe3 r21255: Add a debugging option to avoid rid decryption in the samsync output.
Andrew Bartlett
(This used to be commit 9e15a51579157405b2013b9b948d279fefd0eda6)
2007-10-10 14:44:55 -05:00
Andrew Bartlett
e473050052 r21175: Fix the kerberos keytab update code to handle deletes.
Fix the join code to know that the ldb layer handles the keytab update.

Andrew Bartlett
(This used to be commit d3fbc089f4161ae71b21077d50130fdabd8b2d77)
2007-10-10 14:44:42 -05:00
Volker Lendecke
c2c8650825 r21141: Attempt to fix the build
(This used to be commit 3f41a4b014a47b3c751066f5d1bef7f76f4be831)
2007-10-10 14:44:33 -05:00
Andrew Bartlett
d2bfa66119 r20964: Show the domain name we figured out, rather than a null pointer (in
some error cases)

Andrew Bartlett
(This used to be commit 4195839d1a6102d7c6ae17c1b1db0418c99c9241)
2007-10-10 14:44:04 -05:00
Stefan Metzmacher
e0efa2c97a r20714: we can use talloc_asprintf_append() again, because strupper_talloc()
creates string with the correct memory size without padding zero bytes
at the end

metze
(This used to be commit df8e97014bf67e59ab9a88ce225819d6057dfb08)
2007-10-10 14:40:30 -05:00
Stefan Metzmacher
faf57b1dc5 r20708: fix crash bug! we can't use stack memory for async requests...
jelmer: please take more care when you fix pidl warnings:-)

metze
(This used to be commit 05da114ea8db637febe88ac1ce5c92640de7754a)
2007-10-10 14:40:29 -05:00
Jelmer Vernooij
e8d2437cd5 r20676: Add ref pointer to fix warning.
(This used to be commit 1afcf850679b6752935455a8f9198679649922b8)
2007-10-10 14:40:19 -05:00
Stefan Metzmacher
927e163670 r20570: use talloc_asprintf() instead of talloc_asprintf_append()
because talloc_asprintf_append() doesn't work like talloc_append_string()
which uses strlen() on the old string instead of (tc->size - 1)

This matter in this case because strlower_talloc() over allocates

tridge: how should we fix this in lib/talloc/?

metze
(This used to be commit 1748af20b1f7b325048619a1e66a1c8b69474c5f)
2007-10-10 14:37:03 -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 d47c81923d0731edd314215c6f0b2eb3d1ee252d)
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 4c2addf2dd5b74fa0026249ce373ff4becaaef40)
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 13ccd405b5dbb595e5ab67879260462e5a767a8b)
2007-10-10 14:35:57 -05:00
Stefan Metzmacher
2754a73d22 r20475: remove special case for GUID values
metze
(This used to be commit b7ab1c0039cd8000861cd89ca072d9d2b0bbf9de)
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 c72f5a16b4de2b8cc4f4a9c21b0dc3915a1d6c9f)
2007-10-10 14:30:33 -05:00
Andrew Bartlett
7d7d01cf4e r20397: Another user of the DsCrackNames call needs a rename following IDL clarification.
Andrew Bartlett
(This used to be commit 77169958fc42d8ea4561f6218919a34c330259d3)
2007-10-10 14:30:22 -05:00
Rafal Szczesniak
37457a0f07 r20328: use prereq function instead of local implementation.
rafal
(This used to be commit f79dcd41e78662c376d29cf210436c0a28cce4e8)
2007-10-10 14:29:41 -05:00
Andrew Bartlett
728e4e311c r20294: Without this we don't do the ADS join against Win2k3 SP1
Andrew Bartlett
(This used to be commit 7a7f1a97644ab420cf43282d6979881c5c4c59b6)
2007-10-10 14:29:33 -05:00
Stefan Metzmacher
7cb96a785f r20293: implement store chunk hook for libnet_BecomeDC()
metze
(This used to be commit aba497f2fdb79e4a61c028501d4d33a3f678ba73)
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 5cb59860676e86764cfaf7cd1c6e632c95badeb9)
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 07f1075d469833e10c2f0b0d4578221c6a189b04)
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 15157bf5b94dacc868c49dbf750421eb221868ba)
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 fc9669e2a081a614599f7cdce1e031e8a8134c67)
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 9b5116be2eb246eda2a4c63e86cf4f15f90b915e)
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 aa720a15319392fee5c532959192d0df5bf4c718)
2007-10-10 14:29:27 -05:00
Stefan Metzmacher
f767a508a6 r20225: we can't use composite_error() in a _recv() function, as that would
trigger the caller to call the _recv() function again and will be an endless
loop.

this is just a fix the to prevent this, and use a more usefull error code
than NT_STATUS_UNSUCCESSFUL

I think we should move the checks about valid responses into the function
which receives the the response (here continue_name_found()),
so that the _recv() function only needs to transfer the output vars to the caller
without any logic to analyse the network response.

metze
(This used to be commit c02048f4800fe14e975f1cf0b5bd45f14261ac18)
2007-10-10 14:29:25 -05:00
Rafal Szczesniak
56d768842e r20222: return status unsuccessful when null pointers are returned
from lookup call.

rafal
(This used to be commit 0eb605cf423faee2111b3d70cef1c578564a0fb5)
2007-10-10 14:29:24 -05:00
Stefan Metzmacher
ba1be45aa2 r20205: remove unused var
metze
(This used to be commit a77e1bd1b48e953773db47a5469b1712794f26cf)
2007-10-10 14:29:22 -05:00
Stefan Metzmacher
6e8a88fe2e r20204: use symbolic constant
metze
(This used to be commit a816c2973a5cded5d2e520f35a79dc519205f350)
2007-10-10 14:29:22 -05:00
Stefan Metzmacher
1a1027b824 r20182: make the composite api usage more consistant (only cosmetic change)
metze
(This used to be commit 1f67433914bfab83bf1950263809c9e152ad6dcc)
2007-10-10 14:29:18 -05:00
Rafal Szczesniak
9775696af1 r20177: return the actual function status code.
rafal
(This used to be commit 2d046cc0df820edc141a74e7d204e4fba462e037)
2007-10-10 14:29:18 -05:00
Stefan Metzmacher
bdafdec2bb r20166: we have a dom_sid_add_rid() function that adds the rid after allocating
enough memory for the new sub_auth element.

the old version wrote behind the buffer.

also make the output sid a pointer.

metze
(This used to be commit b9901d5f8c9aa777bafd3a670d27209552bc56b7)
2007-10-10 14:29:17 -05:00
Rafal Szczesniak
5ff19e8ca4 r20162: Always return some error string.
rafal
(This used to be commit 0c373605776eb166ffe46db0dd21395efc3bb186)
2007-10-10 14:29:16 -05:00
Rafal Szczesniak
1dd09da392 r20161: Prevent potential segfault in case account is unknown.
rafal
(This used to be commit 9f5f9ee9b4b815715c0b580e21ab0906fa15ae96)
2007-10-10 14:29:16 -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 9c3267e17f984a0a47abd35cecb56c43cf97efcd)
2007-10-10 14:29:14 -05:00
Rafal Szczesniak
6de9ae9e43 r20138: return the proper status for the other functions as well.
rafal
(This used to be commit 0b82b9dba1f67b1d340b7cf2b35a826135c101d4)
2007-10-10 14:29:13 -05:00
Rafal Szczesniak
3dde7ab2c0 r20137: return the proper status.
rafal
(This used to be commit e635f5aeaf7cd722e55bd99e52a8de166ae0ecd5)
2007-10-10 14:29:13 -05:00
Andrew Bartlett
334f78d206 r20113: Update the DRSUAPI CrackNames test to explore a few more cases, and in
particular to verify more expected results.

Also return more details from the join process.  Now we also return
the machine account's GUID.

Andrew Bartlett
(This used to be commit 5b32f102af1fc7acb56bf7eaa40068d60a1ee396)
2007-10-10 14:29:08 -05:00
Stefan Metzmacher
d23f3119a9 r20109: let libnet_BecomeDC() work against w2k servers
metze
(This used to be commit d295239861a282d06a9a93cdafa4e4d7616928b8)
2007-10-10 14:29:08 -05:00
Stefan Metzmacher
d4ac51982c r20105: remove useless comments
metze
(This used to be commit d70140ed07bf4d0d1d0a0485ca73a29cf1cafe8c)
2007-10-10 14:29:07 -05:00