Age | Commit message (Collapse) | Author | Files | Lines |
|
try to include just the BASENAME.h files (containing only structs)
(This used to be commit 3dd477ca5147f28a962b8437e2611a8222d706bd)
|
|
- add set_title hook to the process models
- use setproctitle library in process_model standard if available
- the the title for the task servers and on connections
metze
(This used to be commit 526f20bbecc9bbd607595637c15fc4001d3f0c70)
|
|
(This used to be commit 930daa9f416ecba1d75b8ad46bb42e336545672f)
|
|
file dependencies
(This used to be commit 122835876748a3eaf5e8d31ad1abddab9acb8781)
|
|
metze
(This used to be commit 165538245b0772c4618895779cd468feac8494c0)
|
|
it currently doesn't do much, but it's later
prevent adding corrupted records via ldbedit,
and will take care of the versionID counter
metze
(This used to be commit a6f279bc43c74cf4dc116cb6ba99f1aed13a4de9)
|
|
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
(This used to be commit 0382b3135c770847be33fbf8ee500f2c0bf265e2)
|
|
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
(This used to be commit e43de87d06614206a858e1102cd82e7f02163bba)
|
|
metze
(This used to be commit 9a7da608e2099ea1d037b6985358649a6e35a714)
|
|
metze
(This used to be commit 61f1c8c347d26f34e3e924ceae55e99e6c1461f7)
|
|
as winsOwner: attrbute for owned records
metze
(This used to be commit 37dece8304c0b9887740f4d4e8096732045a1785)
|
|
so we later can hang the local owner address, on this handle too
metze
(This used to be commit 49ba4cc11144671cafcbe2967954bfd786ea6e76)
|
|
(This used to be commit 70e7449318aa0e9d2639c76730a7d1683b2f4981)
|
|
(This used to be commit 0aca5fd5130d980d07398f3291d294202aefe3c2)
|
|
metze
(This used to be commit 806d76134dc50e9f4eb1f17ead9d1ec9e27f7153)
|
|
verifying of active replicas
with the owning wins server, after the verify interval passes.
metze
(This used to be commit 7d1f7ae9c65c09f8bf72e159b771f231f96e8591)
|
|
now $privatedir/wins_config.ldb contains the wins partners
and $lockdir/wins.ldb contains the name records
metze
(This used to be commit baa4a7a9d4f16adf476846850a63dfbfd51b10b3)
|
|
- 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
(This used to be commit fa1a5660bb2ef7fabd72ad9b993dd91d59ac409e)
|
|
pull,push,scavenging and reread-config events
metze
(This used to be commit 977117278c4b9fc1b7845b6aa6d5862e5a776651)
|
|
metze
(This used to be commit 1d80ba062ae8a0854e35eb8a3fdae56990b790b8)
|
|
This patch changes the way lsb_search is called and the meaning of the returned integer.
The last argument of ldb_search is changed from struct ldb_message to struct ldb_result
which contains a pointer to a struct ldb_message list and a count of the number of messages.
The return is not the count of messages anymore but instead it is an ldb error value.
I tryed to keep the patch as tiny as possible bu as you can guess I had to change a good
amount of places. I also tried to double check all my changes being sure that the calling
functions would still behave as before. But this patch is big enough that I fear some bug
may have been introduced anyway even if it passes the test suite. So if you are currently
working on any file being touched please give it a deep look and blame me for any error.
Simo.
(This used to be commit 22c8c97e6fb466b41859e090e959d7f1134be780)
|
|
metze
(This used to be commit 021060b4292dfe2495bcea635f6ce6467ca731ad)
|
|
- don't do push replication when pushChangeCount is 0
metze
(This used to be commit 4122e9ec3a4394738fa3c261dc92938ea86c3822)
|
|
metze
(This used to be commit d49a1d2b15c7d17a5d6928a971fbe87d13686c2d)
|
|
before the bad merge
metze
(This used to be commit 471c0ca4abb17fb5f73c0efed195c67628c1c06e)
|
|
repare for pull replication support
metze
(This used to be commit a75402c45f5bcd3b199ad30af06ee34161c5560b)
|
|
- as the old records are broken sinse the last winsdb_dn() changes, (the dn components order was reversed)
we can use nicer attribute and objectClass names...
- use much more verbose error handling for winsdb_*
- print a debug message when we found a corrupted record
metze
(This used to be commit 82bad3f3efec5b706a65e65054787f1486d7c875)
|
|
move stuff the belong to incoming connections only
into a seperate file wrepl_in_connection.c
metze
(This used to be commit c2b2b582203d9fe2596ebc9cf2600d52e6f61831)
|
|
make wreplsrv_find_owner public
metze
(This used to be commit 6fa37c0a2bc1d2f0d29c69d8448276c1f1791a45)
|
|
- 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
(This used to be commit 4490a2864e21f957547c30675e5f096a4409e5fb)
|
|
- open the winsdb in the wrepl server
- add dummy function for setup the replication partners
metze
(This used to be commit da3d18e4545da3bd1841ffc31f253e533f7ea016)
|
|
- 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
(This used to be commit 42b69461aad3942dde361d61b950445dd39882aa)
|
|
- move structs to a seperate header file
- move the code for the wreplsrv_in_call handling to a seperate file
metze
(This used to be commit c9a8544446312d96ecadcf370af76d9dc5b2531a)
|
|
This is the start of a WINS-Replicaton server:
The design is to handle incoming and outgoing connections,
in one process, because it make thing much easier, and there's
no need to it otherwise.
The current code only parses incoming packets, and can reply
to them, but currently only a standard error packets STOP_ASSOCIATON
with reason == 4 (I think it means your are not configured as a wins partner of me)
(the server service is called "wrepl")
metze
(This used to be commit 55a2016ba379d035cd559fb55a280e2ee9f15178)
|