summaryrefslogtreecommitdiffstats
path: root/source4/dsdb/schema
Commit message (Collapse)AuthorAgeFilesLines
* s4:dsdb/schema: add dsdb_syntax_OID_validate_ldb()Stefan Metzmacher2010-01-131-13/+50
| | | | | | | | This is a very heavy weight way of checking this syntax, but it's very complex and using the existing function should be ok for now. We can optimize it later. metze
* s4:dsdb/schema: add dsdb_syntax_DN_STRING_validate_ldb()Stefan Metzmacher2010-01-131-1/+48
| | | | metze
* s4:dsdb/schema: add dsdb_syntax_DN_BINARY_validate_ldb()Stefan Metzmacher2010-01-131-2/+49
| | | | metze
* s4:dsdb/schema: add dsdb_syntax_DN_validate_ldb()Stefan Metzmacher2010-01-131-1/+139
| | | | metze
* s4:dsdb/schema: add dsdb_syntax_PRESENTATION_ADDRESS_validate_ldb()Stefan Metzmacher2010-01-131-1/+12
| | | | metze
* s4:dsdb/schema: add dsdb_syntax_UNICODE_validate_ldb()Stefan Metzmacher2010-01-131-1/+69
| | | | metze
* s4:dsdb/schema: add dsdb_syntax_DATA_BLOB_validate_ldb()Stefan Metzmacher2010-01-131-8/+61
| | | | metze
* s4:dsdb/schema: add dsdb_syntax_NTTIME_validate_ldb()Stefan Metzmacher2010-01-131-1/+37
| | | | metze
* s4:dsdb/schema: add dsdb_syntax_NTTIME_UTC_validate_ldb()Stefan Metzmacher2010-01-131-1/+49
| | | | metze
* s4:dsdb/schema: add dsdb_syntax_INT64_validate_ldb()Stefan Metzmacher2010-01-131-1/+47
| | | | metze
* s4:dsdb/schema: add dsdb_syntax_INT32_validate_ldb()Stefan Metzmacher2010-01-131-1/+48
| | | | metze
* s4:dsdb/schema: add dsdb_syntax_BOOL_validate_ldb()Stefan Metzmacher2010-01-131-1/+30
| | | | metze
* s4:dsdb/schema: add inftrastructure for dsdb_validate_ldb()Stefan Metzmacher2010-01-132-0/+61
| | | | metze
* s4:dsdb/schema: add dsdb_syntax_DN_STRING_* wrappersStefan Metzmacher2010-01-131-2/+30
| | | | metze
* s4-schema: added some debug for bad attributesAndrew Tridgell2010-01-081-0/+8
|
* s4-schema: added generic attributeID conversion functionsAndrew Tridgell2010-01-081-63/+117
| | | | | | | When we get one we haven't seen before, we can work out the right type automatically in most cases. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-schema: added dsdb_attribute_by_lDAPDisplayName_ldb_valAndrew Tridgell2010-01-081-0/+12
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-schema: make ldb_val to string comparison safer with nul terminationAndrew Tridgell2010-01-081-1/+8
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4/dsdb_schema: Load msDS-IntId value separately when loading from LDBKamen Mazdrashki2010-01-081-0/+3
| | | | | This way we have consistent behavior when loading from DRSUAPI and from LDB.
* Revert "s4-schema: Set ATTID in schema cache from "msDS-IntId""Kamen Mazdrashki2010-01-081-13/+8
| | | | This reverts commit 4e8ad284f5813413fdec8426f11e24570d22549b.
* s4/dsdb_schema: use msDS-IntId value for attribute look-upKamen Mazdrashki2010-01-081-0/+9
|
* s4/dsdb_schema: fetch msDS-IntId value during SCHEMA replicationKamen Mazdrashki2010-01-082-0/+5
|
* s4/dsdb_schema: GET_UINT32_DS() macro to use supplied default value instead of 0Kamen Mazdrashki2010-01-081-14/+14
|
* s4-dsdb: use ldb_val_to_time() instead of ldb_string_to_time()Andrew Tridgell2010-01-021-1/+5
|
* s4-schema: don't fill in the extended DN with a zero GUIDAndrew Tridgell2010-01-021-11/+12
| | | | | | sometimes windows sends us a zero GUID in a DRS DN. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* sd-schema: order DRS classes on the wire in reverse orderAndrew Tridgell2010-01-021-1/+4
| | | | | windows sends objectclasses in DRS in the opposite order to what LDAP uses
* s4-dsdb: allow the component name to be specified in dsdb_get_extended_dn_guid()Andrew Tridgell2010-01-021-2/+2
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-schema: fixed the sorting of schema attributesAndrew Tridgell2009-12-211-3/+9
| | | | | another case of unsigned int subtracting breaking sorts. This one surfaced now as attributeID_id now can be larger than 2^31
* s4-drs: Implement constraints on ATTID values in prefixMapKamen Mazdrashki2009-12-212-0/+35
| | | | | | Ref: MS-ADTS, 3.1.1.2.6 ATTRTYP Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-drs: Save prefix map using LDB_CONTROL_AS_SYSTEM controlKamen Mazdrashki2009-12-211-1/+1
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-schema: Set ATTID in schema cache from "msDS-IntId"Kamen Mazdrashki2009-12-211-8/+13
| | | | | | | | | According to http://msdn.microsoft.com/en-us/library/cc223224%28PROT.13%29.aspx some Attributes OIDs may not use prefixMap. Setting ATTID in Schema Cache here should work, although this code snippet should be moved in separate function. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-schema: a unsigned comparison bug in the schema codeAndrew Tridgell2009-12-211-1/+2
|
* Fixed a problem with duplicate values of allowedAttributesEffective.Nadezhda Ivanova2009-12-151-1/+10
|
* s4-schema: use GUID_to_ndr_blob()Andrew Tridgell2009-12-102-17/+15
|
* s4-schema: use binsearch.hAndrew Tridgell2009-12-101-48/+21
|
* s4-dsdb: simplify schema code using new GUID functionsAndrew Tridgell2009-12-102-34/+22
|
* s4:schema - Make some more (result) variables const and fix up warnings with ↵Matthias Dieter Wallnöfer2009-12-012-53/+72
| | | | "discard_const_p"
* s4/schema(tort): Refactor DSDB-SYNTAX test for better performanceKamen Mazdrashki2009-11-231-35/+86
| | | | | | | Test was implemented as a test fixture so that setup/teardown occurs only once. This should impact test performace as long as provision_get_schema() is a slow function (especially when debugging)
* s4/schema: Object(OR-Name) syntax handling for DRS callsKamen Mazdrashki2009-11-231-4/+6
| | | | OR-Name syntax through DRS calls looks like DN-Binary syntax
* s4/schema(tort): Inject authOrig attribute into schema loaded for testsKamen Mazdrashki2009-11-231-1/+44
|
* s4/schema(tort): Add test for Object(OR-Name) syntaxKamen Mazdrashki2009-11-231-0/+8
|
* s4/schema(tort): Test LDB_SYNTAX_DN with extended_dn in [GUID;SID;DN] formKamen Mazdrashki2009-11-231-1/+9
|
* s4:dsdb/schema: let schema_supclasses() return the correct pointerStefan Metzmacher2009-11-171-2/+2
| | | | | | str_list_unique() changes the pointer via talloc_realloc(). metze
* s4:schema Add the GUID to each defaultObjectCategory when loading from LDIFAndrew Bartlett2009-11-171-0/+49
| | | | | | | | This makes these full extended DNs, so we set the right values into the database, even before we actually set the schema objects themselves. Andrew Bartlett
* s4:dsdb Load objectGUID and extended DN defaultObjectCategory into the schemaAndrew Bartlett2009-11-172-35/+27
| | | | | | | | | | | | | | The load of defaultObjectCategory as an extended DN means we need to use the common parsing functions I just split out, rather than the GET_DS_DN macro. The objectGUIDs are loaded so that we can create the extended DN when we load from LDIF (and are loaded for the other cases for consistency). Also adapt callers to API changes needed for common parsing code Andrew Bartlett
* s4:dsdb Break up 'parse a DN from DRSUAPI' into a subfunctionAndrew Bartlett2009-11-171-73/+91
| | | | | | | | | This should make it easier to call this function from the DRS schema load code, rather than duplicate it. (we may do the same with other functions in future). Andrew Bartlett
* s4:dsdb/schema Add more unit tests for DN+Binary syntaxesAndrew Bartlett2009-11-121-4/+9
|
* s4:dsdb/schema Allow a schema set when bound against a remote LDAP serverAndrew Bartlett2009-11-121-3/+3
|
* s4:dsdb Add expected value tests for most DRS syntax conversionsAndrew Bartlett2009-11-121-0/+149
| | | | | | | | I've left out those for which I could not find an expected value in my default Windows 2003 server's database, and the values that rely on the current prefix map at the time. Andrew Bartlett
* s4:Fix regression in dsdb_dn code - all parses of the DN would be rejectedAndrew Bartlett2009-11-121-2/+6
| | | | | | | This is most likely the cause of the DRS replication failures I observed with my changes. Andrew Bartlett