1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
Commit Graph

231 Commits

Author SHA1 Message Date
Jelmer Vernooij
86dc05e99f r26638: libndr: Require explicitly specifying iconv_convenience for ndr_struct_push_blob().
(This used to be commit 61ad78ac98)
2008-01-01 16:12:11 -06:00
Jelmer Vernooij
70f1f33af8 r26402: Require a talloc context in libnetif.
(This used to be commit a35e51871b)
2007-12-21 05:49:33 +01:00
Jelmer Vernooij
6f2252dace r26401: Don't cache interfaces context in libnetif.
(This used to be commit 9f975417cc)
2007-12-21 05:49:32 +01:00
Jelmer Vernooij
f055893ca5 r26382: Remove more uses of global_loadparm.
(This used to be commit 6d4c598534)
2007-12-21 05:49:17 +01:00
Jelmer Vernooij
c5bf20c5fe r26325: Remove use of global_loadparm in netif.
(This used to be commit e452cb2859)
2007-12-21 05:48:37 +01:00
Jelmer Vernooij
2f5ca872a8 r26313: Fix more uses of static loadparm.
(This used to be commit 6fd0d9d3b7)
2007-12-21 05:48:25 +01:00
Jelmer Vernooij
43696d2752 r26252: Specify loadparm_context explicitly when creating sessions.
(This used to be commit 7280c1e941)
2007-12-21 05:47:29 +01:00
Jelmer Vernooij
291ddf4336 r26237: Add loadparm context to the server service interface.
(This used to be commit 1386c5c925)
2007-12-21 05:47:15 +01:00
Jelmer Vernooij
b5594df87d r26230: Use task-provided loadparm context in a couple more places, avoid loadparm context inside ntlm_auth.
(This used to be commit 3a946d1ffd)
2007-12-21 05:47:07 +01:00
Jelmer Vernooij
f4a1083cf9 r26227: Make loadparm_context part of a server task, move loadparm_contexts further up the call stack.
(This used to be commit 0721a07aad)
2007-12-21 05:47:04 +01:00
Jelmer Vernooij
33f26f8e54 r26225: Remove use of global_loadparm in wins server.
(This used to be commit 98c29e090f)
2007-12-21 05:47:00 +01:00
Jelmer Vernooij
ca0b72a1fd r26003: Split up DB_WRAP, as first step in an attempt to sanitize dependencies.
(This used to be commit 56dfcb4f2f)
2007-12-21 05:45:40 +01:00
Stefan Metzmacher
529763a9aa r25920: ndr: change NTSTAUS into enum ndr_err_code (samba4 callers)
lib/messaging/
lib/registry/
lib/ldb-samba/
librpc/rpc/
auth/auth_winbind.c
auth/gensec/
auth/kerberos/
dsdb/repl/
dsdb/samdb/
dsdb/schema/
torture/
cluster/ctdb/
kdc/
ntvfs/ipc/
torture/rap/
ntvfs/
utils/getntacl.c
ntptr/
smb_server/
libcli/wrepl/
wrepl_server/
libcli/cldap/
libcli/dgram/
libcli/ldap/
libcli/raw/
libcli/nbt/
libnet/
winbind/
rpc_server/

