metze/samba4wins/test.git
15 years agowrepl_server: update local table only with version_ids we apply localy samba4wins-1-0-sgroup
Stefan Metzmacher [Wed, 9 Jul 2008 07:07:14 +0000 (09:07 +0200)]
wrepl_server: update local table only with version_ids we apply localy

We now update the local table only with the max version we got
during the pull cycle.

We now update the partner table also after we have pulled the owner
changes. In the partner tables min_version is used to hold the
the highest version we got, while max_version holds the highest
version the partner reported.

metze

15 years agowrepl_server: pass down min and max version to wreplsrv_add_table()
Stefan Metzmacher [Thu, 10 Jul 2008 06:41:17 +0000 (08:41 +0200)]
wrepl_server: pass down min and max version to wreplsrv_add_table()

the min_version will only be updated it the max_version changes

for the local table min_version is always 0

for partner tables min_version is maybe used to hold
the highest version we got, while max_version holds
the highest version the partner reported.

metze

15 years agoselftest: use lower ip addresses as socket wrapper only supports 16 addresses now
Stefan Metzmacher [Thu, 10 Jul 2008 06:03:52 +0000 (08:03 +0200)]
selftest: use lower ip addresses as socket wrapper only supports 16 addresses now

metze

15 years agosocket_wrapper: update to the latest version
Stefan Metzmacher [Thu, 10 Jul 2008 06:01:09 +0000 (08:01 +0200)]
socket_wrapper: update to the latest version

This matches 3a4198b1181d6b97804afebbb91dac5a8242f615 of v4-0-test
mostly.

metze

15 years agoHACK add setproctitle
Stefan Metzmacher [Thu, 19 Jun 2008 15:09:05 +0000 (17:09 +0200)]
HACK add setproctitle

metze

15 years agor14079: I just found the setproctitle library from alt linux:-)
Stefan Metzmacher [Thu, 19 Jun 2008 12:46:40 +0000 (14:46 +0200)]
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
(cherry picked from commit 526f20bbecc9bbd607595637c15fc4001d3f0c70)

15 years agonbt_server/wins: also debug the replica of the record in case of a replication
Stefan Metzmacher [Fri, 20 Jun 2008 06:08:35 +0000 (08:08 +0200)]
nbt_server/wins: also debug the replica of the record in case of a replication

metze

15 years agosmbd: let the parent smbd process arround forever
Stefan Metzmacher [Thu, 19 Jun 2008 13:49:57 +0000 (15:49 +0200)]
smbd: let the parent smbd process arround forever

add an fd event and don't wait for any event,
in the standard process model we need to keep
the parent arrounde forever so that the startup script
can kill all processes by the process group.

metze

15 years agosmbd4wins: compile process model standard again
Stefan Metzmacher [Thu, 19 Jun 2008 12:31:46 +0000 (14:31 +0200)]
smbd4wins: compile process model standard again

metze

15 years agowrepl_server: fill in useful information into the registery_by in the replication...
Stefan Metzmacher [Thu, 19 Jun 2008 10:10:52 +0000 (12:10 +0200)]
wrepl_server: fill in useful information into the registery_by in the replication case

metze

15 years agonbt_server/wins: add "winsdb:debug_1C_changes" option
Stefan Metzmacher [Wed, 18 Jun 2008 14:25:56 +0000 (16:25 +0200)]
nbt_server/wins: add "winsdb:debug_1C_changes" option

This can be used to debug problems with #1C names

metze

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

15 years agonbt_server/wins: add some const
Stefan Metzmacher [Wed, 18 Jun 2008 14:24:06 +0000 (16:24 +0200)]
nbt_server/wins: add some const

metze

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

16 years agoadd samba4wins-1.0-create-patch
Stefan Metzmacher [Fri, 28 Mar 2008 07:38:54 +0000 (08:38 +0100)]
add samba4wins-1.0-create-patch

This makes it very easy to create the patch for the RPM's.

metze

16 years agoUpdate documentation after special group fixes
Stefan Metzmacher [Wed, 26 Mar 2008 20:37:00 +0000 (21:37 +0100)]
Update documentation after special group fixes

metze

16 years agoDocument the 'pushUseInform' default value change.
Stefan Metzmacher [Wed, 26 Mar 2008 20:06:02 +0000 (21:06 +0100)]
Document the 'pushUseInform' default value change.

metze

