1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-13 08:23:49 +03:00
Commit Graph

26 Commits

Author SHA1 Message Date
Stefan Metzmacher
ce3d4ec0f6 r15148: make wreplsrv_pull_names static
metze
2007-10-10 14:04:11 -05:00
Stefan Metzmacher
c670628158 r15146: fix comments
metze
2007-10-10 14:04:11 -05:00
Jelmer Vernooij
51b4270513 r14542: Remove librpc, libndr and libnbt from includes.h 2007-10-10 13:58:42 -05:00
Stefan Metzmacher
e48a47aa65 r13111: w2k3 uses the naxVersion id for calculating the notification,
so we do now

metze
2007-10-10 13:51:26 -05:00
Stefan Metzmacher
ba97e7c06a r12796: use the correct address as initiator
metze
2007-10-10 13:49:56 -05:00
Stefan Metzmacher
0382b3135c r12702: - reload the partner configuration, when the sequenceNumber of the wins_config.ldb
changes
- use a periodic run interval of 15 secs per default, as we no longer
  send push notifies with each run

metze
2007-10-10 13:49:43 -05:00
Jelmer Vernooij
6391761601 r12696: Reduce the size of include/structs.h 2007-10-10 13:49:40 -05:00
Stefan Metzmacher
e43de87d06 r12677: get rid of the special cases for the local wins owner table entry,
the call to winsdb_get_maxVersion() is moved into place.

This allows us to fetch records with the owner address that matches
our local_owner address, this is important if the restart with an empty wins.ldb.
w2k3 does this in the same way when you remove the database files from disk and restart
the WINS-Service.

metze
2007-10-10 13:49:36 -05:00
Stefan Metzmacher
61f1c8c347 r12642: only do push notifications when something changed
metze
2007-10-10 13:49:33 -05:00
Stefan Metzmacher
49ba4cc111 r12617: create a winsdb_handle and pass that arround,
so we later can hang the local owner address, on this handle too

metze
2007-10-10 13:49:05 -05:00
Jelmer Vernooij
0aca5fd513 r12542: Move some more prototypes out to seperate headers 2007-10-10 13:47:55 -05:00
Stefan Metzmacher
7d1f7ae9c6 r12434: implement database scavenging, the only missing part is the verifying of active replicas
with the owning wins server, after the verify interval passes.

metze
2007-10-10 13:47:38 -05:00
Stefan Metzmacher
3383568c31 r12391: use the new periodic schedule system for the pull replication too
metze
2007-10-10 13:47:34 -05:00
Stefan Metzmacher
b6943b11fc r12372: - make the periodic scheduling a bit easier, instead of passing
an uint32_t next_interval everywhere, we now call wreplsrv_periodic_schedule()
  if we want to schedule an event
- also prevent us from looping with a 0 interval, by using 1s as minimum interval

metze
2007-10-10 13:47:31 -05:00
Stefan Metzmacher
baa4a7a9d4 r12304: split out the wins partner configuration into a seperate ldb.
now $privatedir/wins_config.ldb contains the wins partners
and $lockdir/wins.ldb contains the name records

metze
2007-10-10 13:47:28 -05:00
Stefan Metzmacher
fa1a5660bb r12242: - make the push notifications triggered by the change count
- for now we fake the change count to '1', so we'll still have periodicly triggered push
  notifies, the interval is the 'wreplsrv:periodic_interval=60'
- add the 'pushUseInform' attribute to the wreplPartner objectClass
  to configure if we'll use WREPL_REPL_INFORM notifies

metze
2007-10-10 13:47:23 -05:00
Stefan Metzmacher
977117278c r12230: prepare for a generic periodic processing scheduling of
pull,push,scavenging and reread-config events

metze
2007-10-10 13:47:22 -05:00
Stefan Metzmacher
f0105b7fcd r12200: - move the the winsreplication client and server code to the packet_context
system
- this needs to be in one big patch, because of the merging code,
  that changes client in server connections and the other way around
- use socket_connect_send/_recv() in the client code

metze
2007-10-10 13:47:17 -05:00
Stefan Metzmacher
1d80ba062a r11873: add some interval vars to the service context
metze
2007-10-10 13:46:39 -05:00
Stefan Metzmacher
4122e9ec3a r11547: - don't do pull replication when pullIntervall is 0
- don't do push replication when pushChangeCount is 0

metze
2007-10-10 13:45:52 -05:00
Stefan Metzmacher
471c0ca4ab r11052: bring samba4 uptodate with the samba4-winsrepl branch,
before the bad merge

metze
2007-10-10 13:44:43 -05:00
Stefan Metzmacher
a75402c45f r11043: r10362@SERNOX: metze | 2005-09-20 22:37:28 +0200
repare for pull replication support

 metze
2007-10-10 13:42:35 -05:00
Stefan Metzmacher
4490a2864e r11032: r10342@SERNOX: metze | 2005-09-20 11:00:26 +0200
- load our wins partners at start time:
 # this is a sample partner record:
 dn: name=SERNOX4-1,CN=PARTNERS
 objectClass: wreplPartner
 name: SERNOX4-9
 address: 172.31.1.1
 ourAddress: 172.31.9.1
 type: 0x3
 pullInterval: 3600

 - go through all winsdb records in the database and create the wins_owner table,
   but don't add ourself to it as out nbt task will update the db too, we refetch
   the local max_versiion, each time we need it, (that typicaly onces per replication cycle)

 metze
2007-10-10 13:42:32 -05:00
Stefan Metzmacher
da3d18e454 r11023: r10310@SERNOX: metze | 2005-09-19 11:21:39 +0200
- open the winsdb in the wrepl server
 - add dummy function for setup the replication partners

 metze
2007-10-10 13:42:16 -05:00
Stefan Metzmacher
42b69461aa r11014: r10139@SERNOX: metze | 2005-09-10 10:32:36 +0200
- w2k just ignores invalid packets, so we do now
 - w2k only checks the assoc_ctx when the opcode has the sepcific obcode bit's set
 - terminate the connection, when getting a WREPL_STOP_ASSOCIATION packet
 - some more special error handling

 proper torture test for all this cases are following later

 metze
2007-10-10 13:41:30 -05:00
Stefan Metzmacher
c9a8544446 r11007: r10109@SERNOX: metze | 2005-09-09 12:29:12 +0200
- move structs to a seperate header file
 - move the code for the wreplsrv_in_call handling to a seperate file

 metze
2007-10-10 13:41:25 -05:00