metze
(This used to be commit 6223c7fddc)
2007-12-21 05:45:02 +01:00
Jelmer Vernooij
af0a85bc30 r25549: Convert to standard bool type.
(This used to be commit 318bf1f744)
2007-10-10 15:07:53 -05:00
Jelmer Vernooij
2f3551ca7c r25446: Merge some changes I made on the way home from SFO:
2007-09-29 More higher-level passing around of lp_ctx.
2007-09-29 Fix warning.
2007-09-29 Pass loadparm contexts on a higher level.
2007-09-29 Avoid using global loadparm context.
(This used to be commit 3468952e77)
2007-10-10 15:07:34 -05:00
Jelmer Vernooij
60a1046c5c r25430: Add the loadparm context to all parametric options.
(This used to be commit fd697d77c9)
2007-10-10 15:07:31 -05:00
Jelmer Vernooij
37d53832a4 r25398: Parse loadparm context to all lp_*() functions.
(This used to be commit 3fcc960839)
2007-10-10 15:07:25 -05:00
Jelmer Vernooij
98b57d5eb6 r25035: Fix some more warnings, use service pointer rather than service number in more places.
(This used to be commit df9cebcb97)
2007-10-10 15:05:43 -05:00
Jelmer Vernooij
ffeee68e4b r25026: Move param/param.h out of includes.h
(This used to be commit abe8349f9b)
2007-10-10 15:05:38 -05:00
Jelmer Vernooij
61ffa08f4c r24712: No longer expose the 'BOOL' data type in any interfaces.
(This used to be commit 1ce32673d9)
2007-10-10 15:02:54 -05:00
Andrew Tridgell
0479a2f1cb r23792: convert Samba4 to GPLv3
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
(This used to be commit fcf38a38ac)
2007-10-10 14:59:12 -05:00
Stefan Metzmacher
06dae806f9 r22793: use a state struct for r_do_release_demand to avoid a memleak on errors
metze
(This used to be commit a411152731)
2007-10-10 14:52:18 -05:00
Stefan Metzmacher
bb691629f5 r22792: only don't free on success
metze
(This used to be commit 2259bc2cad)
2007-10-10 14:52:18 -05:00
Stefan Metzmacher
19d56c775a r22752: bail out on talloc failure
metze
(This used to be commit da92bf88e5)
2007-10-10 14:52:10 -05:00
Stefan Metzmacher
68b531e817 r22748: fix memleaks by passing an mem_ctx to
irpc_servers_byname()

metze
(This used to be commit b54584dfab)
2007-10-10 14:52:09 -05:00
Stefan Metzmacher
35ffca8932 r22403: this dependencies should be private
metze
(This used to be commit c3cc03ffb2)
2007-10-10 14:51:14 -05:00
Stefan Metzmacher
4d0650e023 r22382: fix memory leak
metze
(This used to be commit 1998961e34)
2007-10-10 14:51:11 -05:00
Andrew Tridgell
1cd4339b9a r20646: first preparations for cluster enablement. This changes "
uint32_t server_id
to
  struct server_id server_id;

which allows a server ID to have an node number. The node number will
be zero in non-clustered case. This is the most basic hook needed for
clustering, and ctdb.
(This used to be commit 2365abaa99)
2007-10-10 14:37:23 -05:00
Simo Sorce
4889eb9f7a r19831: Big ldb_dn optimization and interfaces enhancement patch
This patch changes a lot of the code in ldb_dn.c, and also
removes and add a number of manipulation functions around.

The aim is to avoid validating a dn if not necessary as the
validation code is necessarily slow. This is mainly to speed up
internal operations where input is not user generated and so we
can assume the DNs need no validation. The code is designed to
keep the data as a string if possible.

The code is not yet 100% perfect, but pass all the tests so far.
A memleak is certainly present, I'll work on that next.

