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

11525 Commits

Author SHA1 Message Date
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
02b65d5453 r20288: fix a mem leak and remove useless code
metze
(This used to be commit 6d0c788f3dffb7a553464404ebd9c0487d668bc5)
2007-10-10 14:29:32 -05:00
Stefan Metzmacher
089eda9585 r20286: handle the non oid string cases for pushing too
metze
(This used to be commit 0777a8e749e8df88dd1b9f7be9e4f3012559243b)
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
Simo Sorce
52455cb922 r20284: Simplify OID primitive BER parsing.
Do not require an artificial ASN.1 context to be setup.

Simo.
(This used to be commit 14b3b9861ae47498c74a6643e6979b3d85260a61)
2007-10-10 14:29:31 -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
89a94feef9 r20281: remove debug statement
metze
(This used to be commit ebbd6263bbc30001e25603c5e4f45393b5fadb3d)
2007-10-10 14:29:30 -05:00
Stefan Metzmacher
037e158938 r20280: if the uint8_t array starts with 0xFF, then it's not a OID
and we return the array as hexstring. this is always in the last
array member of the meppings array, and I is always 21 bytes long

w2k in mixed mode:   FF0000000000000000000000000000000000000000
w2k3 in mixed mode:  FF00000002A5DA73B101C43B449028E2F832FE466F
w2k3 in native mode: FF00000001635D94BDE62E2C4C9BAC9D6AFA4F69F8

I assume it's some kind of schema version...

metze
(This used to be commit db16f6382da50167b6cefdaeb8488b00a45fb928)
2007-10-10 14:29:30 -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 bc13b3690166b29df246cc4778b378e9cf2a22d7)
2007-10-10 14:29:30 -05:00
Stefan Metzmacher
06c58a3dbb r20277: make sure the asn1 structure has a welldefined state after a asn1_free()
metze
(This used to be commit 7e7d1a1da2d64d28915a06c399072de1caf108c4)
2007-10-10 14:29:30 -05:00
Stefan Metzmacher
bfa5a5a441 r20276: remove unneeded talloc_strdup()
metze
(This used to be commit c4733b20c7c113dc1abfb2219a899b80bbcc2875)
2007-10-10 14:29:29 -05:00
Stefan Metzmacher
f09c0c1237 r20275: we should check for the oid the caller gave us!
metze
(This used to be commit 4b9e196288f2deb3594db9ba2dd36d774e774574)
2007-10-10 14:29:29 -05:00
Stefan Metzmacher
b2d5ec0339 r20274: add missing return statement and make it more explicit that we return a NULL DATA_BLOB
metze
(This used to be commit 7256481f08b5e860308e73c2b51926b55b1f4c43)
2007-10-10 14:29:29 -05:00
Volker Lendecke
0cb8a7f058 r20272: Fix for BASE-BENCH-READWRITE from Mathias Dietz <MDIETZ@de.ibm.com>
(This used to be commit b053a7df8453527a9c2dfc03f3c35487fe75676f)
2007-10-10 14:29:28 -05:00
Stefan Metzmacher
3853f820e6 r20259: add function to start a fake tag so that asn1_read_OID_String()
can work alone

metze
(This used to be commit ea70f6ff07930951d98a952b03963d0ba358fec4)
2007-10-10 14:29:28 -05:00
Stefan Metzmacher
b55a68b368 r20258: add functions to read and write asn1 encoded OID strings without leading tag
metze
(This used to be commit 576d4c54cca844164b90e5d6ec71fe44b59607b7)
2007-10-10 14:29:28 -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
Andrew Tridgell
13b7d54535 r20234: metze pointed out that we are re-loading the cache records on each
write. We should only be doing this if another process writes and
changes the seqnum. This avoids the extra cache loads
(This used to be commit 65858ebb68c25a672e9284e8cba9a6675902f1df)
2007-10-10 14:29:27 -05:00
Stefan Metzmacher
291271f226 r20233: add functions to create a dsdb_attribute and dsdb_class from
a drsuapi_DsReplicaObject

metze
(This used to be commit 9168236ddd3d8ed9daa1e47be1e6b12d2bc348b6)
2007-10-10 14:29:26 -05:00
Stefan Metzmacher
e666389c36 r20232: specify attribute name and structure element name always together
there're a view elements where both values doesn't match

LDAP-SCHEMA now successful loads the schema

metze
(This used to be commit 5d7827f45ec05acaca28c94fd6a5d25f148d011c)
2007-10-10 14:29:26 -05:00
Stefan Metzmacher
549b56b89d r20231: - add more oid => uint32 id mappings
- handle the case where mappings for 1.2.3.4. and 1.2.3.4.5. prefixes
  exist
- extend test suite for the mappings

metze
(This used to be commit 3af0a9b2c490ed1e4cd0af7faf814823bc60c264)
2007-10-10 14:29:26 -05:00
Stefan Metzmacher
2e8746cc14 r20230: I found more mappings of OID string to uint32 id
metze
(This used to be commit 3d51ce92c272582e19046337ea6b8b2acd60997d)
2007-10-10 14:29:25 -05:00
Stefan Metzmacher
7aa96e9960 r20226: rename macros with a _LDB at the end, because I'll add macros with _DS
soon

metze
(This used to be commit e5b67046c255c7dec07acf3ddc158278997502e3)
2007-10-10 14:29:25 -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
Stefan Metzmacher
836202f600 r20224: the struct element msDs_Schema_Extensions and the attribute name "msDs-Schema-Extensions"
doesn't match so we need to pass 2 parameters to the GET_BLOB() macro

