Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
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 | |||||
2010-04-29 | s4/dsdb: remove unused dsdb_schema_info_create() function | Kamen Mazdrashki | 1 | -35/+0 | |
2010-04-29 | s4/dsdb: Update Schema cache with updated schemaInfo value | Kamen Mazdrashki | 1 | -4/+9 | |
Error checking is simplified and my leave leeks. I did it this way to make code more readable, and if we get error in those lines, it will be WERR_NOMEM in which case we are in a much deeper troubles than delayed freeing of few bytes. | |||||
2010-04-29 | s4/samldb: Create initial schemaInfo value if it doesn't exists yet | Kamen Mazdrashki | 1 | -7/+30 | |
2010-04-29 | s4/dsdb: Use default schemaInfo value when no such value is given | Kamen Mazdrashki | 3 | -16/+25 | |
Having no value for schemaInfo is totally OK as it turns out. In such cases, we should use a default value with all fields set to 0. | |||||
2010-04-29 | Revert "s4/dsdb: Set schemaInfo attribute value during provisioning" | Kamen Mazdrashki | 1 | -49/+0 | |
This reverts commit 8149094eddebd9a0e8b7c123c2ed54d00164bb26. Windows implementation does not set schemaInfo attribute value until first Schema update request. This way, newly provisioned forest returns no schemaInfo value. I think it won't be bad for us to have this value preset, but I want to mimic Win AD behavior as close as possible. | |||||
2010-04-22 | s4-dsdb: added dsdb_get_extended_dn_sid() | Andrew Tridgell | 1 | -12/+5 | |
This will be used by the RODC code Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> | |||||
2010-04-21 | s4-schema: allow revision numbers of zero | Andrew Tridgell | 1 | -6/+3 | |
w2k8r2 sends a revision of zero in the initial schema replication during a net vampire Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> | |||||
2010-04-13 | Revert "s4:prefer "samdb_*_dn" basedn calls over the "ldb_get_*_dn" functions" | Matthias Dieter Wallnöfer | 2 | -4/+4 | |
We should use the "ldb_get_*_basedn" calls since they are available in the LDB library. | |||||
2010-04-10 | s4:dsdb Don't use the permissive modify control on schemaInfo updates | Andrew Bartlett | 1 | -2/+2 | |
The use of 'replace' is enough to wipe out the old value, whatever it is, we don't need to set 'permissive modify' too. Additionally, this seems to be causing trouble for the OpenLDAP backend Andrew Bartlett | |||||
2010-04-09 | s4/dsdb: Set schemaInfo attribute value during provisioning | Kamen Mazdrashki | 1 | -0/+49 | |
After provisioning new Forest, schemaInfo should be set to a value with revision=1 and current invocation_id | |||||
2010-04-09 | s4/dsdb: split writing of schemaInfo blob in two parts | Kamen Mazdrashki | 1 | -21/+46 | |
ldb_msg preparation is moved into separate function so that it can be used for implementing schemaInfo updates both on module stack (dsdb_module_... functions) and directly on ldb_context | |||||
2010-04-09 | s4/dsdb: Let caller to control if valid invocationId is critical or ↵ | Kamen Mazdrashki | 3 | -3/+8 | |
zero-guid is acceptable | |||||
2010-04-09 | s4/dsdb: Use dsdb_schema_info object to create default schemaInfo values | Kamen Mazdrashki | 2 | -7/+22 | |
2010-04-09 | s4/dsdb: Use dsdb_schema_info object to verify schema_info blobs | Kamen Mazdrashki | 2 | -21/+20 | |
2010-04-09 | s4/dsdb: dsdb_schema_info object implementation | Kamen Mazdrashki | 1 | -0/+383 | |
2010-04-09 | s4/dsdb: Define dsdb representation for schemaInfo attribute | Kamen Mazdrashki | 1 | -0/+8 | |
2010-03-22 | s4:dsdb Add a shortcut sequence number for schema reloads | Andrew Bartlett | 1 | -0/+2 | |
This uses the ldb sequence number, in a hope to detect an unchanged schema quicker. Andrew Bartlett | |||||
2010-03-22 | s4:dsdb Rework schema loading and add schema reloading | Andrew Bartlett | 1 | -25/+55 | |
This commit reworks Samba4's schema loading code to detect when it needs to reload the schema. This is done by watching the @REPLCHANGED special DN. The reload happens by means of a callback, which is only set when the schema is loaded from the ldb - not when loaded from an LDIF file or DRS. We also rework the global schema handling - instead of storing the pointer to the global schema in each ldb, we store a flag indicating that the global schema should be returned at run time. This makes it much easier to switch to a new global schema. Andrew Bartlett | |||||
2010-03-22 | s4:schema Expand the schema structure | Andrew Bartlett | 2 | -0/+11 | |
We now store the location of the schema in the schema, and provide hooks for a future schema reloading mechanism. Andrew Bartlett | |||||
2010-03-16 | s4:dsdb Change dsdb_get_schema() callers to use new talloc argument | Andrew Bartlett | 2 | -2/+2 | |
This choses an appropriate talloc context to attach the schema too, long enough lived to ensure it does not go away before the operation compleates. Andrew Bartlett | |||||
2010-03-16 | s4:dsdb Add a memory context for dsdb_get_schema() | Andrew Bartlett | 1 | -3/+9 | |
When specified, we talloc_reference onto this context to ensure that pointers found in it are valid for the life of the objects they are placed into. (Such as the string form of LDAP attributes). Andrew Bartlett | |||||
2010-03-07 | s4:schema - Change also here counters to "unsigned" where needed | Matthias Dieter Wallnöfer | 7 | -26/+27 | |
Counters which are used in the way "for (i = 0; array[i] != NULL; i++)" I modified to "unsigned" since for sure we don't want to have negative array indexes there. | |||||
2010-03-07 | s4:schema_syntax.c - Change also here counters to "unsigned" where needed | Matthias Dieter Wallnöfer | 1 | -44/+44 | |
Counters which are used in the way "for (i = 0; array[i] != NULL; i++)" I modified to "unsigned" since for sure we don't want to have negative array indexes there. There were many counter variables typed "uint32_t". This isn't fully correct since those count LDB objects. The amount is saved in a "num_*" variable which is "unsigned" without a bitlength specification. Therefore change also these counters to be plain "unsigned". | |||||
2010-02-26 | s4:dsdb/schema: fix validation of DNs | Stefan Metzmacher | 1 | -1/+0 | |
ldb_dn_extended_filter() removes all but the listed components, I didn't noticed that when writting the code. Doing a ldb_dn_remove_extended_components(dn2) is wrong. This was hidden by some bugs in the ldb_dn code. metze | |||||
2010-02-16 | s4-dsdb: change samdb_replace() to dsdb_replace() and allow for dsdb_flags | Andrew Tridgell | 2 | -4/+5 | |
This allows for controls to be added easily where they are needed. | |||||
2010-02-13 | s4-dsdb: use TYPESAFE_QSORT() in dsdb code | Andrew Tridgell | 2 | -23/+12 | |
2010-01-13 | s4:dsdb/schema: add dsdb_syntax_OID_validate_ldb() | Stefan Metzmacher | 1 | -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 | |||||
2010-01-13 | s4:dsdb/schema: add dsdb_syntax_DN_STRING_validate_ldb() | Stefan Metzmacher | 1 | -1/+48 | |
metze | |||||
2010-01-13 | s4:dsdb/schema: add dsdb_syntax_DN_BINARY_validate_ldb() | Stefan Metzmacher | 1 | -2/+49 | |
metze | |||||
2010-01-13 | s4:dsdb/schema: add dsdb_syntax_DN_validate_ldb() | Stefan Metzmacher | 1 | -1/+139 | |
metze | |||||
2010-01-13 | s4:dsdb/schema: add dsdb_syntax_PRESENTATION_ADDRESS_validate_ldb() | Stefan Metzmacher | 1 | -1/+12 | |
metze | |||||
2010-01-13 | s4:dsdb/schema: add dsdb_syntax_UNICODE_validate_ldb() | Stefan Metzmacher | 1 | -1/+69 | |
metze | |||||
2010-01-13 | s4:dsdb/schema: add dsdb_syntax_DATA_BLOB_validate_ldb() | Stefan Metzmacher | 1 | -8/+61 | |
metze | |||||
2010-01-13 | s4:dsdb/schema: add dsdb_syntax_NTTIME_validate_ldb() | Stefan Metzmacher | 1 | -1/+37 | |
metze | |||||
2010-01-13 | s4:dsdb/schema: add dsdb_syntax_NTTIME_UTC_validate_ldb() | Stefan Metzmacher | 1 | -1/+49 | |
metze | |||||
2010-01-13 | s4:dsdb/schema: add dsdb_syntax_INT64_validate_ldb() | Stefan Metzmacher | 1 | -1/+47 | |
metze | |||||
2010-01-13 | s4:dsdb/schema: add dsdb_syntax_INT32_validate_ldb() | Stefan Metzmacher | 1 | -1/+48 | |
metze | |||||
2010-01-13 | s4:dsdb/schema: add dsdb_syntax_BOOL_validate_ldb() | Stefan Metzmacher | 1 | -1/+30 | |
metze | |||||
2010-01-13 | s4:dsdb/schema: add inftrastructure for dsdb_validate_ldb() | Stefan Metzmacher | 2 | -0/+61 | |
metze | |||||
2010-01-13 | s4:dsdb/schema: add dsdb_syntax_DN_STRING_* wrappers | Stefan Metzmacher | 1 | -2/+30 | |
metze | |||||
2010-01-08 | s4-schema: added some debug for bad attributes | Andrew Tridgell | 1 | -0/+8 | |
2010-01-08 | s4-schema: added generic attributeID conversion functions | Andrew Tridgell | 1 | -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> | |||||
2010-01-08 | s4-schema: added dsdb_attribute_by_lDAPDisplayName_ldb_val | Andrew Tridgell | 1 | -0/+12 | |
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> | |||||
2010-01-08 | s4-schema: make ldb_val to string comparison safer with nul termination | Andrew Tridgell | 1 | -1/+8 | |
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> | |||||
2010-01-08 | s4/dsdb_schema: Load msDS-IntId value separately when loading from LDB | Kamen Mazdrashki | 1 | -0/+3 | |
This way we have consistent behavior when loading from DRSUAPI and from LDB. |