16 years agoDocument the "wreplsrv:propagate name releases" parameter
Stefan Metzmacher [Wed, 26 Mar 2008 20:03:04 +0000 (21:03 +0100)]
Document the "wreplsrv:propagate name releases" parameter

metze

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 years agoUpdate documentation after backporting (memory leak) fixes. samba4wins-1-0-test2
Stefan Metzmacher [Mon, 25 Feb 2008 08:47:25 +0000 (09:47 +0100)]
Update documentation after backporting (memory leak) fixes.

metze

16 years agor25690: - only use a readonly traverse in ldb_search when not in a transaction. When...
Andrew Tridgell [Thu, 18 Oct 2007 00:03:21 +0000 (02:03 +0200)]
r25690: - only use a readonly traverse in ldb_search when not in a transaction. When we are in a transaction then we could be in a top level modify operation (such as rename), so we must use a writeable traverse so that the async callbacks can do the modifies while the search is progressing.

- don't do the lockall operation on the tdb during a ldb search if in
  a transaction, as this would prevent modifies by callbacks as well

16 years agor23993: Attempt to fix bug #4808, reported by mwallnoefer@yahoo.de. The issue
Andrew Bartlett [Mon, 23 Jul 2007 01:46:39 +0000 (01:46 +0000)]
r23993: Attempt to fix bug #4808, reported by mwallnoefer@yahoo.de.  The issue
is that when we all ldb_msg_add_empty(), we might realloc() the
msg->elements array.  We need to ensure the source pointer (when
copying an element from the same msg) is still valid, or the data
copied.

Andrew Bartlett

16 years agor23590: Fix realloc leak on failure case from Jim Meyering <jim@meyering.net>.
Stefan Metzmacher [Fri, 8 Feb 2008 12:34:33 +0000 (13:34 +0100)]
r23590: Fix realloc leak on failure case from Jim Meyering  <jim@meyering.net>.
Jeremy.
(cherry picked from commit 59ba128cb61e77a830ddd8b8e1d5d0fd00f99736)

16 years agor23364: add LDB_FLG_NOMMAP flag
Andrew Tridgell [Wed, 6 Jun 2007 12:44:04 +0000 (12:44 +0000)]
r23364: add LDB_FLG_NOMMAP flag

16 years agor22989: allow '@foo' attributes searchable as we allow '@foo' attributes
Stefan Metzmacher [Fri, 18 May 2007 07:41:43 +0000 (07:41 +0000)]
r22989: allow '@foo' attributes searchable as we allow '@foo' attributes
in all other places too...

metze

16 years agor20969: remove unused function, found my lcov
Stefan Metzmacher [Tue, 23 Jan 2007 10:37:36 +0000 (10:37 +0000)]
r20969: remove unused function, found my lcov

metze

16 years agor20684: if we don't have any indexes, then we should not waste time
Stefan Metzmacher [Thu, 11 Jan 2007 12:18:17 +0000 (12:18 +0000)]
r20684: if we don't have any indexes, then we should not waste time
to traverse the whole tdb and unpack each record

metze
(cherry picked from commit 492c79de13eab8db6079f880a8f0857dc7a29fa8)

16 years agor20234: metze pointed out that we are re-loading the cache records on each
Andrew Tridgell [Sun, 17 Dec 2006 23:11:46 +0000 (23:11 +0000)]
r20234: metze pointed out that we are re-loading the cache records on each
write. We should only be doing this if another process writes and
changes the seqnum. This avoids the extra cache loads

16 years agor20191: fix bug found by the IBM checker
Stefan Metzmacher [Fri, 15 Dec 2006 22:00:56 +0000 (22:00 +0000)]
r20191: fix bug found by the IBM checker

metze

16 years agor20168: start separating attributes and syntaxes
Stefan Metzmacher [Thu, 14 Dec 2006 10:03:21 +0000 (10:03 +0000)]
r20168: start separating attributes and syntaxes

metze

16 years agor19884: rename ldb_dn_key -> ltdb_index_key to make more clear what it's for...
Stefan Metzmacher [Sat, 25 Nov 2006 14:49:17 +0000 (14:49 +0000)]
r19884: rename ldb_dn_key -> ltdb_index_key to make more clear what it's for...

metze

16 years agor19740: fix compiler warning
Stefan Metzmacher [Thu, 16 Nov 2006 11:05:37 +0000 (11:05 +0000)]
r19740: fix compiler warning