Simo.
(This used to be commit a580c871d3)
2007-10-10 14:28:22 -05:00
Andrew Tridgell
0ee52751f3 r18331: fixed a warning
(This used to be commit 997ed10bf5)
2007-10-10 14:18:10 -05:00
Andrew Tridgell
30ee8beb93 r18301: I discovered how to load the warnings from a build farm build into
emacs compile mode (hint, paste to a file, and compile as "cat
filename").

This allowed me to fix nearly all the warnings for a IA_64 SuSE build
very quickly.
(This used to be commit eba6c84eff)
2007-10-10 14:18:04 -05:00
Jelmer Vernooij
0329d755a7 r17930: Merge noinclude branch:
* Move dlinklist.h, smb.h to subsystem-specific directories
 * Clean up ads.h and move what is left of it to dsdb/
   (only place where it's used)
(This used to be commit f7afa1cb77)
2007-10-10 14:16:54 -05:00
Stefan Metzmacher
b58f4364ae r17784: fix compiler warnings
metze
(This used to be commit 8b806c4c5e)
2007-10-10 14:16:42 -05:00
Stefan Metzmacher
a2eca9174c r17586: merge lib/netif into lib/socket and use -lnsl -lsocket on the
configure check for the interfaces.

should fix the build on some old sun boxes

metze
(This used to be commit f20e251bfd)
2007-10-10 14:15:39 -05:00
Simo Sorce
a23b63a8e5 r17516: Change helper function names to make more clear what they are meant to do
(This used to be commit ad75cf8695)
2007-10-10 14:15:31 -05:00
Gerald Carter
e3a6c6be79 r16100: Patch from Michael Wood <mwood@icts.uct.ac.za>: s/then/than/ for correct grammar
(This used to be commit 26a2fa97e4)
2007-10-10 14:08:59 -05:00
Andrew Tridgell
92acfc0799 r15855: more talloc_set_destructor() typesafe fixes. nearly done ...
(This used to be commit 396d82a231)
2007-10-10 14:08:33 -05:00
Jelmer Vernooij
806c5c9621 r15371: Revert some of my previous patch as it was breaking the plain build
(This used to be commit fac9871122)
2007-10-10 14:05:28 -05:00
Jelmer Vernooij
47bf79eac5 r15370: Fix more dependencies for shared libs
(This used to be commit 9a518661fb)
2007-10-10 14:05:27 -05:00
Jelmer Vernooij
b00c236906 r15301: Use static libraries internally. This required a few hacks in the build
system - these should be removed later on.
(This used to be commit 0654739166)
2007-10-10 14:05:07 -05:00
Jelmer Vernooij
69b51f702a r15207: Introduce PRIVATE_DEPENDENCIES and PUBLIC_DEPENDENCIES as replacement
for REQUIRED_SUBSYSTEMS.
(This used to be commit adc8a019b6)
2007-10-10 14:04:18 -05:00
Stefan Metzmacher
1ffb7908d5 r15149: fix typo
metze
(This used to be commit b00d524ef7)
2007-10-10 14:04:11 -05:00
Stefan Metzmacher
0082a4ce97 r15148: make wreplsrv_pull_names static
metze
(This used to be commit ce3d4ec0f6)
2007-10-10 14:04:11 -05:00
Stefan Metzmacher
c53c91963a r15147: make some more stuff static
metze
(This used to be commit c49ac7f40d)
2007-10-10 14:04:11 -05:00
Stefan Metzmacher
bc1314bfd3 r15146: fix comments
metze
(This used to be commit c670628158)
2007-10-10 14:04:11 -05:00
Jelmer Vernooij
9565c70898 r14567: Make some more functions public.
(This used to be commit 8e84e6cb6b)
2007-10-10 13:58:48 -05:00
Jelmer Vernooij
35349a58df r14542: Remove librpc, libndr and libnbt from includes.h
(This used to be commit 51b4270513)
2007-10-10 13:58:42 -05:00
Jelmer Vernooij
8528016978 r14464: Don't include ndr_BASENAME.h files unless strictly required, instead
try to include just the BASENAME.h files (containing only structs)
(This used to be commit 3dd477ca51)
2007-10-10 13:57:27 -05:00
Stefan Metzmacher
651ca6553e r14079: I just found the setproctitle library from alt linux:-)
- 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 526f20bbec)
2007-10-10 13:56:49 -05:00
Jelmer Vernooij
9bd7dd9121 r13926: More header splitups.
(This used to be commit 930daa9f41)
2007-10-10 13:52:26 -05:00
Jelmer Vernooij
4ac2be9958 r13924: Split more prototypes out of include/proto.h + initial work on header
file dependencies
(This used to be commit 1228358767)
2007-10-10 13:52:24 -05:00
Stefan Metzmacher
289e9baa1d r13345: let us replicate with NT4sp6a
I don't yet know what the extra data in the start_association call mean...

This also let w2k use WREPL_REPL_INFORM messages to us, but w2k3 doesn't
it do it yet...

metze
(This used to be commit 02d6dfa1da)
2007-10-10 13:51:47 -05:00
Stefan Metzmacher
8311b9e9e7 r13116: make sure we don't add more than 25 addresses to a record,
and don't return more than 25 in a name query reply

we now also order the addresses from the newest owned address
to the oldest replica address

metze
(This used to be commit 602ec0f1c6)
2007-10-10 13:51:27 -05:00
Stefan Metzmacher
d5ae1a0387 r13111: w2k3 uses the naxVersion id for calculating the notification,
so we do now

