Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2010-10-15 | s4:dsdb - remove "samdb_result_uint", "samdb_result_int64", ↵ | Matthias Dieter Wallnöfer | 1 | -3/+3 | |
"samdb_result_uint64" and "samdb_result_string" We have ldb_msg_find_attr_as_* calls which do exactly the same. Therefore this reduces only code redundancies. Signed-off-by: Andrew Bartlett <abartlet@samba.org> | |||||
2010-10-12 | torture/becomedc: Add test for global schema, use samdb_connect(). | Jelmer Vernooij | 1 | -1/+6 | |
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Tue Oct 12 18:35:33 UTC 2010 on sn-devel-104 | |||||
2010-10-11 | dsdb/schema: Move some dsdb_dn functions that are schema-specific. | Jelmer Vernooij | 2 | -0/+103 | |
2010-10-10 | s4-dsdb: Make dsdb_setup_sorted_accessors() public | Kamen Mazdrashki | 1 | -2/+2 | |
We are going to need it while converting DRS schema. | |||||
2010-09-21 | s4-dsdb-schema_prefixmap: return WERR_DS_NO_ATTRIBUTE_OR_VALUE when ATTID is ↵ | Kamen Mazdrashki | 1 | -1/+1 | |
not found rather than WERR_INTERNAL_ERROR - it is not internal error! | |||||
2010-09-21 | s4-dsdb-schema_prefixmap: Print debug message when internal failure occurs | Kamen Mazdrashki | 1 | -0/+5 | |
2010-09-17 | s4-schema: Helper func to compare schemaInfo signitures | Kamen Mazdrashki | 1 | -0/+41 | |
2010-09-17 | s4-schema: use dsdb_schema_info_blob_is_valid() to verify schemaInfo blob | Kamen Mazdrashki | 1 | -9/+6 | |
instead of parsing it. | |||||
2010-09-17 | s4-prefixMap: use dsdb_schema_info_blob_is_valid() for schemaInfo blob ↵ | Kamen Mazdrashki | 1 | -4/+2 | |
validation This fixes a leaking dsdb_schema_info object also. | |||||
2010-09-17 | s4-dsdb: Add dsdb_schema_info_blob_is_valid() to verify schemaInfo blobls | Kamen Mazdrashki | 1 | -10/+24 | |
2010-09-13 | s4:cosmetic - the SID attribute is called objectSid - not objectSID | Matthias Dieter Wallnöfer | 1 | -1/+1 | |
2010-08-19 | s4-drs: ATTIDs for deleted attributes should be based on msDs-IntId value if ↵ | Kamen Mazdrashki | 1 | -2/+2 | |
it exists | |||||
2010-08-19 | s4-dsdb: No need for dsdb_syntax_one_DN_drsuapi_to_ldb() to be public | Kamen Mazdrashki | 1 | -3/+3 | |
It is intended to be used in schema_syntax.c module | |||||
2010-08-19 | s4-dsdb-syntax: ATTID should be msDs-IntId value for the attributeSchema object | Kamen Mazdrashki | 2 | -14/+55 | |
in case object replicated is not in Schema NC and attributeSchema object has msDs-IntId attribute value set | |||||
2010-08-19 | s4: fix few comment typos | Kamen Mazdrashki | 1 | -1/+1 | |
2010-08-19 | s4-schema_syntax.c: Fix white spaces and alignment | Kamen Mazdrashki | 1 | -55/+56 | |
2010-08-19 | s4-dsdb: Use dsdb_syntax_ctx in *_drsuapi_to_ldb functions | Kamen Mazdrashki | 3 | -56/+40 | |
2010-08-19 | s4-dsdb: Use dsdb_syntax_ctx in *_ldb_to_drsuapi functions | Kamen Mazdrashki | 3 | -54/+42 | |
2010-08-19 | s4-dsdb: Use dsdb_syntax_ctx in *_validate_ldb functions | Kamen Mazdrashki | 2 | -61/+36 | |
2010-08-19 | s4-dsdb: Add context structure for dsdb_syntax conversion functions | Kamen Mazdrashki | 2 | -0/+19 | |
This structure is intended to hold context-dependent data. Syntax-conversion and object-conversion functions need that data to convert objects and attributes from drs-to-ldb and ldb-to-drs correctly. For instance: ATTID value depends on whether we are converting object from partition different that Schema partition. | |||||
2010-08-11 | s4-dsdb: fix attributes_by_msDS_IntId index sorting | Kamen Mazdrashki | 1 | -1/+5 | |
2010-08-03 | s4-schema: More verbose error log when subClassOf is not found in schema | Kamen Mazdrashki | 1 | -1/+3 | |
Error message show failing classSchema object but not the specific value for the failure, which makes diagnostics by log files really hard. | |||||
2010-08-03 | s4: fix comment typos | Kamen Mazdrashki | 1 | -3/+3 | |
2010-07-19 | s4-dsdb: use ldb_msg_normalize() in source4/dsdb/schema/schema_set.c | Kamen Mazdrashki | 1 | -5/+4 | |
Signed-off-by: Andrew Bartlett <abartlet@samba.org> | |||||
2010-07-19 | s4-dsdb/schema/schema_set.c: fix trailing spaces and comments spelling | Kamen Mazdrashki | 1 | -30/+38 | |
Few comments split on several lines also... (Sorry Metze, I know you hate reviewing "and this, and that" type of patches, but those are just cosmetics) Signed-off-by: Andrew Bartlett <abartlet@samba.org> | |||||
2010-07-19 | s4-dsdb: use ldb_msg_difference() in source4/dsdb/schema/schema_set.c | Kamen Mazdrashki | 1 | -2/+10 | |
Signed-off-by: Andrew Bartlett <abartlet@samba.org> | |||||
2010-07-07 | s4-dsdb: use ldb_operr() in the dsdb code | Andrew Tridgell | 2 | -12/+10 | |
this replaces "return LDB_ERR_OPERATIONS_ERROR" with "return ldb_operr(ldb)" in places in the dsdb code where we don't already explicitly set an error string. This should make is much easier to track down dsdb module bugs that result in an operations error. | |||||
2010-07-03 | s4:schema_set.c - Fix a comment | Matthias Dieter Wallnöfer | 1 | -1/+2 | |
2010-07-03 | s4:dsdb_schema_set_attributes - remove unneeded filter criterias | Matthias Dieter Wallnöfer | 1 | -2/+4 | |
We already choose the right entry by specifying the right basedn with scope "LDB_SCOPE_BASE". | |||||
2010-07-03 | s4:schema_set.c - fix typo | Matthias Dieter Wallnöfer | 1 | -1/+3 | |
2010-07-02 | s4/schema: remove unnecessary deletion of dsdb_schema cached pointer | Anatoliy Atanasov | 1 | -3/+0 | |
This is needed so we can find and free old schemas based using the cached pointer | |||||
2010-07-02 | s4:dsdb Ensure we free old schema copies | Andrew Bartlett | 1 | -6/+25 | |
It was reported by aatanasov that we kept around one whole schema per modification made. This does not fix that, but I hope moves us closer to a fix The most important part of the fix is that: - if (schema_out != schema_in) { - talloc_unlink(schema_in, ldb); - } was the wrong way around. This is now handled in the schema_set calls. Andrew Bartlett | |||||
2010-06-30 | s4:schema/schema_set.c - free LDB message diffs | Anatoliy Atanasov | 1 | -0/+2 | |
Especially the "free"s after "ldb_msg_diff" are very important since the diff message is allocated on the long-living LDB context. Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org> | |||||
2010-06-30 | s4:dsdb Fix possible schema segfaults for DRS-replication based schema | Andrew Bartlett | 1 | -17/+13 | |
The problem here is that if the schema has been modified on the source domain, there may be attributes that appear over DRS with 0 values (to indicate that any existing values on the target should be deleted). This would confuse the previous version of this macro. Andrew Bartlett | |||||
2010-06-21 | s4/dsdb: msg_idx->dn should be allocated in msg_idx mem context | Kamen Mazdrashki | 1 | -1/+1 | |
2010-06-21 | s4/dsdb: Move schema accessors cleanup in separate function | Kamen Mazdrashki | 1 | -18/+21 | |
This way dsdb_setup_sorted_accessors() will free memory allocated for accessor arrays correctly in case of failure, | |||||
2010-06-21 | s4/dsdb-schema: Index attributes on msDS-IntId value | Kamen Mazdrashki | 3 | -7/+28 | |
O(n) search for dsdb_attribute by msDS-IntId value was replaced by binary-search in ordered index. I've choosen the approach of separate index on msDS-IntId values as I think it is more clear what we are searching for. And it should little bit faster as we can clearly determine in which index to perform the search based on ATTID value - ATTIDs based on prefixMap and ATTIDs based on msDS-IntId are in separate ranges. Other way to implement this index was to merge msDS-IntId values in attributeID_id index. This led me to a shorted but not so obvious implementation. | |||||
2010-06-15 | s4:provision Allow a specific prefix map to be loaded into a new schema ↵ | Andrew Bartlett | 1 | -1/+1 | |
provision This allows the prefixMap from a DRS server to be used when loading the schema from the local files. This helps us then import other schema with this map in place. Andrew Bartlett Signed-off-by: Kamen Mazdrashki <kamenim@samba.org> | |||||
2010-06-15 | s4:dsdb Allow the setting an override on the schema | Andrew Bartlett | 2 | -6/+23 | |
The change here is to try and convert a per the previous rules, but if we don't know a particular OID as a attributeID, then store it as an OID (for example). This allows known values to be converted as before, but still copes with unknown values. Andrew Bartlett Signed-off-by: Kamen Mazdrashki <kamenim@samba.org> | |||||
2010-06-15 | s4:dsdb Use the schema from our local provision to decode the schema | Andrew Bartlett | 1 | -367/+0 | |
This works on the assumption that the schema partition can only contain schema objects. We may need to pass down some kind of 'relax' to the DRS -> LDB conversion code, so that it allows incomplete conversions, so that we don't fail if a new attribute is present, and we can't decode it. This would then be resolved the second time we do the conversion. Andrew Bartlett Signed-off-by: Kamen Mazdrashki <kamenim@samba.org> | |||||
2010-06-12 | s4:dsdb Simplfy match of objectclass in dsdb_schema_set_el_from_ldb_msg | Andrew Bartlett | 1 | -17/+4 | |
There is no need to do a full ldb_match_msg() for a simple case insensitive string. Andrew Bartlett | |||||
2010-06-12 | s4:dsdb Provide a function to convert from DRS prefix maps to the LDB prefixmap | Andrew Bartlett | 1 | -12/+21 | |
This allows us to push a prefixmap directly into the schema we generate in the provision code. Andrew Bartlett | |||||
2010-06-12 | s4:dsdb Add more debugs to help track down failures to parse the prefixmap | Andrew Bartlett | 1 | -5/+20 | |
2010-06-12 | s4:dsdb Put back the reference and set_attributes in dsdb_reference_schema | Andrew Bartlett | 1 | -0/+9 | |
I'm not sure why I removed these in fe3e1af901c970f738bee92baac5d7d4f5736e17 Andrew Bartlett | |||||
2010-06-07 | s4:remove the "validate_update" LDB module - the task is now handled by the ↵ | Matthias Dieter Wallnöfer | 1 | -13/+0 | |
far more complete "objectclass_attrs" LDB module | |||||
2010-05-18 | s3: Remove use of iconv_convenience. | Jelmer Vernooij | 2 | -4/+1 | |
2010-05-18 | Finish removal of iconv_convenience in public API's. | Jelmer Vernooij | 4 | -34/+21 | |
2010-05-03 | Replaced DS_FLAG_ATTR_IS_CRITICAL with SCHEMA_FLAG_ATTR_IS_CRITICAL. | Nadezhda Ivanova | 1 | -1/+1 | |
2010-05-03 | Added a function to check if an attribute can belong to a filtered replica. | Nadezhda Ivanova | 1 | -0/+110 | |
2010-04-29 | s4/dsdb: schemaInfo revision may be 0 | Kamen Mazdrashki | 1 | -5/+1 | |
In case schemaInfo value is still not set, WinAD supplies schemaInfo blob with revision = 0 and GUID_ZERO |