metze

16 years agor19402: - use the new tdb_lockall_read() to make ldb_search() more efficient,
Andrew Tridgell [Wed, 18 Oct 2006 21:45:46 +0000 (21:45 +0000)]
r19402: - use the new tdb_lockall_read() to make ldb_search() more efficient,
  by avoiding chain locks on each tdb_fetch() within the search

- use the tdb_get_seqnum() call to avoid re-reading the @BASEINFO
  record when it hasn't changed.

These speed up the LOCAL-DBSPEED test for ldb from 7k ops/sec to a bit
over 11k ops/sec

16 years agor19401: make tdb_lockall() much more efficient, and add a tdb_lockall_read()
Andrew Tridgell [Wed, 18 Oct 2006 21:41:59 +0000 (21:41 +0000)]
r19401: make tdb_lockall() much more efficient, and add a tdb_lockall_read()
call which does a read lock on all chains. These will be used to make
ldb searches more efficient
(cherry picked from commit de664ec1f8cf179f1d650563272c0de3f7636e2b)

16 years agor19365: fixed a memory leak in the ldb attribute handling
Andrew Tridgell [Tue, 17 Oct 2006 05:50:01 +0000 (05:50 +0000)]
r19365: fixed a memory leak in the ldb attribute handling

16 years agor19363: - don't need to store the baseinfo message after cache load
Stefan Metzmacher [Fri, 8 Feb 2008 11:37:14 +0000 (12:37 +0100)]
r19363: - don't need to store the baseinfo message after cache load
(cherry picked from commit 8c091bcdece5c17073838ad2367f3f4e22e97c31)

16 years agor19362: - don't need to store the baseinfo message after cache load
Stefan Metzmacher [Sat, 9 Feb 2008 11:24:36 +0000 (12:24 +0100)]
r19362: - don't need to store the baseinfo message after cache load
(load cache at startup, this fixes the open of a non existing ldb)

metze
(cherry picked parts from commit 3bf76db42dc6dde5d71083216dba819869b31c75)

16 years agor19324: fixed a leak on deleting records when no index is in place
Andrew Tridgell [Mon, 16 Oct 2006 10:12:43 +0000 (10:12 +0000)]
r19324: fixed a leak on deleting records when no index is in place
(cherry picked from commit 0824b3b8c1003064b0f2c5a3f084f3e711155e8c)

16 years agor19323: fixed a leak in the ldif parse code
Andrew Tridgell [Mon, 16 Oct 2006 09:28:39 +0000 (09:28 +0000)]
r19323: fixed a leak in the ldif parse code

16 years agor19322: fix a minor memory leak in the ltdb cache code
Andrew Tridgell [Mon, 16 Oct 2006 09:08:43 +0000 (09:08 +0000)]
r19322: fix a minor memory leak in the ltdb cache code

16 years agor19305: Potential memleak on the ldb_context if we don't use a temp mem context
Simo Sorce [Mon, 16 Oct 2006 01:01:37 +0000 (01:01 +0000)]
r19305: Potential memleak on the ldb_context if we don't use a temp mem context

16 years agor19274: fix ldbdel and ldbmodify to return an error if the underlying ldb call
Andrew Tridgell [Sat, 14 Oct 2006 08:26:10 +0000 (08:26 +0000)]
r19274: fix ldbdel and ldbmodify to return an error if the underlying ldb call
fails

16 years agor19146: merge from samba3:
Stefan Metzmacher [Fri, 6 Oct 2006 16:17:19 +0000 (16:17 +0000)]
r19146: merge from samba3:

talloc_reference() can fail

metze

16 years agor19134: Merge the second set of C++ warning fixes from Samba3. I'll leave r19132 to
Volker Lendecke [Fri, 6 Oct 2006 15:03:41 +0000 (15:03 +0000)]
r19134: Merge the second set of C++ warning fixes from Samba3. I'll leave r19132 to
metze to merge until the questions have been answered.

Volker

16 years agor19114: fixed another checker warning and a possible error on allocation
Andrew Tridgell [Fri, 6 Oct 2006 06:52:30 +0000 (06:52 +0000)]
r19114: fixed another checker warning and a possible error on allocation
failure
(cherry picked from commit bc02f7ef96e164a59441e3fd9429221be83fc7e4)