metze
(This used to be commit e48a47aa65)
2007-10-10 13:51:26 -05:00
Stefan Metzmacher
a9109089c3 r13088: - handle non-active static entries
- improve verifiying a replica with a remote wins server
  we now take the ownership of replica records that doesn't match
  the answer from the wins owner and make the record tombstone.
  this hopefully causes the original wins owner to propagate its
  new record, so that it will be replicated back to us

metze
(This used to be commit 49199477f2)
2007-10-10 13:51:24 -05:00
Stefan Metzmacher
52e90b4ad9 r13080: fix crash bug
metze
(This used to be commit 0372438000)
2007-10-10 13:51:23 -05:00
Stefan Metzmacher
f25ad21617 r13060: - return only active addresses in name query responses
- replicate only active addresses

metze
(This used to be commit 6325abd95c)
2007-10-10 13:51:20 -05:00
Stefan Metzmacher
b19ca85e97 r13059: stop playing ping-pong while replicating special group records,
if the addresses and their owners are idetical to the old record
and we're the owner of the old record then we should just gnore the replica

metze
(This used to be commit e4f823ef03)
2007-10-10 13:51:20 -05:00
Stefan Metzmacher
1052673fa6 r13051: this is correct
metze
(This used to be commit ccfc991ad9)
2007-10-10 13:51:19 -05:00
Stefan Metzmacher
4915f16ab2 r13050: when we have reloaded the partners from wins_config.ldb
after a new partner connects, try to find the partner struct on a per call
basis if it's not present on the connection yet

add some more useful debug messages

metze
(This used to be commit e57158e216)
2007-10-10 13:51:19 -05:00
Stefan Metzmacher
092fb9e791 r13037: fill in the corrent maxVersion in table replies
metze
(This used to be commit 165538245b)
2007-10-10 13:51:18 -05:00
Stefan Metzmacher
63bbc2aea6 r13035: active,special group replicas are overwritten by tombstone,special group replicas
metze
(This used to be commit cf669e4b2a)
2007-10-10 13:51:18 -05:00
Stefan Metzmacher
cd9752d61f r12909: add an ldb module for the wins.ldb,
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 a6f279bc43)
2007-10-10 13:51:02 -05:00
Andrew Bartlett
f55ea8bb3d r12804: This patch reworks the Samba4 sockets layer to use a socket_address
structure that is more generic than just 'IP/port'.

It now passes make test, and has been reviewed and updated by
metze. (Thankyou *very* much).

This passes 'make test' as well as kerberos use (not currently in the
testsuite).

The original purpose of this patch was to have Samba able to pass a
socket address stucture from the BSD layer into the kerberos routines
and back again.   It also removes nbt_peer_addr, which was being used
for a similar purpose.

It is a large change, but worthwhile I feel.

Andrew Bartlett
(This used to be commit 88198c4881)
2007-10-10 13:49:57 -05:00
Stefan Metzmacher
f0e3a0312d r12796: use the correct address as initiator
metze
(This used to be commit ba97e7c06a)
2007-10-10 13:49:56 -05:00
Stefan Metzmacher
15ffd2c8b3 r12784: implement a simplified version of verifying old active replicas, with the owner
server, we you nbt name queries for this....

I assume w2k3 uses DCERPC calls or some WINSREPL calls for this,
but our version should work till I find out more details...

metze
(This used to be commit ff81f9e780)
2007-10-10 13:49:55 -05:00
Stefan Metzmacher
fa9aa1472b r12780: propagate local records, when replicas are rejected on conflicts
metze
(This used to be commit c64aef570e)
2007-10-10 13:49:54 -05:00
Stefan Metzmacher
a55287a285 r12775: free elements early...
metze
(This used to be commit 49f78e21fe)
2007-10-10 13:49:53 -05:00
Stefan Metzmacher
733dc7b073 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
(This used to be commit 0382b3135c)
2007-10-10 13:49:43 -05:00
Stefan Metzmacher
0817627746 r12701: the first scavenging run should happen after half of the renew_interval,
and not on startup

metze
(This used to be commit fd234ebbac)
2007-10-10 13:49:41 -05:00
Jelmer Vernooij
63d718e243 r12696: Reduce the size of include/structs.h
(This used to be commit 6391761601)
2007-10-10 13:49:40 -05:00
Stefan Metzmacher
6fbbd47164 r12679: create a sperate function to create the 'winsOwner' part of the search filter,
this is to handle the special '0.0.0.0' of old or manual added owned records

