1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-02 00:23:50 +03:00
Commit Graph

11151 Commits

Author SHA1 Message Date
Stefan Metzmacher
58cbbaa4b4 r20316: fix compiler warning
metze
2007-10-10 14:29:38 -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
Andrew Bartlett
82a09a111b r20314: I think some hosts need this to get the right ASN1 header deps 2007-10-10 14:29:37 -05:00
Volker Lendecke
0f018cca6f r20311: Check one more samba3 error path for t2mkdir 2007-10-10 14:29:37 -05:00
Volker Lendecke
52d9c7ed0a r20309: Don't treat non-supported EAs as fatal against Samba3.
Volker
2007-10-10 14:29:37 -05:00
Volker Lendecke
9bdc19b6d5 r20308: ContextSimple can be zero length -- seen in a multi-step gssapi ldap bind. Did
not find that in Samba3 code, so there's nothing to port.

Volker
2007-10-10 14:29:37 -05:00
Stefan Metzmacher
0352b7bbc6 r20307: remove unused vars
metze
2007-10-10 14:29:36 -05:00
Stefan Metzmacher
df63995ec5 r20306: remove the static oid mapping table
and attach the table to the dsdb_schema

metze
2007-10-10 14:29:36 -05:00
Stefan Metzmacher
cfcd6285e1 r20305: as the oid mapping table is dynnamic it makes no sense
to test the mappings when we got the schema via LDAP
as we don't get the mappings

metze
2007-10-10 14:29:36 -05:00
Stefan Metzmacher
6a089d48ec r20303: try to fix 'make install' on solaris 8, ln -fs doesn't seem to work if
the link already exist

metze
2007-10-10 14:29:35 -05:00
Andrew Tridgell
9a9f189141 r20302: added support for 64 bit file offsets in NBENCH 2007-10-10 14:29:35 -05:00
Andrew Tridgell
48a322a9c1 r20301: add an option torture:readonly which allows the NBENCH test to be run
read only. This is only any use with customer loadfiles, and
pre-created data. I'm using this to test performance as a video
server, with pre-created video files.
2007-10-10 14:29:35 -05:00
Jelmer Vernooij
4040635513 r20300: Trim number of shared libs significantly. 2007-10-10 14:29:35 -05:00
Jelmer Vernooij
b3f64869fc r20299: Disable two new tests that are apparently broken. 2007-10-10 14:29:34 -05:00
Jelmer Vernooij
ab3d573946 r20298: Fix pidl tests (missing symlink..). 2007-10-10 14:29:34 -05:00
Andrew Bartlett
41e42843be r20297: Finally got to the bottom of why we were failing the RPC-CRACKNAMES
test against my win2k3 domain.  I have a child domain, and as such the
BUILTIN domain SID appears multiple times in the tree, and is
therefore not unique.

Andrew Bartlett
2007-10-10 14:29:34 -05:00
Andrew Bartlett
115ed29fd8 r20295: Add a couple more tests to the CrackNames test. 2007-10-10 14:29:34 -05:00
Andrew Bartlett
7a7f1a9764 r20294: Without this we don't do the ADS join against Win2k3 SP1
Andrew Bartlett
2007-10-10 14:29:33 -05:00
Stefan Metzmacher
aba497f2fd r20293: implement store chunk hook for libnet_BecomeDC()
metze
2007-10-10 14:29:33 -05:00
Stefan Metzmacher
5cb5986067 r20292: set ntds_dn_str if DsAddEntry() was successful
metze
2007-10-10 14:29:33 -05:00
Stefan Metzmacher
07f1075d46 r20291: implement prepare_db hook of libnet_BecomeDC()
metze
2007-10-10 14:29:32 -05:00
Stefan Metzmacher
6d0c788f3d r20288: fix a mem leak and remove useless code
metze
2007-10-10 14:29:32 -05:00
Stefan Metzmacher
0777a8e749 r20286: handle the non oid string cases for pushing too
metze
2007-10-10 14:29:32 -05:00
Stefan Metzmacher
15157bf5b9 r20285: pass more info to check_options hook and move behavior versions etc.
to the domain and forest structures

metze
2007-10-10 14:29:32 -05:00
Simo Sorce
14b3b9861a r20284: Simplify OID primitive BER parsing.
Do not require an artificial ASN.1 context to be setup.

Simo.
2007-10-10 14:29:31 -05:00
Stefan Metzmacher
fc9669e2a0 r20283: pass in callbacks to libnet_BecomeDC() from the caller
and implement the check_options call

metze
2007-10-10 14:29:31 -05:00
Stefan Metzmacher
9b5116be2e 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
2007-10-10 14:29:31 -05:00
Stefan Metzmacher
ebbd6263bb r20281: remove debug statement
metze
2007-10-10 14:29:30 -05:00
Stefan Metzmacher
db16f6382d 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
2007-10-10 14:29:30 -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
7e7d1a1da2 r20277: make sure the asn1 structure has a welldefined state after a asn1_free()
metze
2007-10-10 14:29:30 -05:00
Stefan Metzmacher
c4733b20c7 r20276: remove unneeded talloc_strdup()
metze
2007-10-10 14:29:29 -05:00
Stefan Metzmacher
4b9e196288 r20275: we should check for the oid the caller gave us!
metze
2007-10-10 14:29:29 -05:00
Stefan Metzmacher
7256481f08 r20274: add missing return statement and make it more explicit that we return a NULL DATA_BLOB
metze
2007-10-10 14:29:29 -05:00
Volker Lendecke
b053a7df84 r20272: Fix for BASE-BENCH-READWRITE from Mathias Dietz <MDIETZ@de.ibm.com> 2007-10-10 14:29:28 -05:00
Stefan Metzmacher
ea70f6ff07 r20259: add function to start a fake tag so that asn1_read_OID_String()
can work alone

metze
2007-10-10 14:29:28 -05:00
Stefan Metzmacher
576d4c54cc r20258: add functions to read and write asn1 encoded OID strings without leading tag
metze
2007-10-10 14:29:28 -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
Andrew Tridgell
65858ebb68 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
2007-10-10 14:29:27 -05:00
Stefan Metzmacher
9168236ddd r20233: add functions to create a dsdb_attribute and dsdb_class from
a drsuapi_DsReplicaObject

metze
2007-10-10 14:29:26 -05:00
Stefan Metzmacher
5d7827f45e 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
2007-10-10 14:29:26 -05:00
Stefan Metzmacher
3af0a9b2c4 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
2007-10-10 14:29:26 -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
e5b67046c2 r20226: rename macros with a _LDB at the end, because I'll add macros with _DS
soon

metze
2007-10-10 14:29:25 -05:00
Stefan Metzmacher
c02048f480 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
2007-10-10 14:29:25 -05:00
Stefan Metzmacher
e50cf96fea 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
2007-10-10 14:29:24 -05:00
Stefan Metzmacher
66c4b42f5f r20223: this function is in the torture test now
metze
2007-10-10 14:29:24 -05:00
Rafal Szczesniak
0eb605cf42 r20222: return status unsuccessful when null pointers are returned
from lookup call.

rafal
2007-10-10 14:29:24 -05:00
Stefan Metzmacher
58ba6ec195 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
2007-10-10 14:29:23 -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