16 years agor19113: fixed another checker warning.
Andrew Tridgell [Fri, 6 Oct 2006 06:42:05 +0000 (06:42 +0000)]
r19113: fixed another checker warning.

16 years agor17771: add a comment explaing the odd cast
Andrew Tridgell [Thu, 24 Aug 2006 07:20:32 +0000 (07:20 +0000)]
r17771: add a comment explaing the odd cast

16 years agor17722: better to use talloc_vasprintf() than vasprintf() directly, as it
Andrew Tridgell [Tue, 22 Aug 2006 22:28:37 +0000 (22:28 +0000)]
r17722: better to use talloc_vasprintf() than vasprintf() directly, as it
depends on less libc functions

16 years agor17711: fix compiler warnings
Stefan Metzmacher [Tue, 22 Aug 2006 18:09:49 +0000 (18:09 +0000)]
r17711: fix compiler warnings

metze

16 years agor17532: merge from SAMBA_3_0 Revision: 17460
Stefan Metzmacher [Mon, 14 Aug 2006 09:52:58 +0000 (09:52 +0000)]
r17532: merge from SAMBA_3_0 Revision: 17460
 First step at fixing the build breakage with the groupmapping test. On Linux,
 F_RDLCK is defined to 0, for example NetBSD has it at 1.

 Still does not work fully though. Still investigating.

metze
(cherry picked from commit af08e56442367b5d803f61b8554d85e2fe0ce7e9)

16 years agor16916: Implement metze's proposed changes to the tdb logging API.
Andrew Bartlett [Mon, 10 Jul 2006 12:51:36 +0000 (12:51 +0000)]
r16916: Implement metze's proposed changes to the tdb logging API.

This clearly links the log function with its private pointer, and
makes the argument list for tdb_open_ex a bit shorter.

Andrew Bartlett
(cherry picked from commit 5d5503e8d8a10ead3ef21a5ffda52cadb9a07727)

16 years agor16776: fix typo
Stefan Metzmacher [Mon, 3 Jul 2006 08:16:16 +0000 (08:16 +0000)]
r16776: fix typo

metze
(cherry picked from commit 249bf24a40f78aab181a4cce8c42902859e43238)

16 years agor16774: This patch modifies the tdb API to allow the logging function to be used
Andrew Bartlett [Mon, 3 Jul 2006 06:40:56 +0000 (06:40 +0000)]
r16774: This patch modifies the tdb API to allow the logging function to be used
as part of ldb.

This allows tdb failures to be passed all the way up to Samba's DEBUG
system, which allowed easier debugging.

Unfortunately I had to extend the tdb API, as the logging function
didn't have a context pointer.

I've worked over the 'debug levels' in TDB.  Most of them were 0,
which didn't seem right, as some were trace-like messages.  We didn't
see any of these previously, except when accessing TDB directly.

Andrew Bartlett
(cherry picked from commit 58898092c1ce043f6d698db5065f372b79109e22)

16 years agor16043: Fix error message
Simo Sorce [Mon, 5 Jun 2006 00:46:52 +0000 (00:46 +0000)]
r16043: Fix error message
(cherry picked from commit 2898df2cee22f2d478440e9576bec15140909e45)

16 years agor15120: Minimize the diff between Samba3 and Samba4 tdb: In Samba3 we don't allow C++
Volker Lendecke [Tue, 18 Apr 2006 11:26:43 +0000 (11:26 +0000)]
r15120: Minimize the diff between Samba3 and Samba4 tdb: In Samba3 we don't allow C++
keywords. Change "private" -> "private_data".

Volker
(cherry picked from commit 047671567173e808fece41485bbeaaeebab7d4a2)

16 years agor15100: Port the bugfix for #3569 to Samba4
Volker Lendecke [Mon, 17 Apr 2006 11:42:59 +0000 (11:42 +0000)]
r15100: Port the bugfix for #3569 to Samba4
(cherry picked from commit 5f1d52f232051324082b840f29dd7719a9328bd5)

16 years agor14972: fix an uninitialised warning from ibm checker
Andrew Tridgell [Sat, 8 Apr 2006 02:29:48 +0000 (02:29 +0000)]
r14972: fix an uninitialised warning from ibm checker
(cherry picked from commit 9b867d2acffdfdcd5dc1dd5341db19daf11b5e96)