metze
(This used to be commit 4c7306608c)
2007-10-10 13:49:37 -05:00
Stefan Metzmacher
b75ed7d7ac 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
(This used to be commit e43de87d06)
2007-10-10 13:49:36 -05:00
Stefan Metzmacher
40b9d4f62d r12674: make use of the winsdb functions
metze
(This used to be commit 9a7da608e2)
2007-10-10 13:49:36 -05:00
Stefan Metzmacher
60d27d8505 r12642: only do push notifications when something changed
metze
(This used to be commit 61f1c8c347)
2007-10-10 13:49:33 -05:00
Stefan Metzmacher
905c3ff8e1 r12618: use our primary interface address or the "winsdb:local_owner" -address
as winsOwner: attrbute for owned records

metze
(This used to be commit 37dece8304)
2007-10-10 13:49:05 -05:00
Stefan Metzmacher
0391b1cb3a r12617: create a winsdb_handle and pass that arround,
so we later can hang the local owner address, on this handle too

metze
(This used to be commit 49ba4cc111)
2007-10-10 13:49:05 -05:00
Jelmer Vernooij
d4de4c2d21 r12608: Remove some unused #include lines.
(This used to be commit 70e7449318)
2007-10-10 13:49:03 -05:00
Jelmer Vernooij
2cd5ca7d25 r12542: Move some more prototypes out to seperate headers
(This used to be commit 0aca5fd513)
2007-10-10 13:47:55 -05:00
Andrew Tridgell
3fb95418fa r12532: log a message giving the IPs of non-partner clients trying WINS replication
(makes getting the wins config right much easier)
(This used to be commit 3016c7ee13)
2007-10-10 13:47:52 -05:00
Jelmer Vernooij
d8e35f8828 r12498: Eliminate INIT_OBJ_FILES and ADD_OBJ_FILES. We were not using
the difference between these at all, and in the future the
fact that INIT_OBJ_FILES include smb_build.h will be sufficient to
have recompiles at the right time.
(This used to be commit b24f2583ed)
2007-10-10 13:47:45 -05:00
Stefan Metzmacher
bc97484e39 r12448: add some usefull debug messages
metze
(This used to be commit 806d76134d)
2007-10-10 13:47:41 -05:00
Stefan Metzmacher
c05019a04b 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
(This used to be commit 7d1f7ae9c6)
2007-10-10 13:47:38 -05:00
Stefan Metzmacher
adb30c5b2f r12391: use the new periodic schedule system for the pull replication too
metze
(This used to be commit 3383568c31)
2007-10-10 13:47:34 -05:00
Stefan Metzmacher
28411a5c04 r12388: fix debug messages
metze
(This used to be commit 8b99b2d6c4)
2007-10-10 13:47:33 -05:00
Stefan Metzmacher
a4eb8fc49b 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
(This used to be commit b6943b11fc)
2007-10-10 13:47:31 -05:00
Stefan Metzmacher
810833ad93 r12309: fix a crash bug, which appens in an error case
metze
(This used to be commit 292bb4b6cb)
2007-10-10 13:47:28 -05:00
Stefan Metzmacher
736543016e 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
(This used to be commit baa4a7a9d4)
2007-10-10 13:47:28 -05:00
Stefan Metzmacher
1d91ad0f73 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
(This used to be commit fa1a5660bb)
2007-10-10 13:47:23 -05:00
Stefan Metzmacher
b1e5004665 r12241: fix the inform push notifies
metze
(This used to be commit 626d0e6fe5)
2007-10-10 13:47:23 -05:00
Stefan Metzmacher
39f914d4e7 r12230: prepare for a generic periodic processing scheduling of
pull,push,scavenging and reread-config events

metze
(This used to be commit 977117278c)
2007-10-10 13:47:22 -05:00
Stefan Metzmacher
36acd6e79c 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
(This used to be commit f0105b7fcd)
2007-10-10 13:47:17 -05:00
Andrew Tridgell
111a920fdb r12116: got rid of composite_trigger_done() and composite_trigger_error(), and
instead make the normal composite_done() and composite_error()
functions automatically trigger a delayed callback if the caller has
had no opportunity to setup a async callback

