summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r20258: add functions to read and write asn1 encoded OID strings without ↵Stefan Metzmacher2-22/+63
leading tag metze (This used to be commit 576d4c54cca844164b90e5d6ec71fe44b59607b7)
2007-10-10r20251: I found out that the oid-prefix to uint32-id-prefix mapping is ↵Stefan Metzmacher4-63/+66
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-10r20234: metze pointed out that we are re-loading the cache records on eachAndrew Tridgell1-0/+4
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-10r20233: add functions to create a dsdb_attribute and dsdb_class fromStefan Metzmacher2-1/+264
a drsuapi_DsReplicaObject metze (This used to be commit 9168236ddd3d8ed9daa1e47be1e6b12d2bc348b6)
2007-10-10r20232: specify attribute name and structure element name always togetherStefan Metzmacher1-66/+81
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-10r20231: - add more oid => uint32 id mappingsStefan Metzmacher2-3/+54
- 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-10r20230: I found more mappings of OID string to uint32 idStefan Metzmacher1-6/+4
metze (This used to be commit 3d51ce92c272582e19046337ea6b8b2acd60997d)
2007-10-10r20226: rename macros with a _LDB at the end, because I'll add macros with _DSStefan Metzmacher1-52/+52
soon metze (This used to be commit e5b67046c255c7dec07acf3ddc158278997502e3)
2007-10-10r20225: we can't use composite_error() in a _recv() function, as that wouldStefan Metzmacher1-1/+4
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-10r20224: the struct element msDs_Schema_Extensions and the attribute name ↵Stefan Metzmacher1-5/+5
"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-10r20223: this function is in the torture test nowStefan Metzmacher1-54/+0
metze (This used to be commit 66c4b42f5f4c48e9c288781208ecdd4849c2f939)
2007-10-10r20222: return status unsuccessful when null pointers are returnedRafal Szczesniak1-1/+3
from lookup call. rafal (This used to be commit 0eb605cf423faee2111b3d70cef1c578564a0fb5)
2007-10-10r20221: - move the dsdb_schema, dsdb_attribute, dsdb_class structs intoStefan Metzmacher5-160/+514
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-10r20220: Apply patch from Brad Henry with some additional qooxdoo/json-rpc SWATDerrell Lipman5-0/+414
functionality: basic admin console. (This used to be commit 23f8dd44cbf85e05e4b3d38de9ed7798dd21defb)
2007-10-10r20219: add enough knowledge to display the content of attributeSchema objectsStefan Metzmacher1-20/+60
metze (This used to be commit 38ae6ce7b9b5dd733e4e838da04d1c570c450c97)
2007-10-10r20213: add 2 error codes related to the msDs-IntId attributeStefan Metzmacher2-0/+4
metze (This used to be commit dd5df84cccd10e9880648eecbff6faf7252d5e73)
2007-10-10r20205: remove unused varStefan Metzmacher1-2/+0
metze (This used to be commit a77e1bd1b48e953773db47a5469b1712794f26cf)
2007-10-10r20204: use symbolic constantStefan Metzmacher1-1/+1
metze (This used to be commit a816c2973a5cded5d2e520f35a79dc519205f350)
2007-10-10r20198: let the IBM checker ignore the warning about a missing breakStefan Metzmacher1-1/+2
statement... metze (This used to be commit 6b20123c10b8812759b0876990766adc207bc5b4)
2007-10-10r20195: fix typoStefan Metzmacher1-1/+1
metze (This used to be commit 9d06a4b6e22e18bdaa4383c7b9ab8af058c157c0)
2007-10-10r20194: inline all static talloc functionsStefan Metzmacher1-4/+6
metze (This used to be commit ee47b404412299ac0e341f0d269adc21a7ebc603)
2007-10-10r20193: - let talloc_parent_chunk() handle a NULL pointerStefan Metzmacher2-15/+12
- use talloc_parent_chunk() in talloc_parent_name() - add prototype of talloc_parent_name() metze (This used to be commit 85fc18f047cd2132d0c455f739ee76ce5005d7ed)
2007-10-10r20192: I assume a 'break' is the correct thing to do here,Stefan Metzmacher1-0/+1
simo,tridge: please check this. found by the IBM checker metze (This used to be commit 5ac373c8b853d4527a095111253f3cb10522f5e8)
2007-10-10r20191: fix bug found by the IBM checkerStefan Metzmacher1-1/+1
metze (This used to be commit 4c1e4bfeef8d93583b6d4345dbb1b8fa90368308)
2007-10-10r20190: fix the ldb_ldap backendStefan Metzmacher1-1/+0
metze (This used to be commit 6b7eb5d68e769fd5450c5d92c3ece4c471aaeae9)
2007-10-10r20189: remove unused struct elementStefan Metzmacher4-6/+0
metze (This used to be commit d20d1872d5ed1176928b85ef9811c6a5177d0148)
2007-10-10r20188: move back to an default attribute handler and not use the '*' attributeStefan Metzmacher1-2/+15
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-10r20187: fix the build on systems without sqlite3Stefan Metzmacher1-0/+4
metze (This used to be commit 216713d9a034984ffb40889b42837b91abae862a)
2007-10-10r20185: - SMB_ENABLE() needs upper case YES/NOStefan Metzmacher2-27/+29
- fix compilation of the ldb_sqlite3 module metze (This used to be commit 39c41be0ac5bfa39c4ff3267b1a8291857e3a034)
2007-10-10r20184: change ldb_attrib_handler into ldb_schema_attribute, which has a pointerStefan Metzmacher16-391/+254
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-10r20182: make the composite api usage more consistant (only cosmetic change)Stefan Metzmacher1-0/+1
metze (This used to be commit 1f67433914bfab83bf1950263809c9e152ad6dcc)
2007-10-10r20177: return the actual function status code.Rafal Szczesniak1-0/+2
rafal (This used to be commit 2d046cc0df820edc141a74e7d204e4fba462e037)
2007-10-10r20176: Info method returns null object if the user is not found.Rafal Szczesniak1-4/+10
rafal (This used to be commit a20b05183d274a3a780ae197dc7014428739cc7a)
2007-10-10r20175: use libnet context instead mem_ctx as the latter getsRafal Szczesniak1-4/+3
freed just before the function returns. rafal (This used to be commit ca8259fd27d1e92bcb650441461afdfd613e93bf)
2007-10-10r20168: start separating attributes and syntaxesStefan Metzmacher5-36/+46
metze (This used to be commit 8dda4342f648aa71878ac9eeb7941710e2813aee)
2007-10-10r20167: reenable the ejsnet testsStefan Metzmacher1-1/+1
metze (This used to be commit 1e4289fae4fb71725d9c37ed772eab0ff5853e65)
2007-10-10r20166: we have a dom_sid_add_rid() function that adds the rid after allocatingStefan Metzmacher2-12/+10
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-10r20164: Disable the test till tomorrow when I find out what causedRafal Szczesniak1-1/+1
the crash. rafal (This used to be commit 5d7908038b6508f53cc8714f73ae7c5bfc6bce58)
2007-10-10r20163: Return null object if no user is found.Rafal Szczesniak1-1/+5
rafal (This used to be commit af539fec4acb3ad78b8f0fa4f7c2f4e6cebea0b7)
2007-10-10r20162: Always return some error string.Rafal Szczesniak1-0/+3
rafal (This used to be commit 0c373605776eb166ffe46db0dd21395efc3bb186)
2007-10-10r20161: Prevent potential segfault in case account is unknown.Rafal Szczesniak1-8/+12
rafal (This used to be commit 9f5f9ee9b4b815715c0b580e21ab0906fa15ae96)
2007-10-10r20152: Commit missing files from last night's commit. We no longer maintainAndrew Bartlett4-3/+6
a distinction between PDC and BDC in the configuration files, only as an entry in the ldb. Andrew Bartlett (This used to be commit dc9eee7cb37e4a6828c2cba23b0d836df9eac7b5)
2007-10-10r20149: Remove the smb.conf distinction between PDC and BDC. Now the correctAndrew Bartlett14-183/+406
way to setup a Samba4 DC is to set 'server role = domain controller'. We use the fSMORoleOwner attribute in the base DN to determine the PDC. This patch is quite large, as I have corrected a number of places that assumed taht we are always the PDC, or that used the smb.conf lp_server_role() to determine that. Also included is a warning fix in the SAMR code, where the IDL has seperated a couple of types for group display enumeration. We also now use the ldb database to determine if we should run the global catalog service. In the near future, I will complete the DRSUAPI DsGetDomainControllerInfo server-side on the same basis. Andrew Bartlett (This used to be commit 67d8365e831adf3eaecd8b34dcc481fc82565893)
2007-10-10r20145: fix whitespacesStefan Metzmacher1-5/+3
metze (This used to be commit d2d9842914bb049189f9349ff96b32c088cd02a8)
2007-10-10r20144: add NET-API-BECOME-DC test that tests ↵Stefan Metzmacher3-6/+87
libnet_BecomeDC()/libnet_UnbecomeDC() metze (This used to be commit 0359d9a00b3e30e2bd67b89d6b11236e5af0106b)
2007-10-10r20143: a bit of experiments before doing serious changes in ejsnet.Rafal Szczesniak2-1/+47
rafal (This used to be commit 3cdd43ebcedfa7d1d59bd33b3bfed4e80560ec82)
2007-10-10r20142: only the DDNS updates are missing for the full libnet_BecomeDC(),Stefan Metzmacher1-1/+2
but that's not needed untill we can support the DsGetNCChanges() in the server... metze (This used to be commit 9c3267e17f984a0a47abd35cecb56c43cf97efcd)
2007-10-10r20141: use the gensec_features of the cli_credentials for ildap connections,Stefan Metzmacher1-3/+9
instead of hardcoded GENSEC_FEATURE_SEAL. That means plain LDAP is now the default. metze (This used to be commit b69471866c2a6c61002147938f233f2f63963ba4)
2007-10-10r20139: only add GSS_C_CONF_FLAG and GSS_C_INTEG_FLAG if the caller ↵Stefan Metzmacher1-2/+5
requested it! this is needed to create plain, singed or sealed LDAP connections. this should go into lorikeet and main heimdal... metze (This used to be commit 75c037cae21714e394a63f2506387e1049eb4406)
2007-10-10r20138: return the proper status for the other functions as well.Rafal Szczesniak1-3/+7
rafal (This used to be commit 0b82b9dba1f67b1d340b7cf2b35a826135c101d4)