16 years agor14916: print errno so I can work out why OpenBSD is failing the test for tdb
Andrew Tridgell [Wed, 5 Apr 2006 03:51:43 +0000 (03:51 +0000)]
r14916: print errno so I can work out why OpenBSD is failing the test for tdb
in the build farm. msync() is failing.
(cherry picked from commit 4c3f3c414135c2b8fa9ea11a156246b56285b84f)

16 years agor14799: added a tdb_get_seqnum() call, and the TDB_SEQNUM flag. This allows
Andrew Tridgell [Thu, 30 Mar 2006 04:52:39 +0000 (04:52 +0000)]
r14799: added a tdb_get_seqnum() call, and the TDB_SEQNUM flag. This allows
for an extremely lightweight test to see if a tdb has possibly
changed.
(cherry picked from commit f325ba605ccceca63712c0f2c98961e35e437b3d)

16 years agor14431: don't call qsort with a null array
Andrew Tridgell [Wed, 15 Mar 2006 05:50:42 +0000 (05:50 +0000)]
r14431: don't call qsort with a null array
(cherry picked from commit 2c33f577ad5bf8cddec735e75a26c4a4c07d8c51)

16 years agor14029: Fix resource leak in error codepath. Coverity CID #64.
Jeremy Allison [Wed, 8 Mar 2006 07:20:10 +0000 (07:20 +0000)]
r14029: Fix resource leak in error codepath. Coverity CID #64.
Jeremy.
(cherry picked from commit d2e9d5b34baee90060ee9131b3da903309625a56)

16 years agor13900: don't segfault on error
Stefan Metzmacher [Fri, 8 Feb 2008 11:19:31 +0000 (12:19 +0100)]
r13900: don't segfault on error
(cherry picked from commit cf7ad707578ee4dbd5dbf3c83f1f4ede42de3835)

16 years agor13773: Be consistent in the way you get out and free allocated data
Simo Sorce [Wed, 1 Mar 2006 20:06:34 +0000 (20:06 +0000)]
r13773: Be consistent in the way you get out and free allocated data
(cherry picked from commit 1113d4caa7bea1a7ffb9a50f42c5672bc1d452b4)

16 years agor13289: Check the tree is not NULL
Simo Sorce [Wed, 1 Feb 2006 20:48:05 +0000 (20:48 +0000)]
r13289: Check the tree is not NULL
Thanks to Aaron J. Seigo <aseigo@kde.org> for spotting this
(cherry picked from commit 4b5c0493e2276a9eba1bada7c4bac99999a465e2)

16 years agor13278: remove a silly strcasecmp() replacement
Andrew Tridgell [Wed, 1 Feb 2006 05:24:19 +0000 (05:24 +0000)]
r13278: remove a silly strcasecmp() replacement
(cherry picked from commit 6ec71ffbc141df398aff3e11c45e35e15192c66f)

16 years agor13283: added two optimisations to the tdb transactions code. The first is to
Andrew Tridgell [Wed, 1 Feb 2006 10:50:26 +0000 (10:50 +0000)]
r13283: added two optimisations to the tdb transactions code. The first is to
more agressively coalesce entries in the linked list of the undo
log. The second is to ensure that writes during a transaction into the
hash table don't cause the size of the undo log linked list to grow.

These optimisations don't affect Samba much, but they make a huge
difference to the use of ldb in kde
(cherry picked from commit a37d9434d1fa181fd3d060ad032ee4ec5135fc52)

16 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

16 years agoadd .gitignore
Stefan Metzmacher [Fri, 8 Feb 2008 10:49:39 +0000 (11:49 +0100)]
add .gitignore

metze

16 years agoUpdate documentation after memory leak fixes.
Stefan Metzmacher [Wed, 30 Jan 2008 10:46:53 +0000 (11:46 +0100)]
Update documentation after memory leak fixes.

metze

16 years agowinsdb: fix memory leaks in error pathes
Stefan Metzmacher [Wed, 30 Jan 2008 09:41:39 +0000 (10:41 +0100)]
winsdb: fix memory leaks in error pathes

metze

16 years agowrepl_server: fix memory leak in wreplsrv_load_partners()
Stefan Metzmacher [Wed, 30 Jan 2008 09:40:16 +0000 (10:40 +0100)]
wrepl_server: fix memory leak in wreplsrv_load_partners()

This allocates only the talloc chunk header,
but it's called very, very often...

metze

