summaryrefslogtreecommitdiff
path: root/source4/dsdb/repl/drepl_fsmo.c
Commit message (Collapse)AuthorAgeFilesLines
* debug: Add new debug class "drs_repl" for DRS replication processingAndrew Bartlett2017-09-071-0/+3
| | | | | | | This is used in the client and in the server Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* dsdb: Add assert in drepl_take_FSMO_roleAndrew Bartlett2013-07-241-4/+3
| | | | | | | Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* drs-fsmo: Improve handling of FSMO role takeover.Andrew Bartlett2013-01-171-3/+2
| | | | | | | | This needs to be more async, and give less scary errors. Andrew Bartlett Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s4-dsdb: Use samdb_dn_is_our_ntdsa()Andrew Bartlett2012-08-141-18/+14
| | | | | | | This uses a GUID based comparison, and avoids re-fetching the samdb_ntds_settings_dn each time. Andrew Bartlett
* s4-dsdb: Add mem_ctx argument to samdb_ntds_settings_dnAndrew Bartlett2012-08-141-1/+7
| | | | | | | | | | | | | | As this value is calculated new each time, we need to give it a context to live on. If the value is the forced value during provision, a reference is taken. This was responsible for the memory leak in the replication process. In the example I was given, this DN appeared in memory 13596 times! Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Aug 14 10:05:14 CEST 2012 on sn-devel-104
* s4/drepl_fsmo: Add an CR so that message is visible in the logsKamen Mazdrashki2011-05-111-1/+1
| | | | | Autobuild-User: Kamen Mazdrashki <kamenim@samba.org> Autobuild-Date: Wed May 11 21:03:59 CEST 2011 on sn-devel-104
* s4-dsdb: perform FSMO transfers asynchronouslyAndrew Tridgell2011-03-291-17/+43
| | | | | | | this gives the administrator a proper error message on the command line Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4:dsdb/repl/drepl* - move "lib/messaging/irpc.h" include into "drepl_service.h"Matthias Dieter Wallnöfer2010-11-281-1/+0
| | | | | | | This is needed to fix a Tru64 "cc" warning regarding "enum drepl_role_master". Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Sun Nov 28 12:46:19 CET 2010 on sn-devel-104
* s4:role transfer - use always type "enum drepl_role_master" for role ↵Matthias Dieter Wallnöfer2010-11-271-3/+2
| | | | | | | specifications Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Sat Nov 27 16:03:43 CET 2010 on sn-devel-104
* s4/fsmo: Create separate function for retrieving fsmo role dn and owner dn.Anatoliy Atanasov2010-09-201-54/+9
| | | | This functionality is needed for DsCrackNames ListRoles command also.
* s4/fsmo: Naming master support addedAnatoliy Atanasov2010-09-191-1/+2
| | | | Test suite for fsmo is extended with a test case for naming master too.
* s4-repl: added min_usn to extended replication callAndrew Tridgell2010-09-161-1/+3
| | | | | | | the repl_secret code needs to set it to avoid too many duplicate attributes Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-repl: cleanup the extended op calls in repl serverAndrew Tridgell2010-09-161-7/+0
| | | | | | | - use generic parameter names - trigger a run of pending ops on all extended ops - don't prevent parallel fsmo transfers - moved extended op code into drepl_extended
* s4-repl: cleanup getncchanges extended op callsAndrew Tridgell2010-09-161-7/+6
| | | | | | | | | Multiple calls are allowed to run in parallel as long as they don't conflict. This also cleans up the variable names in the extended op calls. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4/fsmo: Handle infrastructure, pdc and rid extended opsAnatoliy Atanasov2010-09-151-31/+41
| | | | | | | | | | | | | With this change we can transfer all roles back and forward, except for the naming master. Also this commit fixes the naming of fsmo_role_dn - used to point to the DN from which we read fSMORoleOwner role_owner_dn - used to point to the NTDSDSA who owns the role Now we always pass fsmo_role_dn, role_owner_dn to the extended operation and to drepl_create_role_owner_source_dsa Conflicts: source4/dsdb/repl/drepl_ridalloc.c
* s4/fsmo: Fix callback declarationAnatoliy Atanasov2010-09-101-1/+2
|
* s4-drs-fsmo: try to dispatch ops in queue as soon as possibleKamen Mazdrashki2010-09-101-1/+9
| | | | | In most cases this will transfer of schema master role to look like a synchronous operation.
* s4-drs: Implementation of GetNCChanges extended op 6 - fsmo role transferNadezhda Ivanova2010-09-101-0/+151
Basically the candidate owner makes a getncchanges call with extended op 6 when they want to become the new owner. The current owner then updates the corresponding fSMORoleOwner attribute in its database with the new owner, and replicates the change to the candidate, who then becomes the owner. The patch was made in cooperation with Anatoliy Atanasov <anatoliy.atanasov@postpath.com> who kindly helped to debug it.