this removes one of the common mistakes in writing a composite function
(This used to be commit f9413ce792)
2007-10-10 13:47:11 -05:00
Stefan Metzmacher
dbd36ef49d r12078: fix the build on hosts with old compilers
metze
(This used to be commit 82fa27da07)
2007-10-10 13:47:06 -05:00
Stefan Metzmacher
7dbe0e3199 r12072: fix sgroup,active,owned vs. sgroup,non-active case
metze
(This used to be commit 47ce4286de)
2007-10-10 13:47:05 -05:00
Stefan Metzmacher
82d0d26eaa r12071: - implement MHOMED merging
- implement late release demands

we now pass the full NBT-WINSREPLICATION torture test
but only with non-socket_wrapper mode

metze
(This used to be commit bd78c97cff)
2007-10-10 13:47:05 -05:00
Stefan Metzmacher
035ea6b1eb r12023: use the NBTD IRPC proxy calls for implementing the challenge and release demand
conflict cases

metze
(This used to be commit 9e84c85b3d)
2007-10-10 13:47:01 -05:00
Stefan Metzmacher
363d2f69a8 r12021: remove shortpath for winsdb_lookup, this isn't needed
metze
(This used to be commit 8fb07b1ea8)
2007-10-10 13:47:00 -05:00
Tim Potter
03d301ead5 r11967: Fix more 64-bit warnings.
(This used to be commit 9c4436a124)
2007-10-10 13:46:52 -05:00
Stefan Metzmacher
72d0ad78cd r11908: implement SGROUP merging, that passes the different owner tests
(but only without socket_wrapper, I need to look at that later
 and then add the different_owner test to NBT-WINSREPLICATION-QUICK
 so that it'll be runned by make test)

metze
(This used to be commit 9ef3358034)
2007-10-10 13:46:47 -05:00
Stefan Metzmacher
329c5e0a5f r11896: max_version of 0 means unlimited
metze
(This used to be commit 9872348ac8)
2007-10-10 13:46:43 -05:00
Stefan Metzmacher
4e84ae3d3f r11881: fix debug messages
metze
(This used to be commit 71293f41a7)
2007-10-10 13:46:40 -05:00
Stefan Metzmacher
af10a48174 r11880: - we finally start to apply replicas to our database
- currently only the ADD, REPLACE and NOT REPLACE cases are handled complete
- other cases are just skiped for now

metze
(This used to be commit f889d110f5)
2007-10-10 13:46:40 -05:00
Stefan Metzmacher
c222cef178 r11879: some fixes for the new ldb api
metze
(This used to be commit f5b672edc0)
2007-10-10 13:46:40 -05:00
Stefan Metzmacher
e7d4f5555f r11878: don't get only newer records than the last one we got
metze
(This used to be commit 52b1cdae9e)
2007-10-10 13:46:40 -05:00
Stefan Metzmacher
4725c3a83d r11873: add some interval vars to the service context
metze
(This used to be commit 1d80ba062a)
2007-10-10 13:46:39 -05:00
Stefan Metzmacher
f7e1df6de7 r11832: - some updates for the conflict resolving logic
- use better function names

metze
(This used to be commit 35ab665957)
2007-10-10 13:46:36 -05:00
Simo Sorce
5c95905871 r11567: Ldb API change patch.
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 22c8c97e6f)
2007-10-10 13:45:53 -05:00
Stefan Metzmacher
0c33769399 r11552: fix indent
metze
(This used to be commit 021060b429)
2007-10-10 13:45:53 -05:00
Stefan Metzmacher
c643b10d09 r11547: - don't do pull replication when pullIntervall is 0
- don't do push replication when pushChangeCount is 0

metze
(This used to be commit 4122e9ec3a)
2007-10-10 13:45:52 -05:00
Stefan Metzmacher
b323a81b7c r11331: add conflict cases owned,released vs. replica
metze
(This used to be commit d3049936a5)
2007-10-10 13:45:20 -05:00
Jelmer Vernooij
4c5a4a7e02 r11244: Relative path names in .mk files
(This used to be commit 24e1030090)
2007-10-10 13:45:06 -05:00
Stefan Metzmacher
bc43d1b6f0 r11189: add some more special group vs. special group tests,
to make sure that replicas from the same owner are blinding overwritten
in all cases

