summaryrefslogtreecommitdiffstats
path: root/source4
Commit message (Collapse)AuthorAgeFilesLines
...
* s4-drs: set flag to indicate that we do support linked attributesAndrew Tridgell2010-01-021-4/+1
|
* s4-ldb: show the error code as well as errstrAndrew Tridgell2010-01-021-2/+3
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: fixed valgrind error in replmd modifyAndrew Tridgell2010-01-021-1/+1
| | | | | | | We are using the values from a search result, so we need to steal them onto the msg before we free the search results Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-drs: don't try to remove backlinks directlyAndrew Tridgell2010-01-021-1/+2
| | | | | | | backlinks need to be removed as a side effect of removing the forward link Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-drs: isRecycled only exists in FL W2K8-R2Andrew Tridgell2010-01-021-0/+13
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-drs: use DSDB_FLAG_OWN_MODULEAndrew Tridgell2010-01-021-3/+3
| | | | | | | We need DRS driven replication changes to update replPropertyMetaData, so it needs to call into the repl_meta_data module logic Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-drs: update comment to refect only forward link in this fnAndrew Tridgell2010-01-021-2/+4
| | | | | | This function only update forward links Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-drs: fixed typo for uSNCreatedAndrew Tridgell2010-01-021-1/+1
| | | | | | This broke DRS replication from samba to windows Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-drs: use dsdb_module_guid_by_dn()Andrew Tridgell2010-01-021-1/+1
| | | | We should not be going to the top of the module stack
* s4-drs: cope better with NULL GUIDS from DRSAndrew Tridgell2010-01-021-11/+25
| | | | | | | | It is valid to get a NULL GUID over DRS for a deleted forward link. We need to match by DN if possible when seeing if we should update an existing link. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-drs: give an error message in repl_meta_data if we don't get a partition ↵Andrew Tridgell2010-01-021-0/+1
| | | | control
* s4-drs: treat a zero GUID as not present in replmd_add_fix_laAndrew Tridgell2010-01-021-3/+6
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-drs: update highwatermark after successfully encoding the objectAndrew Tridgell2010-01-021-8/+8
|
* s4-drs: send all linked attributes at the end of a replication cycleAndrew Tridgell2010-01-021-3/+7
| | | | This ensures that a link is not seen before the object it points to
* s4-drs: use the extended linearized form for DRS replicationAndrew Tridgell2010-01-021-5/+4
| | | | | | We were sending zero GUIDs. Not good! Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-drs: implemented sorting functions based on replication flagsAndrew Tridgell2010-01-021-2/+43
| | | | | I think we probably have more work to do on the sort order, but this brings us a bit closer.
* s4-drs: we are doing the sorting for getncchanges in the app code nowAndrew Tridgell2010-01-022-22/+0
| | | | | | | the sorting is quite delicate, and easier to get right in the getncchanges code Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-drs: give a reason when an AddEntry commit failsAndrew Tridgell2010-01-021-1/+2
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-schema: don't fill in the extended DN with a zero GUIDAndrew Tridgell2010-01-021-11/+12
| | | | | | sometimes windows sends us a zero GUID in a DRS DN. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* sd-schema: order DRS classes on the wire in reverse orderAndrew Tridgell2010-01-021-1/+4
| | | | | windows sends objectclasses in DRS in the opposite order to what LDAP uses
* s4-dsdb: added DSDB_FLAG_OWN_MODULEAndrew Tridgell2010-01-022-3/+50
| | | | | | | This allows you to call dsdb_module_*() functions while including the current module in the module stack to be used Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-ldb: added ldb_module_get_ops()Andrew Tridgell2010-01-022-0/+6
| | | | | | This is needed to support DSDB_FLAG_OWN_MODULE Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: use a common method for finding a link pairAndrew Tridgell2010-01-021-1/+1
| | | | | Use ^1 everywhere, to ensure it works for both forward and backward links
* s4-drs: fixed the UDV return in getncchangesAndrew Tridgell2010-01-021-5/+17
| | | | We should overwrite an existing entry if found
* s4-drs: some useful debugging options for getncchangesAndrew Tridgell2010-01-021-11/+42
| | | | | | | Added two debugging parametric options drs:max object sync = drs:extra filter =
* s4-dsdb: fill in the correct version number of links that come over DRSAndrew Tridgell2010-01-021-26/+27
|
* s4-dsdb: move checking for single valued links to samba modulesAndrew Tridgell2010-01-022-3/+15
| | | | | | This uses the RELAX control and checking of single valued attributes in ldb modules to avoid problems with multi-valued links where all values but one are deleted
* s4-dsdb: added dsdb_check_single_valued_link()Andrew Tridgell2010-01-022-0/+31
| | | | | This is used in conjunction with the RELAX control, to check for violations of single value rules for linked attributes
* s4-drs: handle mixtures of old and new style links in getncchangesAndrew Tridgell2010-01-021-0/+17
| | | | We need to send non-upgraded links using the old format
* s4-dsdb: added dsdb_dn_is_upgraded_link_val()Andrew Tridgell2010-01-021-0/+9
| | | | | This is used to detect if a link has been stored in the w2k3 extended format
* s4-ldb: use the RELAX control to disable single value checking on replaceAndrew Tridgell2010-01-023-5/+16
| | | | | | | | | | When using w2k3 linked attributes we are allowed to have multiple values on a single valued attribute. This happens when the other values are deleted. Setting the RELAX control tell the ldb-tdb backend to not check for this on replace, which means the caller has to check for single valued violations.
* s4-dsdb: auto-upgrade w2k formatted linked attributes when modifiedAndrew Tridgell2010-01-021-0/+63
| | | | | When any value of a w2k formatted linked attribute is modified, upgrade the links.
* s4-drs: added linked attribute replication to getncchangesAndrew Tridgell2010-01-021-15/+203
|
* s4-dsdb: ask for REVEAL_INTERNALS in getncchangesAndrew Tridgell2010-01-021-0/+5
| | | | We need this for the linked attribute meta data
* s4-dsdb: minor cleanup in DRS replicated objects codeAndrew Tridgell2010-01-021-5/+6
|
* s4-dsdb: store full meta data from DRS for linked attributesAndrew Tridgell2010-01-021-150/+239
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: add REVEAL_INTERNALS in the search for linked_attributesAndrew Tridgell2010-01-021-1/+2
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: allow the component name to be specified in dsdb_get_extended_dn_guid()Andrew Tridgell2010-01-022-4/+4
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: split RMD_USN into RMD_LOCAL_USN and RMD_ORIGINATING_USNAndrew Tridgell2010-01-022-9/+20
| | | | | | | | We need a separate RMD_LOCAL_USN to allow us to tell what attributes need to be sent in a getncchanges request. Thanks to Metze for pointing this out. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: handle links with no backlinks in replmd_deleteAndrew Tridgell2010-01-021-4/+3
|
* s4-dsdb: simplify the linked_attributes moduleAndrew Tridgell2010-01-021-853/+96
| | | | | | | | The linked_attributes module only has to deal with renames now, as other linked attribute updates happen in repl_meta_data. This allows it to be much simpler. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: do the rename after the modify in replmd_deleteAndrew Tridgell2010-01-021-12/+13
| | | | This makes updating the links a bit easier
* s4-dsdb: some backlinks can be processed immediatelyAndrew Tridgell2010-01-021-77/+84
| | | | | | backlinks in add and delete operations can be processed immediately, rather than at the end of a transaction. This can save on backlink list processing time.
* s4-dsdb: remove linked_attributes_addAndrew Tridgell2010-01-021-86/+0
| | | | This is now handled in the repl_meta_data module
* s4-dsdb: add linked attributes meta_data handling to replmd_addAndrew Tridgell2010-01-021-24/+86
| | | | | | | This also handles the backlink creation that was previously in the linked_attributes module Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: added replmd_delete, based on Eduardos workAndrew Tridgell2010-01-021-0/+295
| | | | | | | | | | | | | This implements repmld_delete(), which handles the meta_data updates for an object when deleting. A delete gets mapped to a combination of a rename followed by a modify request, which has the effect of moving the object into the Deleted Objects container. This is based on the code from Eduardo Lima <eduardoll@gmail.com>. Eduardo's code was modified to take account of the linked attributes changes that Andrew and I have been working on. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: the linked_attributes module no longer handles deletesAndrew Tridgell2010-01-021-53/+0
| | | | | | delete handling is now moved into repl_meta_data Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: repl_meta_data now replaces objectguid in all casesAndrew Tridgell2010-01-021-16/+2
| | | | | | | | We don't want to be debugging two different code paths through the ldb module stack, so better to always do the work of repl_meta_data, even for a standalone server Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: add a comment on the use of ldb_rename()Andrew Tridgell2010-01-021-0/+3
| | | | | We need to use ldb_rename() and not dsdb_module_rename() here as we need the rename to be processed by the current module
* s4-dsdb: linked_attributes_modify no longer handles modifiesAndrew Tridgell2010-01-021-183/+0
| | | | This functionality has moved into repl_meta_data