metze
(This used to be commit e50cf96fea1318853a8cfc0061afcad9cbad7e2c)
2007-10-10 14:29:24 -05:00
Stefan Metzmacher
1fc9c6bf2c r20223: this function is in the torture test now
metze
(This used to be commit 66c4b42f5f4c48e9c288781208ecdd4849c2f939)
2007-10-10 14:29:24 -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
c5571c7c39 r20221: - move the dsdb_schema, dsdb_attribute, dsdb_class structs into
a generic location
- this struct should be also used by the dsdb/samdb/ldb_modules/schema.c
  module later
- add functions to map from LDAP OID values to uint32_t values
- add torture test for the OID => uint32 mapping code

metze
(This used to be commit 58ba6ec195ce3a5e2352866809f6cb57f8d8260a)
2007-10-10 14:29:23 -05:00
Derrell Lipman
ff8ef6c280 r20220: Apply patch from Brad Henry with some additional qooxdoo/json-rpc SWAT
functionality: basic admin console.
(This used to be commit 23f8dd44cbf85e05e4b3d38de9ed7798dd21defb)
2007-10-10 14:29:23 -05:00
Stefan Metzmacher
5249de8519 r20219: add enough knowledge to display the content of attributeSchema objects
metze
(This used to be commit 38ae6ce7b9b5dd733e4e838da04d1c570c450c97)
2007-10-10 14:29:23 -05:00
Stefan Metzmacher
f37b7b8582 r20213: add 2 error codes related to the msDs-IntId attribute
metze
(This used to be commit dd5df84cccd10e9880648eecbff6faf7252d5e73)
2007-10-10 14:29:23 -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
0e2ebecf18 r20198: let the IBM checker ignore the warning about a missing break
statement...

metze
(This used to be commit 6b20123c10b8812759b0876990766adc207bc5b4)
2007-10-10 14:29:22 -05:00
Stefan Metzmacher
90d106de8a r20195: fix typo
metze
(This used to be commit 9d06a4b6e22e18bdaa4383c7b9ab8af058c157c0)
2007-10-10 14:29:21 -05:00
Stefan Metzmacher
0d2bedbdd7 r20194: inline all static talloc functions
metze
(This used to be commit ee47b404412299ac0e341f0d269adc21a7ebc603)
2007-10-10 14:29:21 -05:00
Stefan Metzmacher
bfbf6d546b r20193: - let talloc_parent_chunk() handle a NULL pointer
- use talloc_parent_chunk() in talloc_parent_name()
- add prototype of talloc_parent_name()

metze
(This used to be commit 85fc18f047cd2132d0c455f739ee76ce5005d7ed)
2007-10-10 14:29:21 -05:00
Stefan Metzmacher
f0eaae956f r20192: I assume a 'break' is the correct thing to do here,
simo,tridge: please check this.

found by the IBM checker

metze
(This used to be commit 5ac373c8b853d4527a095111253f3cb10522f5e8)
2007-10-10 14:29:21 -05:00
Stefan Metzmacher
c8c023ea62 r20191: fix bug found by the IBM checker
metze
(This used to be commit 4c1e4bfeef8d93583b6d4345dbb1b8fa90368308)
2007-10-10 14:29:20 -05:00
Stefan Metzmacher
f4fa06ca00 r20190: fix the ldb_ldap backend
metze
(This used to be commit 6b7eb5d68e769fd5450c5d92c3ece4c471aaeae9)
2007-10-10 14:29:20 -05:00
Stefan Metzmacher
a3c0f3035d r20189: remove unused struct element
metze
(This used to be commit d20d1872d5ed1176928b85ef9811c6a5177d0148)
2007-10-10 14:29:20 -05:00
Stefan Metzmacher
8e7d87babc r20188: move back to an default attribute handler and not use the '*' attribute
to not conflict with the one that maybe added via the @ATTRIBUTES object

this is just to make the test-tdb-feature.sh torture test happy

There's still a bug when a attribute is registered multiple time
without removing old ldb_schema_attribute instances. But this bug
was there before my changes too and was just triggered by my changes

metze
(This used to be commit 70c4a367433f8c54bdd940eb0a6a24ab976a4063)
2007-10-10 14:29:19 -05:00
Stefan Metzmacher
bc58f6fa36 r20187: fix the build on systems without sqlite3
metze
(This used to be commit 216713d9a034984ffb40889b42837b91abae862a)
2007-10-10 14:29:19 -05:00
Stefan Metzmacher
538e3bf654 r20185: - SMB_ENABLE() needs upper case YES/NO
- fix compilation of the ldb_sqlite3 module

metze
(This used to be commit 39c41be0ac5bfa39c4ff3267b1a8291857e3a034)
2007-10-10 14:29:19 -05:00
Stefan Metzmacher
c69717755a r20184: change ldb_attrib_handler into ldb_schema_attribute, which has a pointer
to a ldb_schema_syntax struct.

the default attribute handler is now registered dynamicly as "*"
attribute, instead of having its own code path.

ldb_schema_attribute's can be added to the ldb_schema given a
ldb_schema_syntax struct or the syntax name

we may also need to introduce a ldb_schema_matching_rule,
and add a pointer to a default ldb_schema_matching_rule
in the ldb_schema_syntax.

metze
(This used to be commit b97b8f5dcbce006f005e53ca79df3330e62f117b)
2007-10-10 14:29:19 -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