metze
(This used to be commit 466baf737a)
2007-10-10 13:44:58 -05:00
Stefan Metzmacher
47c0c176e9 r11188: - add multi homed vs. multi homed section
metze
(This used to be commit 838323e58f)
2007-10-10 13:44:58 -05:00
Stefan Metzmacher
7e3d377b1d r11186: - get rid of some .extra = True cases
- add multihomed vs unique section
- update conflict handling for the above case

metze
(This used to be commit c043e56efd)
2007-10-10 13:44:58 -05:00
Stefan Metzmacher
50030d5c4f r11178: add some logic functions for the replica_vs_replica conflict handling
to our winsrepl server, but it handles only the simple cases (without merging)
and we still didn't apply records to our wins.ldb, we just print out what we would do

metze
(This used to be commit e4edeeaa0a)
2007-10-10 13:44:56 -05:00
Stefan Metzmacher
305b2b0c49 r11089: start the winsreplication task when we run with wins support = yes
metze
(This used to be commit d49a1d2b15)
2007-10-10 13:44:46 -05:00
Stefan Metzmacher
cffd522b5c r11052: bring samba4 uptodate with the samba4-winsrepl branch,
before the bad merge

metze
(This used to be commit 471c0ca4ab)
2007-10-10 13:44:43 -05:00
Stefan Metzmacher
94a8893bf4 r11048: r10539@SERNOX: metze | 2005-09-27 14:59:47 +0200
fix the build for changes from SAMBA_4_0 branch

 metze
 r10541@SERNOX:  metze | 2005-09-27 15:05:33 +0200
 use a transaction when we allocate a new version

 metze
 r10549@SERNOX:  metze | 2005-09-27 18:58:37 +0200
 - add first start of wins pull replication
 - we not yet apply records to our database but we fetch them correct form our partners
   (we need conflict handling for this)
 - we also need to filter out our own records!

 metze
 r10568@SERNOX:  metze | 2005-09-28 11:33:04 +0200
 move composite helpers to a seperate file, create a a seperate file for the conflict resolving logic

 metze
 r10571@SERNOX:  metze | 2005-09-28 12:00:17 +0200
 add forward declarations...to fix the build

 metze
 r10612@SERNOX:  metze | 2005-09-29 16:11:06 +0200
 we have a nbt_name now, and don't need to parse it

 metze
 r10614@SERNOX:  metze | 2005-09-29 16:38:35 +0200
 filter out our own records

 metze
 r10620@SERNOX:  metze | 2005-09-29 18:07:08 +0200
 - handle mutliple addresses in WREPL_REPL_SEND_REPLY
 - make strings always valid talloc pointers

 metze
 r10621@SERNOX:  metze | 2005-09-29 18:09:41 +0200
 use debug level 2

 metze
 r10622@SERNOX:  metze | 2005-09-29 18:48:05 +0200
 - add one more debug message when we reply no record
 - fix min max logic

 metze
 r10623@SERNOX:  metze | 2005-09-29 20:49:06 +0200
 build fixes...

 metze
 r10629@SERNOX:  metze | 2005-09-30 00:11:41 +0200
 - use seperate attributes for type, state, nodetype, is_static

 ... the winserver.c code needs some more updates to correctly,
 create special group and multihomed registrations...

 metze
 r10640@SERNOX:  metze | 2005-09-30 04:07:34 +0200
 - add some short path for the composite helper functions
   they will be used in the next commit

 metze
 r10642@SERNOX:  metze | 2005-09-30 06:29:06 +0200
 fix the build

 metze
 r10655@SERNOX:  metze | 2005-09-30 17:36:49 +0200
 - implement the WREPL_REPL_UPDATE* and WREPL_REPL_INFORM*
   this includes the connection fliping into a client connection
   for WREPL_REPL_UPDATE*

 NOTE: I not yet found out how to get the w2k server to use INFORM against samba4
       it uses inform against w2k and w2k3 but UPDATE against nt4 and samba4

 what's left now is to be able to initiate INFORM and UPDATE requests to notify
 our pull partners

 metze
 r10727@SERNOX:  metze | 2005-10-05 14:11:05 +0200
 fix the build

 metze
 r10770@SERNOX:  metze | 2005-10-06 16:56:01 +0200
 - move the table filling to a seperate function, will be reused later
 - fix the build, wrepl_nbt_name fixes
 - remove state -> update_state

 metze
 r10771@SERNOX:  metze | 2005-10-06 17:04:48 +0200
 add a function to create a wreplsrv_in_connection from a client connection

 metze
 r10772@SERNOX:  metze | 2005-10-06 17:13:51 +0200
 - make the connection code more generic to handle the pull cached connection,
   push cached connection or given connections
 - when we don't use a cached connection, disconnection when a pull_cycle is done
 - fix the build and use the configured source ip

 metze
 r10773@SERNOX:  metze | 2005-10-06 17:18:49 +0200
 - add composite functions for push notification

 metze
 r10774@SERNOX:  metze | 2005-10-06 17:23:46 +0200
 - use periodic push notifycation, this is just for now
   as it needs to be configurable and and be triggered when the local database
   has changes since the last notify
 - I also need to work out how to decide if the partner supports
   persistent connections and WREPL_REPL_INFORM* messages

 metze
 r10923@SERNOX:  metze | 2005-10-12 16:52:34 +0200
 fix the build becuse of conflicts with main SAMBA_4_0 tree

 metze
