summaryrefslogtreecommitdiffstats
path: root/source4
Commit message (Collapse)AuthorAgeFilesLines
* First attempt to implement dcesrv_drsuapi_DsGetNCChangesAnatoliy Atanasov2009-09-031-1/+204
| | | | | | | So far it returns the ctr6 responce without proper linked attributes support and metadata. A couple of improvements are the filter in the search uses '(uSNChanged>=N)', added extended dn search support, non-replicated attributes are excluded from the result.
* Fix the dsdb_syntax_OID_ldb_to_drsuapi functionAnatoliy Atanasov2009-09-031-1/+51
| | | | | | This replace the dsdb_syntax_FOOBAR_ldb_to_drsuapi function, which was left as a TODO code. Implementation in both added functions is completely identical and probably should differ in the future.
* another large change to the linked_attribute moduleAndrew Tridgell2009-09-031-20/+64
| | | | | | | | | | | | | | | This one copes with deleted objects where linked attributes have been set on the module. We hit this when we do the ldb wipe at the start of a provision, which trigers linked attribute updates, but for objects that have disappeared. We need to ensure that the linked attribute updates only happen on the right object, and if the object gets re-created (as happens with a provision) then it is not the right object. To cope with this we record the GUID of the object when the operation that triggered the linked attribute update comes in, and then find the DN by suing that GUID when we apply the change in the prepare commit hook.
* hook on prepare_commit instead of transaction_endAndrew Tridgell2009-09-032-8/+11
| | | | This allows for safe transaction end aborts
* greatly simplify the transaction processing in the partition moduleAndrew Tridgell2009-09-031-51/+29
| | | | | Now that ldb is calling prepare commit separately, the job of the partition module on transaction end is much simpler (and more robust!)
* show more reasonable object counts during a vampireAndrew Tridgell2009-09-031-4/+18
| | | | | | | | | We now show the total number of objects we have processed, which gives the user a better idea of how much has been done. A vampire on a large domain can take an hour or more (which needs to be fixed btw, it is a problem with the lack of scalability of the ltdb index code). Watching the same msg for an hour makes you wonder if any progress is being made!
* always use prepare_commit in ldb transaction commits if possibleAndrew Tridgell2009-09-033-6/+51
| | | | | | | | | | The reason we need this is to make multi-tdb transactions safe, with the partition module. The linked_attributes and repl_meta_data modules now do extra processing when the transaction ends, and that processing can fail. When it fails we need to cancel the transaction, which we can only do if the hook is on the prepare commit instead of the end transaction call. Otherwise the partition module cannot ensure that no commit has been done on another partition.
* added dsdb_find_guid_by_dn()Andrew Tridgell2009-09-031-1/+21
| | | | This will be used by the linked_attribute module
* allow setting of the debug level in python from CAndrew Tridgell2009-09-033-2/+18
|
* change repl_meta_data to process linked_attributes structures in end_transactionAndrew Tridgell2009-09-031-4/+276
| | | | | | | | When running at functional level 2 or above, the repl_meta_data module can receive linked attribute structures from the repl replication task. These attributes can come through DRS before the associated objects have been created. To cope with this, we need to process linked attributes in the end_transaction hook.
* fixed transaction handling in linked_attributes moduleAndrew Tridgell2009-09-031-76/+4
| | | | | | | | We need to call down to the next transaction function when we finish in linked_attributes. This also changes linked_attributes to use the common dsdb_find_dn_by_guid() function
* add the the linked attributes elements to the repl structureAndrew Tridgell2009-09-032-1/+9
| | | | This exposes the linked_attributes to the repl_meta_data module
* tell the server that we support linked attribute replicationAndrew Tridgell2009-09-031-6/+1
|
* added dsdb_find_dn_by_guid()Andrew Tridgell2009-09-031-0/+78
| | | | | | This came from the linked_attributes module, but now the repl_meta_data module needs the same functionality, so move it to a common routine.
* support config files in the current directoryAndrew Tridgell2009-09-031-2/+7
|
* s4-smbtorture: test netr_ServerSetPassword2 against Samba3.Günther Deschner2009-09-021-0/+1
| | | | Guenther
* show the full set of command line options for ldb toolsAndrew Tridgell2009-09-025-29/+6
| | | | | I always found it hard to remember some of the options. We might as well use popt to give us the full list
* traverse the ac list in reverse orderAndrew Tridgell2009-09-021-1/+6
| | | | | | items are added to the linked attribute list using DLIST_ADD(), which means to commit them to the database in the same order they came from the server we need to walk the list backwards when we traverse it
* repl_meta_data should only be included when we are a DCAndrew Tridgell2009-09-021-1/+1
|
* s4:dsdb rewrite the linked_atrributes code to commit in the end_transaction hookAndrew Tridgell2009-09-021-107/+281
| | | | | | | | | | | | | linked attribute changes can come in any order. This means it is possible for a forward link to come over the wire in DRS before the target even exists. To make this work this patch changed the linked attributes module to gather up all the changes it needs to make in a linked list, then execute the changes in the end_transaction hook for the module. During that commit phase we also fix up all the DNs that we got by searching for their GUID, as the objects may have moved after the linked attribute was sent, but before the end of the transaction
* move the repl_meta_data module up the ldb module stackAndrew Tridgell2009-09-021-1/+2
| | | | | The repl_meta_data module needs to be above the linked_attributes module, to allow linked_attributes to do its magic
* wrap the entire vampire operation in a transactionAndrew Tridgell2009-09-021-13/+24
| | | | | We want to grab the whole database, or none of it. This is also needed to get linked attributes right
* use ldb_cmdline_help() in ldbsearchAndrew Tridgell2009-09-022-8/+3
|
* added ldb_cmdline_help()Andrew Tridgell2009-09-021-29/+36
| | | | This allows the ldb tools to show their full command line options
* add the partition_control control to replication requestsAndrew Tridgell2009-09-021-0/+22
| | | | | | We know the partition DN from the DRS objects, we need to pass this down the modules below us to ensure they operate on the right partition
* change the dsdb_control_current_partition to not include internal variablesAndrew Tridgell2009-09-022-82/+88
| | | | | | | | | | | | | This structures was used in two ways. In one way it held variables that are logically internal to the partition module, and in the other way it was used to pass the partition DN down to other modules. This change makes the structure contain just the dn which is being passed down. This change is part of the support for linked attributes. We will be passing this control down from above the partition module to force which partition a request acts upon. The partition module now only adds this control if it isn't already there.
* don't allow two controls to be added with the same OIDAndrew Tridgell2009-09-021-1/+7
| | | | | Two controls with the same OID makes no sense, as they may have different data attached
* Display ldif formatted versions of all DRS changes at log level 4Andrew Tridgell2009-09-021-0/+18
| | | | This helps a lot with debugging the DRS replication code
* Wrap DRS changes in a transactionAndrew Tridgell2009-09-021-0/+18
| | | | | We should always apply a whole set of DRS changes or none of them. See [MS-DRSR] 3.3.2
* fixed spellingAndrew Tridgell2009-09-021-1/+1
|
* added ldb_ldif_message_string()Andrew Tridgell2009-09-022-0/+28
| | | | | | This function provides a easy function for displaying a ldb_message structure in a human readable format. It is especially useful for calling in gdb.
* ldb: Depend on libtalloc 2.0.0Simo Sorce2009-08-301-1/+1
|
* ldb: cosmetic changes in ldb_dnSimo Sorce2009-08-301-193/+292
| | | | | | - remove trailing spaces and tabs - shorten some variable names for readability - try to break superlong lines for readability
* s4:ldb Don't sleep(100) in this error case, but debug the LDIFAndrew Bartlett2009-08-281-6/+6
|
* s4: Create helpers functions related to provisionMatthieu Patou2009-08-281-17/+34
| | | | | One for getting attributes with DN syntax, one for getting forward linked attributes and one for getting the list of partition
* s4-ldb: update dlinklist.h to match main copy (lib/util/dlinklist.h)Michael Adam2009-08-281-6/+5
| | | | Michael
* s4: include ntlmssp header in auth/ntlmssp/ntlmssp.h.Günther Deschner2009-08-281-0/+1
| | | | Guenther
* s4-ntlmssp: use interface constants in TargetInfo blob.Günther Deschner2009-08-281-5/+5
| | | | Guenther
* s4-ntlmssp: use NTLMSSP headers from IDL and remove duplicate constants.Günther Deschner2009-08-285-50/+21
| | | | Guenther
* s4-schannel: add ldb suffix to schannel functions.Günther Deschner2009-08-272-10/+10
| | | | Guenther
* s4-smbtorture: do not hard code BDC secure channel type into RPC-NETLOGON tests.Günther Deschner2009-08-271-9/+12
| | | | Guenther
* s4-smbtorture: add test_SetPassword_flags to RPC-NETLOGON-S3 testsuite.Günther Deschner2009-08-271-0/+101
| | | | Guenther
* s4:python Add helper to get at the domain SIDAndrew Bartlett2009-08-272-0/+33
|
* s4-smbtorture: add RPC-NETLOGON-S3 to test samba3 netlogon server.Günther Deschner2009-08-262-0/+19
| | | | Guenther
* s4:heimdal_build: lib/hcrypto/evp-aes-cts.o belongs to HEIMDAL_HCRYPTOStefan Metzmacher2009-08-261-1/+1
| | | | metze
* schannel: move schannel.idl to main directory.Günther Deschner2009-08-262-45/+1
| | | | Guenther
* s4:provision Ensure that @OPTIONS is mirrored into each partitionAndrew Bartlett2009-08-263-3/+7
| | | | | | | | | The previous patches to the provision system cut down on the number of reconnects, and disabled the partition handling for part of the process. This means we lost the setting of @OPTIONS as a replicated attribute into the partitions. Andrew Bartlett
* s4:ldb Add ldb_ldif_write_string() and python wrappersAndrew Bartlett2009-08-264-1/+95
| | | | | | This allows us to turn a python LdbMessage back into a string. Andrew Bartlett
* s4:ldb Add hooks to get/set the flags on a ldb_message_elementAndrew Bartlett2009-08-262-5/+65
| | | | | | | Also add tests to prove that we got this correct, and correct the existing tests which used the wrong constants. Andrew Bartlett
* s4:schema Rework dsdb_write_prefixes_from_schema_to_ldb() to use tallocAndrew Bartlett2009-08-261-14/+20
| | | | | | | | | | | This changes dsdb_write_prefixes_from_schema_to_ldb() to use an internal talloc hirarchy, so we can safely give it a NULL context from the python. It also fixes manual construction of the ldb_message - we now use the right helper functions. Andrew Bartlett