summaryrefslogtreecommitdiffstats
path: root/source4/dsdb/schema
Commit message (Collapse)AuthorAgeFilesLines
* Pull in all the schema information during DRS schema fetchAndrew Bartlett2009-03-041-9/+38
| | | | | | | This includes things such as allowed attributes, which were not populated into the schema structure before. Andrew Bartlett
* s4: Use same function signature for convert_* as s3.Jelmer Vernooij2009-03-012-19/+12
|
* Add allow_badcharcnv argument to all conversion function, forJelmer Vernooij2009-03-012-5/+5
| | | | consistency with Samba 3.
* Fix headers, ldb_includes.h is a private header,Simo Sorce2009-02-231-0/+1
| | | | do not reference it from ldb.h
* s4:dsdb/schema: s/class/sclassStefan Metzmacher2009-02-022-31/+32
| | | | metze
* Fix all other modules to use ldb_module.h instead of ldb_private.hSimo Sorce2009-01-301-3/+1
| | | | The only 2 modules escaping the rule so far are rootdse and partitions
* Fix more compiler warnings in various places.Jelmer Vernooij2008-12-232-25/+25
|
* Treat DN+STring as a binary string for nowAndrew Bartlett2008-12-201-4/+4
| | | | | | | This matches the way we work with DN+Binary. We need this for the OpenLDAP backend. Andrew Bartlett
* Now store the GUID and SID from a DN over DRSUAPI into ldb.Andrew Bartlett2008-12-203-42/+161
| | | | | | | Until the extended DN work was compleated, there was no way to store the additional metadata. Andrew Bartlett
* Don't treat the DN+binary syntax as a DN.Andrew Bartlett2008-12-021-2/+2
| | | | This should fix the OpenLDAP backend
* s4:dsdb/schema: add a function to generate the "extendedClassInfo" valuesStefan Metzmacher2008-11-161-4/+44
| | | | metze
* s4:dsdb/schema: add a function to generate the "extendedAttributeInfo" valuesStefan Metzmacher2008-11-161-7/+83
| | | | metze
* s4:dsdb/schema: use pointers for rangeLower and rangeUpper.Stefan Metzmacher2008-11-162-6/+41
| | | | | | | This makes clear there's an value stored in the schema, as they can be '0'. metze
* s4:dsdb/schema: we don't need to use find_syntax_map_by_ad_oid() as the ↵Stefan Metzmacher2008-11-161-3/+1
| | | | | | syntax is already known metze
* s4: dsdb/schema: fix the equality and comment of DN+String syntaxStefan Metzmacher2008-11-081-3/+2
| | | | metze
* Remove unused include param/param.h.Jelmer Vernooij2008-10-241-1/+0
|
* Remove iconv_convenience argument from convert_string{,talloc}() butJelmer Vernooij2008-10-242-5/+6
| | | | make them wrappers around convert_string{,talloc}_convenience().
* Move charset library to top level.Jelmer Vernooij2008-10-241-1/+1
|
* Add TALLOC_CTX pointer to strhex_to_data_blob for consistency with SambaJelmer Vernooij2008-10-182-6/+3
| | | | 3.
* Fix include paths to new location of libutil.Jelmer Vernooij2008-10-112-2/+2
|
* Remove DESCRIPTION from generated schema lines.Andrew Bartlett2008-10-061-20/+1
| | | | | | | This is not permitted in the AD aggregate schema, and more trouble than it is worth in the OpenLDAP schema due to escaping issues. Andrew Bartlett
* Fix Domain Trust creation with Windows 2008 (and many other tools)Andrew Bartlett2008-10-061-1/+5
| | | | | | | | | | | A dITConentRules attribute (unlike objectClasses) must not contain a 'SUP'. The ADSI layer in Windows would download the whole schema, and validate it. Thanks to the team at Microsoft for very long debugging session to find this. Andrew Bartlett
* Merge ldb_search() and ldb_search_exp_fmt() into a simgle function.Simo Sorce2008-09-232-19/+18
| | | | | The previous ldb_search() interface made it way too easy to leak results, and being able to use a printf-like expression turns to be really useful.
* Fix failure to load the schema on read-only DB.Andrew Bartlett2008-09-121-23/+13
| | | | | | | | This also tries to simplify the logic in the schema -> @ATTRIBUTES and @INDEXES code. Andrew Bartlett (This used to be commit a383b8bf88a5681f9c9c6839ba645c872a735051)
* Remove the complexity of transactions from the attributes-setting code.Andrew Bartlett2008-09-111-16/+1
| | | | | | | | | | I think it is just too complex and error prone to init and cancel transactions during the module init code. Instead, this isn't prone to races as it will always achieve a steady state (eventually), and most cases will never do the write. Andrew Bartlett (This used to be commit d60977cc7f89f89f34187f310c91d1ab7db6ccf2)
* Make cn=aggregate output less pretty, by more like Win2008.Andrew Bartlett2008-09-111-2/+2
| | | | | | | | I'm not sure if this fixes bug #5713, as this is not consistantly reproducably on my equipment. Andrew Bartlett (This used to be commit 02d6645efc84179efd652dd29ab32f62ae310147)
* Fix reversed test trying to fix bug #5713Andrew Bartlett2008-09-091-1/+1
| | | | | | | | | | | (It instead ensured that only 'top' had a SUP keyword) This clearly shows that 937b466266256d26d02cf8d48e72a26272fe8627 was not a full or correct fix, but despite this I can no longer reproduce the issue. Further investigation is required. Andrew Bartlett (This used to be commit 95a9e9b6b84866cd300b1d19915627c6718b4dde)
* Fix bug #5713 by correcting the generated schema.Andrew Bartlett2008-09-091-1/+1
| | | | | | | | | | | | | | | | | | | This bug is entitled 'Schema patch breaks interoperability with Microsoft MMC consoles.', and it does so very spectacularly. The issue is that we would include an entry: objectClasses: ( 2.5.6.0 NAME 'top' SUP top ABSTRACT.. The MMC Active Directory Users and Computers snap in presumably objected to the 'loop' this would present. The fixed entry is: objectClasses: ( 2.5.6.0 NAME 'top' ABSTRACT Thanks to Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> for his persistance in getting me to look at this. Andrew Bartlett (This used to be commit 937b466266256d26d02cf8d48e72a26272fe8627)
* Stop every ldb startup doing a write to the database.Andrew Bartlett2008-08-211-0/+7
| | | | | | | | | Something in the search stack adds a distinguisedName record, which isn't in the message we generate. So we compare, fail and rewrite the record - every time ldb starts up... Andrew Bartlett (This used to be commit 44775d1ed4a4b8edc66a06e2b3710aba6a0dd019)
* Set both attributes and indexes into the database on schema load.Andrew Bartlett2008-08-211-18/+142
| | | | | | | | | This ensures that a rudementary schema is always present (for bootstrapping), and that the indexes are maintained equal to the schema (rather than hard-coded). Andrew Bartlett (This used to be commit 747d683b0d92c3b1cde67245d514977a2c87dc44)
* Apply attributes (and their syntax) from the schema into ldbAndrew Bartlett2008-08-201-0/+49
| | | | | | | | This changes the @ATTRIBUTES record to be for bootstrapping only, before we find the schema. Andrew Bartlett (This used to be commit 358477fcc041d5fb2e6ac5641c2f899cc49cfb69)
* Split schema_init.c into smaller bits.Andrew Bartlett2008-08-203-545/+598
| | | | | | | This should make schema manipulation a little easier to follow. Andrew Bartlett (This used to be commit 300ed83526e75d834bd23ddd1c1c26ebe2555e0f)
* Note the ldb syntax for attribute syntaxes in the table.Andrew Bartlett2008-08-182-20/+28
| | | | | | | | | | | This includes additional Samba-specific syntaxes made available from the ldif_handlers code. This commit also changes some table to use #defines, to ensure consistancy in other parts of the code. Andrew Bartlett (This used to be commit e26a5efd9a580ed3728e1f449e367b1cd4a73b5f)
* Fix segfaults when loading the schema fails.Andrew Bartlett2008-08-181-14/+13
| | | | (This used to be commit 9643db1a011edc95aa903908cec708b3a3566e71)
* Merge the two attribute syntax tables.Andrew Bartlett2008-08-185-181/+74
| | | | | | | | | | | | This merges the table once found in the oLschema2ldif tool (and moved many times) with the table used for DRSUAPI. The OpenLDAP schema map has been updated, to ensure that despite a number of attributes being declared as OIDs, they are actually used as strings (as they are actually LDAP class/attribute names). Andrew Bartlett (This used to be commit 61f2958c84beeedcf369ccdc02afed0c8055b108)
* Generate the subSchema in cn=AggregateAndrew Bartlett2008-08-156-228/+555
| | | | | | | | | | | | | | | This reads the schema from the in-memory structure, when the magic attributes are requested. The code is a modified version of that used in the ad2oLschema tool (now shared). The schema_fsmo module handles the insertion of the generated result. As such, this commit also removes these entries from the setup/schema.ldif Metze's previous stub of this functionality is also removed. Andrew Bartlett (This used to be commit c7c32ec7b42bdf0f7b669644516438c71b364e60)
* Fix warnings in new prefixMap codeAndrew Bartlett2008-07-281-2/+3
| | | | (This used to be commit b8770a4fd8408473593fa4c6600bce056183958d)
* dsdb/schema: make more clear where we create the value for the new prefix ↵Stefan Metzmacher2008-07-261-0/+6
| | | | | | | mapping metze (This used to be commit c92eb8b776c17f12622837daeb1786862f380269)
* dsdb/schema: dsdb_write_prefixes_to_ldb() should do the reverse of ↵Stefan Metzmacher2008-07-261-52/+44
| | | | | | | dsdb_read_prefixes_to_ldb() metze (This used to be commit 34ea9d4a0b1270a27412bf939d7e897a5d68d0a6)
* Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-localAndrew Bartlett2008-07-251-36/+257
|\ | | | | | | (This used to be commit b12dd8ee5443ebfc204d1684f541d68ffb351197)
| * dsdb_create_prefix_mapping() implementation checks for existing prefix ↵Anatoliy Atanasov2008-07-241-36/+257
| | | | | | | | | | | | | | maping in ldb. if one not found it creates a mapping for it and updates the prefixMap schema attribute in ldb. (This used to be commit bbe895db7144b192981fad9ab6bbd3ebacb8d299)
* | Try to avoid a memory leak if we re-set the global schemaAndrew Bartlett2008-07-251-0/+9
|/ | | | | | | | However, try also not to pull a schema out from under a running ldb session. Andrew Bartlett (This used to be commit 7cf9b9dd0bb35835a7c6e9897ea99951a33c63c7)
* Use common code to fill in allowedAttributes in kludge_acl.Andrew Bartlett2008-07-112-3/+13
| | | | | | | This code is now in common with ad2oLschema. Andrew Bartlett (This used to be commit 0a797388ca442c3ad4809888897b1c63b65a7fdf)
* Make ad2oLschema even simpler, by moving the heavy work into dsdb.Andrew Bartlett2008-07-102-3/+312
| | | | | | | | This will allow the kludge_acl and schema code to leverage the same work. (We might even get schema validation soon! :-) Andrew Bartlett (This used to be commit cecd04ce1f8ce2af2fb654b3abc1499092405d60)
* Move ad2oLschema and oLschema2ldif into Samba4, out of LDBAndrew Bartlett2008-07-021-0/+108
| | | | | | | | | | LDB does not know about nor process the AD schema, so it makes no sense to have this tool there. I've been changing it anyway, to use a common schema manipulation library, and will enhance these links in the future. Andrew Bartlett (This used to be commit c7704805b9a3541e4c8768278c8289b0aa6ed5e3)
* Fill in the auxiliary classes into the dsdb_schema.Andrew Bartlett2008-07-021-3/+2
| | | | | Andrew Bartlett (This used to be commit 615564b3daec0ffe17d05599b7ec8688619f5c65)
* schema_fsmo: prepare auto allocation of schema oid prefixesStefan Metzmacher2008-07-011-0/+23
| | | | | | | | This implements the logic in the schema_fsmo_add() function, but it only calls a dummy dsdb_create_prefix_mapping() yet. metze (This used to be commit 9018b85e834de6714a78304ba1c7018838e30a61)
* schema_fsmo: move fsmo info into struct dsdb_schemaStefan Metzmacher2008-07-012-0/+11
| | | | | metze (This used to be commit 8538d305c803268c712a90879f29a2a74ba0ef03)
* Make Samba4 pass the NET-API-BECOMEDC test against Win2k3 (again).Andrew Bartlett2008-03-061-6/+13
| | | | | | | | | | | | | | | | | To make Samba4, using the python provision system, pass this test required some major rework. Untested code is broken code, and some of the refactoring for a seperate provision test (which also now passes) broke things. Similarly, the iconv work has compiled, but these codepaths have never been run (NULL pointer de-reference). In working to use a local, rather than global, loadparm context, and to support using a target directory, a few things needed to be reworked, particularly around path handling. Andrew Bartlett (This used to be commit 1169e8d7bee20477b0efbfea3534ac63c83fb3d6)
* Fix accidently introduced bug - thanks metze.Jelmer Vernooij2008-02-191-1/+1
| | | | (This used to be commit d0dfdab85ac751c62b0a6d6e6b1ff128940098ed)