ira/wip.git
15 years agoFix path to check_python.m4.
Jelmer Vernooij [Wed, 21 Jan 2009 17:54:20 +0000 (18:54 +0100)]
Fix path to check_python.m4.

15 years agolibsmbconf: Remove use of some Samba3-specific macros.
Jelmer Vernooij [Wed, 21 Jan 2009 17:50:16 +0000 (18:50 +0100)]
libsmbconf: Remove use of some Samba3-specific macros.

15 years agolibsmbconf: Add build magic for Samba 4.
Jelmer Vernooij [Wed, 21 Jan 2009 17:50:02 +0000 (18:50 +0100)]
libsmbconf: Add build magic for Samba 4.

15 years agoMerge branch 'master' of ssh://git.samba.org/data/git/samba
Jelmer Vernooij [Wed, 21 Jan 2009 17:40:06 +0000 (18:40 +0100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba

15 years agolibsmbconf: move the non-registry parts of libsmbconf to top level
Michael Adam [Wed, 21 Jan 2009 17:10:23 +0000 (18:10 +0100)]
libsmbconf: move the non-registry parts of libsmbconf to top level

Michael

15 years agos3:libsmbconf: include smbconf headers with lib/smbconf prefix
Michael Adam [Wed, 21 Jan 2009 17:25:47 +0000 (18:25 +0100)]
s3:libsmbconf: include smbconf headers with lib/smbconf prefix

Michael

15 years agos3:libsmbconf: use talloc_free instead of TALLOC_FREE in reg backend
Michael Adam [Wed, 21 Jan 2009 16:16:37 +0000 (17:16 +0100)]
s3:libsmbconf: use talloc_free instead of TALLOC_FREE in reg backend

Michael

15 years agos3:libsmbconf: use talloc_free instead of TALLOC_FREE in txt backend
Michael Adam [Wed, 21 Jan 2009 16:14:56 +0000 (17:14 +0100)]
s3:libsmbconf: use talloc_free instead of TALLOC_FREE in txt backend

Michael

15 years agos3:libsmbconf: use talloc_free instead of TALLOC_FREE in smbconf_init
Michael Adam [Wed, 21 Jan 2009 16:12:50 +0000 (17:12 +0100)]
s3:libsmbconf: use talloc_free instead of TALLOC_FREE in smbconf_init

Michael

15 years agos3:libsmbconf: use talloc_free instead of TALLOC_FREE in testsuite
Michael Adam [Wed, 21 Jan 2009 16:11:46 +0000 (17:11 +0100)]
s3:libsmbconf: use talloc_free instead of TALLOC_FREE in testsuite

Michael

15 years agos3:libsmbconf: use talloc_free instead of TALLOC_FREE in smbconf_util.c
Michael Adam [Wed, 21 Jan 2009 16:11:02 +0000 (17:11 +0100)]
s3:libsmbconf: use talloc_free instead of TALLOC_FREE in smbconf_util.c

Michael

15 years agos3:libsmbconf: use talloc_free instead of TALLOC_FREE in smbconf.c
Michael Adam [Wed, 21 Jan 2009 16:10:20 +0000 (17:10 +0100)]
s3:libsmbconf: use talloc_free instead of TALLOC_FREE in smbconf.c

Michael

15 years agos3:libsmbconf: remove the init headers from smbconf.h
Michael Adam [Wed, 21 Jan 2009 15:59:09 +0000 (16:59 +0100)]
s3:libsmbconf: remove the init headers from smbconf.h

give the smbconf_init() dispatcher and the backends
(smbconf_reg and smbconf_txt) a header of their own each.

This allows to use the basic infrastructure and
single backends individually.

Michael

15 years agos3:libsmbconf: remove unused function smbconf_is_writeable_bystring()
Michael Adam [Wed, 21 Jan 2009 15:24:32 +0000 (16:24 +0100)]
s3:libsmbconf: remove unused function smbconf_is_writeable_bystring()

Michael

15 years agopidl/python: Add explicit casts, fixes warnings about casts when enabled.
Jelmer Vernooij [Wed, 21 Jan 2009 17:38:40 +0000 (18:38 +0100)]
pidl/python: Add explicit casts, fixes warnings about casts when enabled.

15 years agos3/vfs_extd_audit: Don't ignore "syslog = 0".
Karolin Seeger [Wed, 21 Jan 2009 17:31:30 +0000 (18:31 +0100)]
s3/vfs_extd_audit: Don't ignore "syslog = 0".

This fixes bug #5956.
Thanks to Oskar Wycislak <cantorek [at] gmail.com> for reporting
and providing a patch!

Karolin

15 years agoFix warning; base dn is no longer const.
Jelmer Vernooij [Wed, 21 Jan 2009 17:20:23 +0000 (18:20 +0100)]
Fix warning; base dn is no longer const.

15 years agoMove check_python.m4 to common m4 directory.
Jelmer Vernooij [Wed, 21 Jan 2009 17:07:41 +0000 (18:07 +0100)]
Move check_python.m4 to common m4 directory.

15 years agoexpand-includes: Add simple protection against infinite recursion.
Jelmer Vernooij [Wed, 21 Jan 2009 16:32:08 +0000 (17:32 +0100)]
expand-includes: Add simple protection against infinite recursion.

15 years agoAutomagically expand includes in Makefile.in during configure time
Jelmer Vernooij [Wed, 21 Jan 2009 16:21:45 +0000 (17:21 +0100)]
Automagically expand includes in Makefile.in during configure time
when make is not GNU Make.

15 years agoOnly check for Perl once in Samba 3.
Jelmer Vernooij [Wed, 21 Jan 2009 15:49:36 +0000 (16:49 +0100)]
Only check for Perl once in Samba 3.

15 years agoMove check_make.m4 to the top-level.
Jelmer Vernooij [Wed, 21 Jan 2009 15:46:52 +0000 (16:46 +0100)]
Move check_make.m4 to the top-level.

15 years agoMerge branch 'master' of ssh://git.samba.org/data/git/samba
Jelmer Vernooij [Wed, 21 Jan 2009 15:18:06 +0000 (16:18 +0100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba

15 years agoReplace ldb_search() with ldb_search_exp_fmt(), like in Samba 4.
Jelmer Vernooij [Wed, 21 Jan 2009 15:15:53 +0000 (16:15 +0100)]
Replace ldb_search() with ldb_search_exp_fmt(), like in Samba 4.

15 years agoReorder arguments to ldb_search() to match what is in Samba 4.
Jelmer Vernooij [Wed, 21 Jan 2009 14:18:05 +0000 (15:18 +0100)]
Reorder arguments to ldb_search() to match what is in Samba 4.

15 years agobuild-docs: cleanup exit of the script
Michael Adam [Wed, 21 Jan 2009 14:10:10 +0000 (15:10 +0100)]
build-docs: cleanup exit of the script

exit in the directory where it was called using pushd/popd.

Michael

15 years agos3:docs: clean build/catalog.xml in "make clean"
Michael Adam [Wed, 21 Jan 2009 14:09:46 +0000 (15:09 +0100)]
s3:docs: clean build/catalog.xml in "make clean"

Michael

15 years agos3:docs: clean generated .png images in "make clean"
Michael Adam [Wed, 21 Jan 2009 14:09:12 +0000 (15:09 +0100)]
s3:docs: clean generated .png images in "make clean"

Michael

15 years agoUse script path to find the setup directory.
Jelmer Vernooij [Wed, 21 Jan 2009 13:26:06 +0000 (14:26 +0100)]
Use script path to find the setup directory.

15 years agoMerge branch 'master' of ssh://git.samba.org/data/git/samba
Jelmer Vernooij [Wed, 21 Jan 2009 13:25:08 +0000 (14:25 +0100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba

15 years agoMerge branch 'master' of ssh://git.samba.org/data/git/samba
Jelmer Vernooij [Wed, 21 Jan 2009 13:24:16 +0000 (14:24 +0100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba

15 years agoMerge branch 'v4-0-test' of /home/jelmer/samba4
Jelmer Vernooij [Wed, 21 Jan 2009 13:07:38 +0000 (14:07 +0100)]
Merge branch 'v4-0-test' of /home/jelmer/samba4

15 years agoAllow calling DCE/RPC server implementations directly using
Jelmer Vernooij [Wed, 21 Jan 2009 13:05:51 +0000 (14:05 +0100)]
Allow calling DCE/RPC server implementations directly using
rpc_pipe_client.

15 years agobuild_docs: Use 'make distclean' instead of 'make clean'.
Karolin Seeger [Wed, 21 Jan 2009 10:37:30 +0000 (11:37 +0100)]
build_docs: Use 'make distclean' instead of 'make clean'.

This fixes bug #6058.
Thanks to Christian Perrier for reporting!

Karolin
(cherry picked from commit 162e4b66601b41dd5adb24e192f3b5a91dfb41cc)

Signed-off-by: Michael Adam <obnox@samba.org>
15 years agobuild-docs: Change to the right directory before calling 'make clean'.
Karolin Seeger [Tue, 9 Dec 2008 21:08:13 +0000 (22:08 +0100)]
build-docs: Change to the right directory before calling 'make clean'.
This fixes build-docs if it's called from the create-tarball script.

Karolin
(cherry picked from commit dd3ef73c8c184eaec7ee515ef2130f30f9e481b3)
(cherry picked from commit 8dd3a7bfde16e85a9ee509cf6bcfc788062705a5)

Signed-off-by: Michael Adam <obnox@samba.org>
15 years agobuild-docs: Add 'make clean'.
Karolin Seeger [Thu, 18 Sep 2008 13:52:06 +0000 (15:52 +0200)]
build-docs: Add 'make clean'.

Karolin
(cherry picked from commit cf40fb97239ed9a11e5750fde6e078233e567bba)

Signed-off-by: Michael Adam <obnox@samba.org>
15 years agoAllow overriding the function that ships the request in the Samba 3
Jelmer Vernooij [Wed, 21 Jan 2009 12:40:18 +0000 (13:40 +0100)]
Allow overriding the function that ships the request in the Samba 3
client code.

15 years agos4:auth: move make_server_info_netlogon_validation() function arround
Stefan Metzmacher [Wed, 21 Jan 2009 09:43:15 +0000 (10:43 +0100)]
s4:auth: move make_server_info_netlogon_validation() function arround

metze

15 years agomerged-build: propare to fix make test4
Stefan Metzmacher [Wed, 21 Jan 2009 09:15:22 +0000 (10:15 +0100)]
merged-build: propare to fix make test4

metze

15 years agoselftest: add --exeext parameter
Stefan Metzmacher [Wed, 21 Jan 2009 09:14:29 +0000 (10:14 +0100)]
selftest: add --exeext parameter

metze

15 years agos4:selftest: reference binaries via variables in tests.sh
Stefan Metzmacher [Wed, 21 Jan 2009 09:12:04 +0000 (10:12 +0100)]
s4:selftest: reference binaries via variables in tests.sh

metze

15 years agoselftest:Samba4: add bindir_path() utility function to construct the binary pathes
Stefan Metzmacher [Wed, 21 Jan 2009 09:09:30 +0000 (10:09 +0100)]
selftest:Samba4: add bindir_path() utility function to construct the binary pathes

metze

15 years agoselftest: bin/ is under $(builddir) instead of $(srcdir)
Stefan Metzmacher [Wed, 21 Jan 2009 09:05:53 +0000 (10:05 +0100)]
selftest: bin/ is under $(builddir) instead of $(srcdir)

metze

15 years agos4:python glue: fix dependecy to pyldb
Stefan Metzmacher [Wed, 21 Jan 2009 12:34:11 +0000 (13:34 +0100)]
s4:python glue: fix dependecy to pyldb

metze

15 years agos3:docs: fix ommission in fix of (real)distclean targets
Michael Adam [Wed, 21 Jan 2009 10:47:46 +0000 (11:47 +0100)]
s3:docs: fix ommission in fix of (real)distclean targets

Michael

15 years agos3:create-tarball: also include the VENDOR_PATCH in the version
Michael Adam [Wed, 21 Jan 2009 10:45:23 +0000 (11:45 +0100)]
s3:create-tarball: also include the VENDOR_PATCH in the version

Michael

15 years agos3:docs: fix distclean target and add realdistclean target
Michael Adam [Wed, 21 Jan 2009 10:41:14 +0000 (11:41 +0100)]
s3:docs: fix distclean target and add realdistclean target

- remove stuff created by configure in distclean
- remove stuff created by autoconf in realdistclean

Michael

15 years agoFix a typo
Volker Lendecke [Tue, 20 Jan 2009 22:31:51 +0000 (23:31 +0100)]
Fix a typo

15 years agos3:docs: clarify explanation of the allocator in the idmap_ldap manpage
Michael Adam [Wed, 21 Jan 2009 09:56:34 +0000 (10:56 +0100)]
s3:docs: clarify explanation of the allocator in the idmap_ldap manpage

Michael

15 years agos3:docs: clarify explanation of the allocator in the idmap_tdb manpage
Michael Adam [Wed, 21 Jan 2009 09:55:19 +0000 (10:55 +0100)]
s3:docs: clarify explanation of the allocator in the idmap_tdb manpage

Michael

15 years agos3:docs: clarify explanation of allocator in the idmap_tdb2 manpage
Michael Adam [Wed, 21 Jan 2009 09:49:48 +0000 (10:49 +0100)]
s3:docs: clarify explanation of allocator in the idmap_tdb2 manpage

Michael

15 years agos3:docs: fix copy and paste error in the idmap_tdb2 manpage
Michael Adam [Wed, 21 Jan 2009 09:38:49 +0000 (10:38 +0100)]
s3:docs: fix copy and paste error in the idmap_tdb2 manpage

Michael

15 years agos4:ldb: remove dependency to samba4's events wrapper
Stefan Metzmacher [Wed, 21 Jan 2009 08:16:45 +0000 (09:16 +0100)]
s4:ldb: remove dependency to samba4's events wrapper

metze

15 years agolibrpc: Fix warning caused by some empty debug strings
Tim Prouty [Mon, 19 Jan 2009 23:02:25 +0000 (15:02 -0800)]
librpc: Fix warning caused by some empty debug strings

It would probably be better to create a new macro such as DEBUGHDR to
allow empty strings for debug statements, but for the short term this
eliminates the warning with no negative consequences.

15 years agos3:docs: add a manpage for idmap_tdb2
Michael Adam [Tue, 20 Jan 2009 23:56:03 +0000 (00:56 +0100)]
s3:docs: add a manpage for idmap_tdb2

Michael

15 years agos3:docs: update the idmap_ldap manpage to reflect current facts.
Michael Adam [Tue, 20 Jan 2009 23:13:29 +0000 (00:13 +0100)]
s3:docs: update the idmap_ldap manpage to reflect current facts.

Michael

15 years agos3:docs: update the idmap_tdb manpage to reflect current facts.
Michael Adam [Tue, 20 Jan 2009 23:06:10 +0000 (00:06 +0100)]
s3:docs: update the idmap_tdb manpage to reflect current facts.

Michael

15 years ago"userdom_struct" does not need "full_name" anymore -- unused
Volker Lendecke [Tue, 20 Jan 2009 22:08:33 +0000 (23:08 +0100)]
"userdom_struct" does not need "full_name" anymore -- unused

15 years agoFix some nonempty blank lines
Volker Lendecke [Tue, 20 Jan 2009 21:04:53 +0000 (22:04 +0100)]
Fix some nonempty blank lines

15 years agoRemove some unused code
Volker Lendecke [Tue, 20 Jan 2009 14:26:06 +0000 (15:26 +0100)]
Remove some unused code

15 years agoRemove some smb fsp knowledge from rpc_server/
Volker Lendecke [Tue, 20 Jan 2009 14:21:04 +0000 (15:21 +0100)]
Remove some smb fsp knowledge from rpc_server/

np_open/read/write don't have to know about files_struct

15 years agoMake use of TALLOC_FREE
Volker Lendecke [Tue, 20 Jan 2009 13:34:14 +0000 (14:34 +0100)]
Make use of TALLOC_FREE

15 years agosocket_wrapper: fix PCAP support broken by aaea68791cfea45c6fa69abc93ad6d0e832d0283
Stefan Metzmacher [Mon, 19 Jan 2009 23:37:57 +0000 (00:37 +0100)]
socket_wrapper: fix PCAP support broken by aaea68791cfea45c6fa69abc93ad6d0e832d0283

We should note close the fd after writing the first packet.

metze

15 years agos3:messaging: also recreate the local messaging backend in messaging_reinit()
Stefan Metzmacher [Wed, 14 Jan 2009 11:25:31 +0000 (12:25 +0100)]
s3:messaging: also recreate the local messaging backend in messaging_reinit()

This prepares the change to use signal events in the tdb backend.

metze

15 years agos3: reinit_after_fork() should reinit the event context before the messaging context
Stefan Metzmacher [Wed, 14 Jan 2009 11:21:43 +0000 (12:21 +0100)]
s3: reinit_after_fork() should reinit the event context before the messaging context

Because messaging_reinit() may add events to the event context, which will
removed by event_context_reinit().

metze

15 years agos3:events: add support for signal events
Stefan Metzmacher [Mon, 12 Jan 2009 17:11:40 +0000 (18:11 +0100)]
s3:events: add support for signal events

metze

15 years agos3:smbd: call message_dispatch() before processing incoming PDUs
Stefan Metzmacher [Sun, 18 Jan 2009 22:01:59 +0000 (23:01 +0100)]
s3:smbd: call message_dispatch() before processing incoming PDUs

This is a hack to fix races which happen with the RAW-RENAME and RAW-OPLOCK
tests. We should try to remove it later.

metze

15 years agotevent: rename signal handler functions to start with tevent_common_
Stefan Metzmacher [Wed, 14 Jan 2009 11:07:45 +0000 (12:07 +0100)]
tevent: rename signal handler functions to start with tevent_common_

This makes debugging with gdb easier.

metze

15 years agoDon't use TMPDIR as variable, it's already used for other purposes. samba-4.0.0alpha6
Jelmer Vernooij [Mon, 19 Jan 2009 21:52:26 +0000 (22:52 +0100)]
Don't use TMPDIR as variable, it's already used for other purposes.
Don't include GIT revision in release version strings.

15 years agoMake sure server_role gets initialized in backend provisioning code -
Jelmer Vernooij [Mon, 19 Jan 2009 20:14:37 +0000 (21:14 +0100)]
Make sure server_role gets initialized in backend provisioning code -
fixes test.

15 years agoMerge branch 'v4-0-stable'
Jelmer Vernooij [Mon, 19 Jan 2009 19:17:23 +0000 (20:17 +0100)]
Merge branch 'v4-0-stable'

15 years agoAdd some more entries to WHATSNEW, by no means complete.
Jelmer Vernooij [Mon, 19 Jan 2009 18:24:54 +0000 (19:24 +0100)]
Add some more entries to WHATSNEW, by no means complete.

15 years agoRemove mention of external heimdal - its not yet supported.
Jelmer Vernooij [Mon, 19 Jan 2009 17:15:45 +0000 (18:15 +0100)]
Remove mention of external heimdal - its not yet supported.

15 years agos3:idmap_tdb: convert to the dbwrap api
Stefan Metzmacher [Tue, 16 Dec 2008 20:14:36 +0000 (21:14 +0100)]
s3:idmap_tdb: convert to the dbwrap api

metze

15 years agos3:dbwrap: add dbwrap_delete(), dbwrap_store() and dbwrap_fetch()
Stefan Metzmacher [Wed, 17 Dec 2008 07:53:31 +0000 (08:53 +0100)]
s3:dbwrap: add dbwrap_delete(), dbwrap_store() and dbwrap_fetch()

The _bystring function are now just tiny wrappers.

metze

15 years agos3:dbwrap: add get_flags() hook to db_context
Stefan Metzmacher [Wed, 17 Dec 2008 07:35:35 +0000 (08:35 +0100)]
s3:dbwrap: add get_flags() hook to db_context

metze

15 years agoAvoid flooding of syslog with failing pam_putenv messages.
Andreas Schneider [Mon, 19 Jan 2009 15:26:07 +0000 (16:26 +0100)]
Avoid flooding of syslog with failing pam_putenv messages.

Signed-off-by: Andreas Schneider <anschneider@suse.de>
Signed-off-by: Günther Deschner <gd@samba.org>
15 years agoFix the same bug as 8b618d0 fixes, this time in winbindd_passdb.c
Volker Lendecke [Mon, 19 Jan 2009 10:47:29 +0000 (11:47 +0100)]
Fix the same bug as 8b618d0 fixes, this time in winbindd_passdb.c

15 years agoAttempt to fix the merged build
Volker Lendecke [Mon, 19 Jan 2009 10:39:24 +0000 (11:39 +0100)]
Attempt to fix the merged build

15 years agoS3-ByExample: Use 'winbindd -D' instead of 'winbindd -B'.
Karolin Seeger [Mon, 19 Jan 2009 09:22:46 +0000 (10:22 +0100)]
S3-ByExample: Use 'winbindd -D' instead of 'winbindd -B'.

The option '-B' does not exist at all.

Thanks to Jason Ellison for reporting!

Karolin

15 years agoS3-HowTo: Change 'winbindd -B' to 'winbindd -D'.
Karolin Seeger [Mon, 19 Jan 2009 07:55:30 +0000 (08:55 +0100)]
S3-HowTo: Change 'winbindd -B' to 'winbindd -D'.

There is no option '-B' at all.

Thanks to Jason Ellison for reporting!

Karolin

15 years agonbt_server/wins: winsdb_handle() can be static
Stefan Metzmacher [Wed, 18 Jun 2008 14:24:51 +0000 (16:24 +0200)]
nbt_server/wins: winsdb_handle() can be static

metze
(from samba4wins tree ba45b14b48f62eb1668509738f83fa17a4ce95fd)

15 years agonbt_server/wins: add some const
Stefan Metzmacher [Sat, 17 Jan 2009 10:50:52 +0000 (11:50 +0100)]
nbt_server/wins: add some const

metze
(from samba4wins tree e54b2d3ddbf338fe5d9802724e76f320fd4423e5)

15 years agonbt_server/wins: use talloc_zero() to create struct winsdb_handle
Stefan Metzmacher [Wed, 18 Jun 2008 14:22:39 +0000 (16:22 +0200)]
nbt_server/wins: use talloc_zero() to create struct winsdb_handle

metze
(from samba4wins tree 0f2995f77ab092d71e539c2473c94956f9c253fb)

15 years agowrepl_server: make 'use inform' the default and autofallback against old servers
Stefan Metzmacher [Wed, 26 Mar 2008 19:07:10 +0000 (20:07 +0100)]
wrepl_server: make 'use inform' the default and autofallback against old servers

metze
(from samba4wins tree f44c8c8e1986e2105e899bb1f8a3896575eef582)

15 years agolibcli/wrepl: return the major version of the server in wrepl_associate()
Stefan Metzmacher [Wed, 26 Mar 2008 19:06:12 +0000 (20:06 +0100)]
libcli/wrepl: return the major version of the server in wrepl_associate()

metze
(from samba4wins tree 1ea02d50d1607b94e15ff07568fa5056cb6e4f09)

15 years agowreplserver: add "wreplsrv:propagate name releases = yes" for replicated sgroup merges
Stefan Metzmacher [Wed, 26 Mar 2008 18:33:15 +0000 (19:33 +0100)]
wreplserver: add "wreplsrv:propagate name releases = yes" for replicated sgroup merges

metze
(from samba4wins tree 80cbe665e561182d28acc6ad474243b83f3e4d28)

15 years agowinsserver: add "wreplsrv:propagate name releases" option
Stefan Metzmacher [Tue, 25 Mar 2008 16:35:33 +0000 (17:35 +0100)]
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)

15 years agowinsserver_release: update the expire time if only one address is released
Stefan Metzmacher [Tue, 25 Mar 2008 16:30:52 +0000 (17:30 +0100)]
winsserver_release: update the expire time if only one address is released

We also take the ownership if the record isn't owned.
This matches windows...

metze
(from samba4wins tree d7b19339c0444cbe0989fcfa91a22323215d2f6b)

15 years agowrepl_scavenging: add a comment to make the is_static case more clear
Stefan Metzmacher [Tue, 25 Mar 2008 15:44:46 +0000 (16:44 +0100)]
wrepl_scavenging: add a comment to make the is_static case more clear

metze
(from samba4wins tree 67fa7dc4fe36b143d36df1309840328a14683e31)

15 years agowrepl_server: fix the record expire time of sgroup merges
Stefan Metzmacher [Thu, 20 Mar 2008 12:27:13 +0000 (13:27 +0100)]
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)

15 years agowrepl_server: use a local 'local_owner' variable to make the code more readable
Stefan Metzmacher [Thu, 20 Mar 2008 12:26:14 +0000 (13:26 +0100)]
wrepl_server: use a local 'local_owner' variable to make the code more readable

metze
(from samba4wins tree eba9a8ce0641a2984112f4e1473801fa449ed96d)

15 years agowinsdb: the we_are_owner in winsdb_lookup() needs to be per address
Stefan Metzmacher [Tue, 18 Mar 2008 15:08:02 +0000 (16:08 +0100)]
winsdb: the we_are_owner in winsdb_lookup() needs to be per address

This fixes a bug where #1C addresses are registered with different
WINS-Servers and a merged #1C record.

metze
(from samba4wins tree 72e055394a0fd1f543be9c196b4179356a1033f6)

15 years agonbt_server: fix crash bug, the wins client interface may not have a nbtsock
Stefan Metzmacher [Fri, 8 Feb 2008 10:50:34 +0000 (11:50 +0100)]
nbt_server: fix crash bug, the wins client interface may not have a nbtsock

metze
(from samba4wins tree 8035601da7c7e8b65fe1d82c2654c412fa169338)

15 years agonbt_server: redirect incoming response packets to the correct interface
Stefan Metzmacher [Wed, 16 Jan 2008 12:57:50 +0000 (13:57 +0100)]
nbt_server: redirect incoming response packets to the correct interface

We may send requests packets (WACK challenges or similar things)
via a different udp socket than the socket we receive the
matching response. We need to setup an unexpected handler
on the nbt sockets and redirect responses to the correct
nbt_socket. (By redirect I mean we use the correct
nbt_socket structure, we're *not* resending the packet
with sendto() via the kernel...)

metze
(from samba4wins tree 7ce8e705e5a9aabb787d17fbec7a078d9d6780dc)

15 years agolibcli/nbt: add nbt_name_socket_handle_response_packet()
Stefan Metzmacher [Wed, 16 Jan 2008 13:51:56 +0000 (14:51 +0100)]
libcli/nbt: add nbt_name_socket_handle_response_packet()

Move the last part of nbt_name_socket_recv() into
a new function nbt_name_socket_handle_response_packet()
so that it can be reused by an unexpected handler.

metze
(from samba4wins tree cb0377f3b95e50c84fac999a49dde80acc933124)

15 years agolibcli/nbt: add nbt_set_unexpected_handler()
Stefan Metzmacher [Sat, 17 Jan 2009 17:15:24 +0000 (18:15 +0100)]
libcli/nbt: add nbt_set_unexpected_handler()

metze
(from samba4wins tree 74232901d1e7ea9ebcb3bd8d584dda36fac37223)

15 years agonbt_server: add some debug messages which show the used interfaces addresses
Stefan Metzmacher [Wed, 16 Jan 2008 12:43:07 +0000 (13:43 +0100)]
nbt_server: add some debug messages which show the used interfaces addresses

metze
(from samba4wins tree 8eb30add7c95672a85b4084b4a3dbfa78db820c4)

15 years agowreplsrv: don't log scavenging events at level 0
Stefan Metzmacher [Mon, 14 Jan 2008 12:57:12 +0000 (13:57 +0100)]
wreplsrv: don't log scavenging events at level 0

metze
(from samba4wins tree 7a1d4fac9d77440c2c463bfdb2a5671e4817cfdf)

15 years agowreplsrv: log a successful replication cycle at level 1
Stefan Metzmacher [Mon, 14 Jan 2008 12:56:25 +0000 (13:56 +0100)]
wreplsrv: log a successful replication cycle at level 1

metze
(from samba4wins tree b411e60e1536668e11bc5d8eaa389071b25077bf)