(This used to be commit 6d97dd6e50)
2007-10-10 13:44:42 -05:00
Stefan Metzmacher
8aebec1be5 r11043: r10362@SERNOX: metze | 2005-09-20 22:37:28 +0200
repare for pull replication support

 metze
(This used to be commit a75402c45f)
2007-10-10 13:42:35 -05:00
Stefan Metzmacher
676b220f3e r11040: r10357@SERNOX: metze | 2005-09-20 21:28:11 +0200
- 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 82bad3f3ef)
2007-10-10 13:42:34 -05:00
Stefan Metzmacher
8755cd4a9c r11039: r10352@SERNOX: metze | 2005-09-20 16:50:04 +0200
move stuff the belong to incoming connections only
 into a seperate file wrepl_in_connection.c

 metze
(This used to be commit c2b2b58220)
2007-10-10 13:42:34 -05:00
Stefan Metzmacher
b3d0ac41db r11038: r10351@SERNOX: metze | 2005-09-20 16:11:17 +0200
fix namebuf_len, when type is 0x00

 metze
(This used to be commit 1b2effa01b)
2007-10-10 13:42:33 -05:00
Stefan Metzmacher
2f54bab951 r11036: r10349@SERNOX: metze | 2005-09-20 15:38:31 +0200
we know answer send_requests correctly

 metze
(This used to be commit aecc9ca1cc)
2007-10-10 13:42:33 -05:00
Stefan Metzmacher
681ba379e4 r11035: r10347@SERNOX: metze | 2005-09-20 13:40:24 +0200
make wreplsrv_find_owner public

 metze
(This used to be commit 6fa37c0a2b)
2007-10-10 13:42:33 -05:00
Stefan Metzmacher
8bb5bcb674 r11033: r10343@SERNOX: metze | 2005-09-20 11:03:20 +0200
- reply to table_queries
 - reply to a send_request with an empty send_reply

 metze
(This used to be commit a25279f052)
2007-10-10 13:42:32 -05:00
Stefan Metzmacher
e5c518bebd 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
(This used to be commit 4490a2864e)
2007-10-10 13:42:32 -05:00
Stefan Metzmacher
cbe9ae1234 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
(This used to be commit da3d18e454)
2007-10-10 13:42:16 -05:00
Stefan Metzmacher
d49e67f06f 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
(This used to be commit 42b69461aa)
2007-10-10 13:41:30 -05:00
Stefan Metzmacher
b2da403af9 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
(This used to be commit c9a8544446)
2007-10-10 13:41:25 -05:00
Stefan Metzmacher
e44c76ebd7 r11004: r10083@SERNOX: metze | 2005-09-08 16:50:32 +0200
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 55a2016ba3)
2007-10-10 13:41:14 -05:00