summaryrefslogtreecommitdiffstats
path: root/source4/dsdb/schema
Commit message (Collapse)AuthorAgeFilesLines
* s4-dsdb: added dn_format attribute of a dsdb_attributeAndrew Tridgell2011-08-042-2/+14
| | | | | | | this is faster than string comparisons during searches at runtime Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
* s4-dsdb: setup a one_way_link attribute on schema attributesAndrew Tridgell2011-08-042-0/+30
| | | | | | | this allows us to quickly determine if a DN is a one way link Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
* update/add my copyrightMatthieu Patou2011-07-211-0/+1
|
* s4-schema: add systemFlags to dsdb classes objectsMatthieu Patou2011-07-212-0/+2
|
* dsdb: fixed special case of zero NTTIMEAndrew Tridgell2011-07-131-0/+20
| | | | | | we can't convert 0 NTTIME via a unix time_t Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-schema: avoid segfaulting if id3.guid is NULLMatthieu Patou2011-06-221-2/+1
|
* s4-dsdb: don't add zero GUID to BINARY_DNAndrew Tridgell2011-06-221-9/+11
| | | | | | | When converting from DRS to ldb format for a BINARY_DN, don't add the GUID extended DN element if the GUID is all zeros. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: if we don't have a remote schema, then use the local oneAndrew Tridgell2011-06-171-2/+8
| | | | | this allows the use of drsuapi_to_ldb() on all attributes for the local database
* s4:schema_convert_to_ol.c - fix memory contextsMatthias Dieter Wallnöfer2011-06-091-3/+13
| | | | | | | | - Add more "mem_ctx" free functions on error cases - Steal the "out" string directly onto the LDB context to be able to free the local "mem_ctx" Reviewed-by: Tridge
* s4:dsdb/schema_convert_to_ol.c - quiet enum warningMatthias Dieter Wallnöfer2011-06-091-0/+9
| | | | | | Introduce a error message when choosing wrong targets. Reviewed-by: Tridge
* dsdb:schema/schema_syntax.c - correctly check error code of ↵Matthias Dieter Wallnöfer2011-04-071-2/+1
| | | | | | | | "ldb_string_utc_to_time" This one doesn't set ERRNO. An error happens if the result is "0". Reviewed-by: abartlet
* dsdb:schema/schema_syntax.c - add some empty value checks on validate functionsMatthias Dieter Wallnöfer2011-04-071-0/+9
| | | | | | They are needed since the check in "ldb_msg_sanity_check" will be removed. Reviewed-by: abartlet
* Ensure convert_string_XXX is always called with a valid converted_size pointer.Jeremy Allison2011-03-291-2/+4
| | | | | | | Preparation for cleaning up this API. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Mar 29 21:01:49 CEST 2011 on sn-devel-104
* charcnv: removed the allow_badcharcnv and allow_bad_conv options to ↵Andrew Tridgell2011-03-241-5/+5
| | | | | | | | | convert_string*() we shouldn't accept bad multi-byte strings, it just hides problems Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Mar 24 01:47:26 CET 2011 on sn-devel-104
* ldb: use #include <ldb.h> for ldbAndrew Tridgell2011-02-107-10/+10
| | | | | | | | thi ensures we are using the header corresponding to the version of ldb we're linking against. Otherwise we could use the system ldb for link and the in-tree one for include Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4:dsdb/schema/schema_* - adaptions needed for removed "const" on OIDsMatthias Dieter Wallnöfer2010-12-212-2/+5
|
* s4-dsdb_schema: Copy info needed for Schema refresh in dsdb_schema_copy_shallowKamen Mazdrashki2010-12-181-0/+4
| | | | | | | | Just 'refresh_fn' and 'loaded_from_module' are copied. I left 'reload_seq_number' set to 0 intentionally, so that this Schema cache will looks like a very old one to ,refresh_fn'. This way, if this shallow copy is attached to LDB, it will be refreshed as soon as possible by 'refresh_fn'.
* s4-dsdb_schema: Handle remote ATTIDs based on msDs-IntId valueKamen Mazdrashki2010-12-151-4/+17
| | | | | If we get such an msDs-IntId value, then we should just use it, there is no mapping available for such values
* s4-schema_syntax: Log error message when ↵Kamen Mazdrashki2010-12-151-1/+5
| | | | | | | _dsdb_syntax_OID_oid_drsuapi_to_ldb() fails I haven't found a way to test this function during replication so far, but when I do, it will be useful to notice this error in the log file
* s4-dsdb_schema: We need base_dn in Schema's shallow copy tooKamen Mazdrashki2010-12-151-1/+7
|
* s4-schema_syntax: We should use make_ATTID function when converting ↵Kamen Mazdrashki2010-12-151-1/+1
| | | | | | | | remote-ATTID to local one We may have no prefix for the remote ATTID (remote OID strictly speaking) So this is the place for us to update our local prefixMap adding a prefix for the numeric OID we've recived
* s4-schema_syntax: Use remote prefixMap to map remote ATTID to local oneKamen Mazdrashki2010-12-151-5/+13
| | | | | | | | in dsdb_attribute_drsuapi_to_ldb() function. drsuapi_DsReplicaAttribute *in parameter come from remote DC so we can't rely on in->attid to map it directly to an dsdb_attribute in our local schema cache
* s4-dsdb_schema: Seize using global_schema when referencing new schema for an LDBKamen Mazdrashki2010-12-151-0/+6
| | | | | | | | | | | Without this change, when a schema is set to ldb, the effect is that dsdb_get_schema() returns global_schema preferably. Thus we end up with two schemas in effect: - global one, which is the old one and it is still used everywhere - new one, which is just cached in ldb, but can't be used, as there is no way to access it
* s4-smbtorture: Make test names lowercase and dot-separated.Jelmer Vernooij2010-12-111-1/+1
| | | | | | | | This is consistent with the test names used by selftest, should make the names less confusing and easier to integrate with other tools. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Dec 11 04:16:13 CET 2010 on sn-devel-104
* s4-dsdb/syntax: Map remote ATTIDs for Class OID syntaxKamen Mazdrashki2010-12-021-0/+6
| | | | | Autobuild-User: Kamen Mazdrashki <kamenim@samba.org> Autobuild-Date: Thu Dec 2 18:47:59 CET 2010 on sn-devel-104
* s4-dsdb_syntax: Be a little bit more chatty when we can't an ATTID in our cacheKamen Mazdrashki2010-12-021-1/+3
|
* s4-dsdb/syntax: Map remote ATTIDs for Attribute OID syntaxKamen Mazdrashki2010-12-011-0/+6
|
* s4-dsdb/syntax: Implement Remote-ATTID to Local-ATTID mapping functionKamen Mazdrashki2010-12-011-0/+35
|
* s4-dsdb/schema: Add Schema shallow copy functionKamen Mazdrashki2010-12-011-0/+57
|
* s4-dsdb/prefixMap: Add prefixMap shallow copy functionKamen Mazdrashki2010-12-011-0/+17
|
* 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
|