16 years agondr_print: fix the output ndr debug messages only add header line once
Stefan Metzmacher [Wed, 30 Jan 2008 09:36:24 +0000 (10:36 +0100)]
ndr_print: fix the output ndr debug messages only add header line once

metze

16 years agoutil_str: setup the correct talloc name for strings
Stefan Metzmacher [Wed, 30 Jan 2008 09:34:57 +0000 (10:34 +0100)]
util_str: setup the correct talloc name for strings

metze

16 years agotalloc: print out the pointer values in the full report
Stefan Metzmacher [Wed, 30 Jan 2008 09:30:41 +0000 (10:30 +0100)]
talloc: print out the pointer values in the full report

metze

16 years agosmbd: fix SIGHUP and SIGUSR2 interaction
Stefan Metzmacher [Wed, 23 Jan 2008 11:08:05 +0000 (12:08 +0100)]
smbd: fix SIGHUP and SIGUSR2 interaction

We need to make sure to that we don't dump
the talloc report into the old log fd.

metze

16 years agosmbd4wins: don't link against -lgnutls and -lpam
Stefan Metzmacher [Wed, 23 Jan 2008 09:51:07 +0000 (10:51 +0100)]
smbd4wins: don't link against -lgnutls and -lpam

we don't need auth_unix and tls.

metze

16 years agoUpdate documentation after WACK challenges responses bug fix.
Stefan Metzmacher [Wed, 16 Jan 2008 13:03:01 +0000 (14:03 +0100)]
Update documentation after WACK challenges responses bug fix.

metze

16 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

16 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

16 years agolibcli/nbt: add nbt_set_unexpected_handler()
Stefan Metzmacher [Wed, 16 Jan 2008 12:44:11 +0000 (13:44 +0100)]
libcli/nbt: add nbt_set_unexpected_handler()

metze

16 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

16 years agoprepare for samba4wins-1.0.7
Stefan Metzmacher [Mon, 14 Jan 2008 13:41:24 +0000 (14:41 +0100)]
prepare for samba4wins-1.0.7

metze

16 years agomkversion: update to handle git
Stefan Metzmacher [Mon, 14 Jan 2008 13:38:54 +0000 (14:38 +0100)]
mkversion: update to handle git

metze

16 years agosmbd: dump talloc memory tree to the logs, when we receive a SIGUSR2.
Stefan Metzmacher [Mon, 14 Jan 2008 12:59:27 +0000 (13:59 +0100)]
smbd: dump talloc memory tree to the logs, when we receive a SIGUSR2.

metze

16 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

16 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

16 years agowreplsrv: log replication failures at log level 0
Stefan Metzmacher [Mon, 14 Jan 2008 12:52:14 +0000 (13:52 +0100)]
wreplsrv: log replication failures at log level 0

metze

16 years agolibcli/nbt: fix wack timeout handling
Stefan Metzmacher [Mon, 14 Jan 2008 08:18:42 +0000 (09:18 +0100)]
libcli/nbt: fix wack timeout handling

If the client gets a WACK response, the server
sends a timeout to the client. Possible
values are between 9 and 105 seconds.

Because w2k3 servers have a bug and always return
a value of 5 seconds, we need a workarround.

Always using a fixed value of 30 seconds is bad
as we could timeout to early.

Now we use the value from the server if it's in the
valid range and otherwise we use the upper limit
of the valid range (105s).

metze

16 years agoNBT-WINS: test if the server ignores resent packets
Stefan Metzmacher [Mon, 14 Jan 2008 08:10:37 +0000 (09:10 +0100)]
NBT-WINS: test if the server ignores resent packets

metze

16 years agoNBT-WINS: we don't need the slow low port tests for every name
Stefan Metzmacher [Fri, 11 Jan 2008 18:10:30 +0000 (19:10 +0100)]
NBT-WINS: we don't need the slow low port tests for every name

metze

16 years agoNBT-WINS: if we're bound to port 137 trigger WACK reponses with timeouts
Stefan Metzmacher [Fri, 11 Jan 2008 18:05:33 +0000 (19:05 +0100)]
NBT-WINS: if we're bound to port 137 trigger WACK reponses with timeouts

metze

16 years agoNBT-WINS: try to bind to port 137 in the NBT-WINS test
Stefan Metzmacher [Fri, 11 Jan 2008 18:01:50 +0000 (19:01 +0100)]
NBT-WINS: try to bind to port 137 in the NBT-WINS test

metze