Stefan Metzmacher
d6c48b4a5f
s4:wrepl_server: use SOCKET_FLAG_NOCLOSE instead of a dup()
...
The key thing is that we might have to turn the incomming
connection into a outgoing connection.
This change makes sense anyway, because we donate the fd to
tstream.
metze
2010-09-28 03:48:10 +02:00
Stefan Metzmacher
993d37baf5
s4:wrepl_server: use irpc_binding_handle_by_name() in wreplsrv_scavenging_replica_active_records()
...
metze
2010-09-03 17:02:10 +02:00
Stefan Metzmacher
f43ec0e751
s4:wrepl_server: use irpc_binding_handle_by_name() in r_do_release_demand()
...
metze
2010-09-03 17:02:09 +02:00
Stefan Metzmacher
2e07f82f7c
s4:wrepl_server: use irpc_binding_handle_by_name() in r_do_challenge()
...
metze
2010-09-03 17:02:09 +02:00
Andrew Tridgell
6b266b85cf
s4-loadparm: 2nd half of lp_ to lpcfg_ conversion
...
this converts all callers that use the Samba4 loadparm lp_ calling
convention to use the lpcfg_ prefix.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-16 18:24:27 +10:00
Jelmer Vernooij
f9ca9e46ad
Finish removal of iconv_convenience in public API's.
2010-05-18 11:45:30 +02:00
Stefan Metzmacher
b7782514b9
s4:wrepl_server: use tsocket_address functions to get the peer ip
...
metze
2010-04-27 17:05:30 +02:00
Stefan Metzmacher
7f25723cf5
s4:wrepl_server: use tsocket_address functions to get the peer ip
...
metze
2010-04-27 16:18:19 +02:00
Andrew Tridgell
b690fedef5
s4-waf: removed the AUTOGENERATED markers
...
we won't be using the mk -> wscript generator again
2010-04-06 20:27:16 +10:00
Andrew Tridgell
f9eae32f4b
s4-waf: mark the wscript files as python so vim/emacs knows how to highlight them
2010-04-06 20:27:11 +10:00
Andrew Tridgell
845e0cbe6f
build: commit all the waf build files in the tree
2010-04-06 20:26:48 +10:00
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