Stefan Metzmacher
ae049c49df
s4:libcli/wrepl: rewrite the low level request handling to use tevent_queue and tstream_context
...
metze
2010-03-07 17:12:39 +01:00
Stefan Metzmacher
acd3a2729e
s4:wrepl_out_helpers: add a WREPLSRV_PUSH_NOTIFY_STAGE_WAIT_UPDATE stage
...
This makes the logic more consistent.
metze
2010-03-07 17:06:04 +01:00
Stefan Metzmacher
8c16d5e4dc
s4:libcli/wrepl: add wrepl_socket_is_connected()
...
metze
2010-03-07 16:52:38 +01:00
Stefan Metzmacher
2450fc1c27
s4:libcli/wrepl: implement wrepl_request_send as a tevent_req based wrapper
...
metze
2010-03-07 16:52:36 +01:00
Matthias Dieter Wallnöfer
6a91bf60e2
s4:wrepl_server - change also here the counter variables to "unsigned"
...
I changed also some "uint32_t" to "unsigned" since the LDB interface doesn't
specify the bitlength of the unsigned type.
2010-03-05 17:51:30 +01:00
Stefan Metzmacher
013184a182
s4:libcli/wrepl: convert wrepl_associate_stop_send to tevent_req
...
metze
2010-03-05 14:09:03 +01:00
Stefan Metzmacher
28033bf635
s4:libcli/wrepl: convert wrepl_connect_send to tevent_req
...
metze
2010-03-05 14:09:03 +01:00
Stefan Metzmacher
883b10983b
s4:libcli/wrepl: convert wrepl_associate_send to tevent_req
...
metze
2010-03-05 14:09:02 +01:00
Stefan Metzmacher
2e24def806
s4:libcli/wrepl: convert wrepl_pull_table_send to tevent_req
...
metze
2010-03-05 14:09:02 +01:00
Stefan Metzmacher
50f1dc9db8
s4:libcli/wrepl: convert wrepl_pull_names_send to tevent_req
...
metze
2010-03-05 14:09:02 +01:00
Andreas Schneider
3f946240fa
s4-winrepl: Migrated the wins replication server to tsocket.
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-03-03 09:22:37 +01:00
Brad Hards
7a23b9769b
Various source4 spelling fixes.
...
Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
2010-02-22 21:45:37 +01:00
Andrew Tridgell
1da87fc988
s4-wrepl: use TYPESAFE_QSORT() in wins repl code
2010-02-13 22:36:12 +11:00
Stefan Metzmacher
7a02a2ba80
s4:wrepl_server: truncate the scope of a netbios name to 237 bytes as Windows 2008 does
...
metze
2010-02-01 15:23:32 +01:00
Andrew Tridgell
98e4393df9
s4-dsdb: create a static system_session context
...
This patch adds a system_session cache, preventing us from having to
recreate it on every ldb open, and allowing us to detect when the same
session is being used in ldb_wrap
2009-10-23 14:52:17 +11:00
Andrew Tridgell
e9a589feac
s4-server: kill main daemon if a task fails to initialise
...
When one of our core tasks fails to initialise it can now ask for the
server as a whole to die, rather than limping along in a degraded
state.
2009-09-18 18:05:55 -07:00
Karolin Seeger
b3a2b3ade0
s4/wrepl_server: Fix typo in comment.
...
Karolin
2009-02-09 19:05:20 +01:00
Stefan Metzmacher
d9c30894a1
s4:service_stream: s/private/private_data
...
metze
2009-02-02 13:09:00 +01:00
Stefan Metzmacher
1441e87e24
s4:service_task: s/private/private_data
...
metze
2009-02-02 13:08:59 +01:00
Stefan Metzmacher
e5e0a06485
s4:wrepl_request: s/private/private_data
...
metze
2009-02-02 13:08:50 +01:00
Stefan Metzmacher
35f7cee25d
s4:wrepl_server: s/private/private_data
...
metze
2009-02-02 13:08:38 +01:00
Stefan Metzmacher
5f13710ced
s4:irpc: avoid c++ reserved word 'private'
...
metze
2009-02-01 00:17:20 +01:00
Stefan Metzmacher
6bcd2cbd27
wrepl_server: make 'use inform' the default and autofallback against old servers
...
metze
(from samba4wins tree f44c8c8e1986e2105e899bb1f8a3896575eef582)
2009-01-19 07:05:53 +01:00
Stefan Metzmacher
7c7bdf3669
wreplserver: add "wreplsrv:propagate name releases = yes" for replicated sgroup merges
...
metze
(from samba4wins tree 80cbe665e561182d28acc6ad474243b83f3e4d28)
2009-01-19 07:05:52 +01:00
Stefan Metzmacher
e1c968afd8
winsserver: add "wreplsrv:propagate name releases" option
...
Add an option to propagate name releases directly.
This make the results for #1C name queries more consistent
among all servers.
It's off by default to match windows.
metze
(from samba4wins tree 166e9fdffb9f4e26513c3b4ec1f6f168ecbe18f8)
2009-01-19 07:05:52 +01:00
Stefan Metzmacher
81a2a43a5a
wrepl_scavenging: add a comment to make the is_static case more clear
...
metze
(from samba4wins tree 67fa7dc4fe36b143d36df1309840328a14683e31)
2009-01-19 07:05:51 +01:00
Stefan Metzmacher
bbe4785f34
wrepl_server: fix the record expire time of sgroup merges
...
if we're the owner, the expire time becomes the highest
expire time of owned addresses
metze
(from samba4wins tree 024f439db45046c7c0bb4759c75877462405baec)
2009-01-19 07:05:51 +01:00
Stefan Metzmacher
c4402e3fde
wrepl_server: use a local 'local_owner' variable to make the code more readable
...
metze
(from samba4wins tree eba9a8ce0641a2984112f4e1473801fa449ed96d)
2009-01-19 07:05:50 +01:00
Stefan Metzmacher
65f096c8cd
wreplsrv: don't log scavenging events at level 0
...
metze
(from samba4wins tree 7a1d4fac9d77440c2c463bfdb2a5671e4817cfdf)
2009-01-19 07:05:25 +01:00
Stefan Metzmacher
9598d775a5
wreplsrv: log a successful replication cycle at level 1
...
metze
(from samba4wins tree b411e60e1536668e11bc5d8eaa389071b25077bf)
2009-01-19 07:05:25 +01:00
Stefan Metzmacher
6d107fff13
wreplsrv: log replication failures at log level 0
...
metze
(from samba4wins tree 405cbb74b7191e744178894a5e0ac4abcac2a4fe)
2009-01-19 07:05:24 +01:00
Stefan Metzmacher
183c379fe5
s4:lib/tevent: rename structs
...
list=""
list="$list event_context:tevent_context"
list="$list fd_event:tevent_fd"
list="$list timed_event:tevent_timer"
for s in $list; do
o=`echo $s | cut -d ':' -f1`
n=`echo $s | cut -d ':' -f2`
r=`git grep "struct $o" |cut -d ':' -f1 |sort -u`
files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4`
for f in $files; do
cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp
mv $f.tmp $f
done
done
metze
2008-12-29 20:46:40 +01:00
Jelmer Vernooij
928fd47c3d
s4: Fix subsystem for various services in samba daemon.
2008-12-22 19:04:55 +01:00
Stefan Metzmacher
4f5b8b68d5
s4:libcli/wrepl: we don't need to resolve names
...
metze
2008-12-18 13:32:50 +01:00
Jelmer Vernooij
9565999755
Fix include paths to new location of libutil.
2008-10-11 21:31:42 +02:00
Jelmer Vernooij
6a689c23e8
Rename smbd -> samba.
...
This reverts commit 05ea5e23cf
.
Conflicts:
source4/smbd/server.c
2008-09-24 03:16:15 +02:00
Simo Sorce
508527890a
Merge ldb_search() and ldb_search_exp_fmt() into a simgle function.
...
The previous ldb_search() interface made it way too easy to leak results,
and being able to use a printf-like expression turns to be really useful.
2008-09-23 18:17:46 -04:00
Stefan Metzmacher
1d92b2211c
s4: allways initialize the process model before it's used
...
metze
2008-09-22 18:16:09 +02:00
Jelmer Vernooij
05ea5e23cf
Revert "Rename smbd -> samba."
...
This reverts commit 0e9008be35
.
2008-09-21 21:32:40 +02:00
Jelmer Vernooij
0e9008be35
Rename smbd -> samba.
2008-09-21 21:26:40 +02:00
Jelmer Vernooij
4c70cda986
Fix a couple (well, little more than that..) of typos.
...
(This used to be commit a6b5211994
)
2008-05-18 23:02:47 +02:00
Jelmer Vernooij
4c8756f147
Create prototype headers from Makefile directory, without smb_build in the middle.
...
(This used to be commit f4a77b96f9
)
2008-05-18 22:30:08 +02:00
Jelmer Vernooij
03643aec88
Use variables for source directory in a couple more places.
...
(This used to be commit c41bd3005f
)
2008-05-18 19:54:27 +02:00
Stefan Metzmacher
250478d044
smbd: pass down lp_ctx to stream_new_connection_merge()
...
metze
(This used to be commit 91e9062265
)
2008-05-17 02:15:18 +02:00
Jelmer Vernooij
cc9c4aaa8d
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3
...
Conflicts:
source/Makefile
source/auth/config.mk
source/auth/gensec/config.mk
source/build/m4/public.m4
source/build/make/python.mk
source/build/make/rules.mk
source/build/smb_build/header.pm
source/build/smb_build/main.pl
source/build/smb_build/makefile.pm
source/dsdb/config.mk
source/dsdb/samdb/ldb_modules/config.mk
source/kdc/config.mk
source/lib/events/config.mk
source/lib/events/events.c
source/lib/ldb/config.mk
source/lib/nss_wrapper/config.mk
source/lib/policy/config.mk
source/lib/util/config.mk
source/libcli/smb2/config.mk
source/libnet/config.mk
source/librpc/config.mk
source/nbt_server/config.mk
source/ntptr/ntptr_base.c
source/ntvfs/posix/config.mk
source/ntvfs/sysdep/config.mk
source/param/config.mk
source/rpc_server/config.mk
source/rpc_server/service_rpc.c
source/scripting/ejs/config.mk
source/scripting/python/config.mk
source/smb_server/config.mk
source/smbd/server.c
source/torture/config.mk
source/torture/smb2/config.mk
source/wrepl_server/config.mk
(This used to be commit 13bbd42068
)
2008-04-25 10:04:20 +01:00
Jelmer Vernooij
21fc767378
Specify event_context to ldb_wrap_connect explicitly.
...
(This used to be commit b4e1ae07a2
)
2008-04-17 12:23:44 +02:00
Jelmer Vernooij
e9017ba418
Use _OBJ_FILES variables in a couple more places.
...
(This used to be commit 92856d5054
)
2008-04-14 17:22:58 +02:00
Jelmer Vernooij
fb6fdfce37
Fix the build.
...
(This used to be commit f2e4974471
)
2008-03-08 17:02:40 +01:00
Jelmer Vernooij
b29d47edcf
Move object file lists to the Makefile.
...
(This used to be commit a7e6d2a183
)
2008-03-03 18:25:28 +01:00
Jelmer Vernooij
4590432d62
Remove another global_loadparm instance.
...
(This used to be commit ccb29c0b46
)
2008-02-21 18:43:02 +01:00
Jelmer Vernooij
c38c2765d1
Remove yet more uses of global_loadparm.
...
(This used to be commit e01c1e87c0
)
2008-02-21 17:17:37 +01:00
Andrew Bartlett
0f8eeb81ec
Remove useless layer of indirection, where every service called
...
task_service_init() manually. Now this is called from service.c for
all services.
Andrew Bartlett
(This used to be commit 9c9a4731ca
)
2008-02-04 21:58:29 +11:00
Andrew Bartlett
23d681caf9
Rework service init functions to pass down service name. This is
...
needed to change prefork behaviour based on what service is being
started.
Andrew Bartlett and David Disseldorp
(This used to be commit 0d830580e3
)
2008-02-04 17:48:51 +11:00
Jelmer Vernooij
df408d056e
r26672: Janitorial: Remove uses of global_loadparm.
...
(This used to be commit 18cd08623e
)
2008-01-05 13:06:03 -06:00
Jelmer Vernooij
2c8c9a5355
r26669: Janitorial: Remove uses of global_loadparm.
...
(This used to be commit 50c46160d9
)
2008-01-05 09:42:02 -06:00
Jelmer Vernooij
7d5f0e0893
r26639: librpc: Pass iconv convenience on from RPC connection to NDR library, so it can be overridden by OpenChange.
...
(This used to be commit 2f29f80e07
)
2008-01-01 16:12:15 -06:00
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