summaryrefslogtreecommitdiffstats
path: root/source4/dsdb/schema
Commit message (Collapse)AuthorAgeFilesLines
* s4-repl: Propagate remote prefixMap in DRSUAPI data conversion functionsKamen Mazdrashki2010-11-111-0/+2
|
* s4-dsdb_syntax: Warning message that we can't find requested ATTID in Schema ↵Kamen Mazdrashki2010-11-111-0/+1
| | | | Cache
* s4-prefixMap: dsdb_schema_pfm_oid_from_attid() to use const prefixMapKamen Mazdrashki2010-11-111-1/+2
| | | | It is not supposed to change supplied prefixMap
* s4-dsdb_syntax: Use remote prefixMap to handle generic cases in ↵Kamen Mazdrashki2010-11-111-2/+7
| | | | drsuapi_to_ldb conversions
* s4-dsdb_syntax: Add remote prefixMap member for dsdb_syntax conversionsKamen Mazdrashki2010-11-112-0/+5
|
* s4:dsdb/schema/schema_filtered.c: make never_in_filtered_attrs static constStefan Metzmacher2010-11-091-1/+2
| | | | metze
* s4:dsdb/schema/schema_filtered.c: use DSDB_SECRET_ATTRIBUTESStefan Metzmacher2010-11-091-11/+1
| | | | metze
* s4-attid: Uppercase ATTID type constantsKamen Mazdrashki2010-11-083-10/+10
| | | | | | | Thanks Metze for noting this! Autobuild-User: Kamen Mazdrashki <kamenim@samba.org> Autobuild-Date: Mon Nov 8 23:06:41 UTC 2010 on sn-devel-104
* s4-dsdb: give the DN on a shema attribute failureAndrew Tridgell2010-11-071-1/+1
|
* s4-dsdb_schema: Use DRSUAPI_ATTID_INVALID instead of 0xFFFFFFFF magic valueKamen Mazdrashki2010-11-012-28/+28
| | | | | Autobuild-User: Kamen Mazdrashki <kamenim@samba.org> Autobuild-Date: Mon Nov 1 00:36:20 UTC 2010 on sn-devel-104
* idl: Use DRSUAPI_ATTID_ prefix instead of DRSUAPI_ATTRIBUTE_ for ATTID valuesKamen Mazdrashki2010-10-311-33/+33
| | | | | Those values are actually ATTID values and such, they are used for ATTIDs for Attributes, Classes and Syntaxes.
* s4-schema_init: we should be able to resolve Syntax OIDs with prefixMap we haveKamen Mazdrashki2010-10-291-3/+3
| | | | | If Syntax OID is not in the prefixMap then we are getting an unknown Attribute Syntax (which we can't handle anyway)
* s4-dsdb_syntax: *_OID_oid_ldb_to_drsuapi() functions should useKamen Mazdrashki2010-10-261-6/+6
| | | | | | | | | | dsdb_schema_pfm_attid_from_oid() instead of dsdb_schema_pfm_make_attid() as those functions are supposed to return ATTIDs only for OIDs we already know about (i.e. are in prefixMap) Autobuild-User: Kamen Mazdrashki <kamenim@samba.org> Autobuild-Date: Tue Oct 26 22:44:36 UTC 2010 on sn-devel-104
* s4-prefixMap: split dsdb_schema_make_attid() function into read-only andKamen Mazdrashki2010-10-261-1/+38
| | | | | | | | | | | read-write functions. dsdb_schema_make_attid() may change prefixMap implicitly and this is not always desired behavior. The problem was that (1) callers had no control on this behavior (2) callers had no way to know wheter prefixMap has been changed which can lead to hard to find bugs like prefixMap is changed in read operation
* s4-prefixmap: Use WERR_NOT_FOUND when OID is not found in current prefixMapKamen Mazdrashki2010-10-262-2/+2
| | | | | | rather than WERR_DS_NO_MSDS_INTID. WERR_DS_NO_MSDS_INTID is intended to be used for msDsIntId attribute values handling
* s4-dsdb_syntax: Setup "String(Case Sensitive)" syntaxKamen Mazdrashki2010-10-221-3/+10
| | | | | | | | | | | | | Currently it is mapped to Octet String LDAP syntax for comparison purposes. According to LDAP rfc we should be using same comparison as Directory String (LDB_SYNTAX_DIRECTORY_STRING), but case sensitive. But according to ms docs binary compare should do the job: http://msdn.microsoft.com/en-us/library/cc223200(v=PROT.10).aspx Autobuild-User: Kamen Mazdrashki <kamenim@samba.org> Autobuild-Date: Fri Oct 22 22:19:50 UTC 2010 on sn-devel-104
* s4-dsdb/schema_syntax: Separate validation for numericoid OID valuesKamen Mazdrashki2010-10-211-3/+47
| | | | | | | | | | | | | This implementation doesn't use prefixMap/Schema to validate numericoid OIDs. We may not have this OID yet, so I see no point checking schema for if we have it. Side effect of using prefixMap/Schema for validating numericoids is that we mistakenly add the OID to the prefixMap. This led to a corrupted prefixMap in LDB. Autobuild-User: Kamen Mazdrashki <kamenim@samba.org> Autobuild-Date: Thu Oct 21 23:32:26 UTC 2010 on sn-devel-104
* s4-dsdb: moved a bunch of fuctions from schema/schema_info_attr.c to ↵Andrew Tridgell2010-10-211-268/+0
| | | | | | | | | | | | | | samdb/ldb_modules/schema_util.c these functions operate on ldb_modules, so they should be in the ldb_modules directory. They also should return ldb errors codes, not WERROR codes, as otherwise the error can be hidden from the ldap caller This re-arrangement fixes a dependency loop in the schema/samdb code. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Pair-Programmed-With: Kamen Mazdrashki <kamenim@samba.org>
* s4-schema_init: Print more info about syntax we fail to recognizeKamen Mazdrashki2010-10-201-2/+4
| | | | | Autobuild-User: Kamen Mazdrashki <kamenim@samba.org> Autobuild-Date: Wed Oct 20 13:54:01 UTC 2010 on sn-devel-104
* s4:dsdb/schema/schema_init.c - remove a duplicated "talloc_free"Matthias Dieter Wallnöfer2010-10-191-1/+0
|
* s4:dsdb - remove "samdb_result_uint", "samdb_result_int64", ↵Matthias Dieter Wallnöfer2010-10-151-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>
* torture/becomedc: Add test for global schema, use samdb_connect().Jelmer Vernooij2010-10-121-1/+6
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Tue Oct 12 18:35:33 UTC 2010 on sn-devel-104
* dsdb/schema: Move some dsdb_dn functions that are schema-specific.Jelmer Vernooij2010-10-112-0/+103
|
* s4-dsdb: Make dsdb_setup_sorted_accessors() publicKamen Mazdrashki2010-10-101-2/+2
| | | | We are going to need it while converting DRS schema.
* s4-dsdb-schema_prefixmap: return WERR_DS_NO_ATTRIBUTE_OR_VALUE when ATTID is ↵Kamen Mazdrashki2010-09-211-1/+1
| | | | | | not found rather than WERR_INTERNAL_ERROR - it is not internal error!
* s4-dsdb-schema_prefixmap: Print debug message when internal failure occursKamen Mazdrashki2010-09-211-0/+5
|
* s4-schema: Helper func to compare schemaInfo signituresKamen Mazdrashki2010-09-171-0/+41
|
* s4-schema: use dsdb_schema_info_blob_is_valid() to verify schemaInfo blobKamen Mazdrashki2010-09-171-9/+6
| | | | instead of parsing it.
* s4-prefixMap: use dsdb_schema_info_blob_is_valid() for schemaInfo blob ↵Kamen Mazdrashki2010-09-171-4/+2
| | | | | | validation This fixes a leaking dsdb_schema_info object also.
* s4-dsdb: Add dsdb_schema_info_blob_is_valid() to verify schemaInfo bloblsKamen Mazdrashki2010-09-171-10/+24
|
* s4:cosmetic - the SID attribute is called objectSid - not objectSIDMatthias Dieter Wallnöfer2010-09-131-1/+1
|
* s4-drs: ATTIDs for deleted attributes should be based on msDs-IntId value if ↵Kamen Mazdrashki2010-08-191-2/+2
| | | | it exists
* s4-dsdb: No need for dsdb_syntax_one_DN_drsuapi_to_ldb() to be publicKamen Mazdrashki2010-08-191-3/+3
| | | | It is intended to be used in schema_syntax.c module
* s4-dsdb-syntax: ATTID should be msDs-IntId value for the attributeSchema objectKamen Mazdrashki2010-08-192-14/+55
| | | | | in case object replicated is not in Schema NC and attributeSchema object has msDs-IntId attribute value set
* s4: fix few comment typosKamen Mazdrashki2010-08-191-1/+1
|
* s4-schema_syntax.c: Fix white spaces and alignmentKamen Mazdrashki2010-08-191-55/+56
|
* s4-dsdb: Use dsdb_syntax_ctx in *_drsuapi_to_ldb functionsKamen Mazdrashki2010-08-193-56/+40
|
* s4-dsdb: Use dsdb_syntax_ctx in *_ldb_to_drsuapi functionsKamen Mazdrashki2010-08-193-54/+42
|
* s4-dsdb: Use dsdb_syntax_ctx in *_validate_ldb functionsKamen Mazdrashki2010-08-192-61/+36
|
* s4-dsdb: Add context structure for dsdb_syntax conversion functionsKamen Mazdrashki2010-08-192-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.
* s4-dsdb: fix attributes_by_msDS_IntId index sortingKamen Mazdrashki2010-08-111-1/+5
|
* s4-schema: More verbose error log when subClassOf is not found in schemaKamen Mazdrashki2010-08-031-1/+3
| | | | | | Error message show failing classSchema object but not the specific value for the failure, which makes diagnostics by log files really hard.
* s4: fix comment typosKamen Mazdrashki2010-08-031-3/+3
|
* s4-dsdb: use ldb_msg_normalize() in source4/dsdb/schema/schema_set.cKamen Mazdrashki2010-07-191-5/+4
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb/schema/schema_set.c: fix trailing spaces and comments spellingKamen Mazdrashki2010-07-191-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>
* s4-dsdb: use ldb_msg_difference() in source4/dsdb/schema/schema_set.cKamen Mazdrashki2010-07-191-2/+10
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: use ldb_operr() in the dsdb codeAndrew Tridgell2010-07-072-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.
* s4:schema_set.c - Fix a commentMatthias Dieter Wallnöfer2010-07-031-1/+2
|
* s4:dsdb_schema_set_attributes - remove unneeded filter criteriasMatthias Dieter Wallnöfer2010-07-031-2/+4
| | | | | We already choose the right entry by specifying the right basedn with scope "LDB_SCOPE_BASE".
* s4:schema_set.c - fix typoMatthias Dieter Wallnöfer2010-07-031-1/+3
|