metze/samba4wins/test.git
13 years agoname of Debian init script in howto replaced samba4wins-1-0-test
Bjoern Baumbach [Mon, 29 Nov 2010 16:24:00 +0000 (17:24 +0100)]
name of Debian init script in howto replaced

Signed-off-by: Stefan Metzmacher <metze@sernet.de>
14 years agoPrepare samba4wins-1.0.8 samba4wins-1-0 save-diskspace-heads/samba4wins-1-0 save-diskspace-tags/samba4wins-1.0.8
Stefan Metzmacher [Fri, 29 Jan 2010 16:19:47 +0000 (17:19 +0100)]
Prepare samba4wins-1.0.8

metze

14 years agos4:NBT-WINS: test large scopes
Stefan Metzmacher [Mon, 1 Feb 2010 14:32:37 +0000 (15:32 +0100)]
s4:NBT-WINS: test large scopes

metze
(cherry picked from commit 431d75fc9c7f942dcbd31f80380dda59887ac229)

Signed-off-by: Stefan Metzmacher <metze@sernet.de>
14 years agos4:NBT-WINS: pass the expected rcode of the name registration to the test code
Stefan Metzmacher [Mon, 1 Feb 2010 13:55:14 +0000 (14:55 +0100)]
s4:NBT-WINS: pass the expected rcode of the name registration to the test code

metze
(cherry picked from commit 70779a46a7b7f6e5c00eba048dbf653d86bc07d4)

Signed-off-by: Stefan Metzmacher <metze@sernet.de>
14 years agos4:NBT-WINSREPLICATION: test replication with names including scopes
Stefan Metzmacher [Mon, 1 Feb 2010 16:39:46 +0000 (17:39 +0100)]
s4:NBT-WINSREPLICATION: test replication with names including scopes

metze
(cherry picked from commit c1d8dc01fc6f0fa3a22a405419917d880b832761)

14 years agos4:NBT-WINSREPLICATION: fix compiler warnings
Stefan Metzmacher [Fri, 29 Jan 2010 15:42:24 +0000 (16:42 +0100)]
s4:NBT-WINSREPLICATION: fix compiler warnings

metze
(cherry picked from commit 331505f09d61cdc5c920293fc36ac1853235177b)

Signed-off-by: Stefan Metzmacher <metze@sernet.de>
14 years agos4:NBT-WINSREPLICATION: use an array of nbt_names to loop over different names
Stefan Metzmacher [Mon, 1 Feb 2010 16:27:14 +0000 (17:27 +0100)]
s4:NBT-WINSREPLICATION: use an array of nbt_names to loop over different names

metze
(cherry picked from commit 07b06e51bbf95168899081ba2aa92a4e6a5bac12)

14 years agos4:winsserver: reject name registrations with a scope length > 237
Stefan Metzmacher [Mon, 1 Feb 2010 13:39:13 +0000 (14:39 +0100)]
s4:winsserver: reject name registrations with a scope length > 237

This matches Windows 2008 behavior. Name releases are just ignored.

metze
(cherry picked from commit ea7ec4fb30a261cedb882c9325815679e5e20d57)

Signed-off-by: Stefan Metzmacher <metze@sernet.de>
14 years agos4:wrepl_server: truncate the scope of a netbios name to 237 bytes as Windows 2008...
Stefan Metzmacher [Sun, 31 Jan 2010 17:59:41 +0000 (18:59 +0100)]
s4:wrepl_server: truncate the scope of a netbios name to 237 bytes as Windows 2008 does

metze
(cherry picked from commit 7a02a2ba80c2997947a2b2c48c33f8c7647f7471)

Signed-off-by: Stefan Metzmacher <metze@sernet.de>
14 years agolibcli/nbt: fix ndr_push_nbt_string() string labels with a length of 63 (0x3F) are...
Stefan Metzmacher [Mon, 1 Feb 2010 14:18:15 +0000 (15:18 +0100)]
libcli/nbt: fix ndr_push_nbt_string() string labels with a length of 63 (0x3F) are allowed

metze
(cherry picked from commit e37dc56e971f44c00791529a39144d1a972e3ca2)

Signed-off-by: Stefan Metzmacher <metze@sernet.de>
14 years agolibcli/nbt: fix off-by-one bug in ndr_pull_wrepl_nbt_name()
Stefan Metzmacher [Thu, 28 Jan 2010 17:58:23 +0000 (18:58 +0100)]
libcli/nbt: fix off-by-one bug in ndr_pull_wrepl_nbt_name()

The scope starts at byte 17 with index 16.

metze
(cherry picked from commit 6442b0fcc1931c9b41dd66b3450a216f673d4fe2)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agolibcli/nbt: fix ndr_pull/push_wrepl_nbt_name()
Stefan Metzmacher [Fri, 29 Jan 2010 15:30:36 +0000 (16:30 +0100)]
libcli/nbt: fix ndr_pull/push_wrepl_nbt_name()

[MS-WINSRA] — v20091104 was wrong
regarding section "2.2.10.1 Name Record"

If the name buffer is already 4 byte aligned
Windows (at least 2003 SP1 and 2008) add 4 extra
bytes. This can happen when the name has a scope.

metze
(cherry picked from commit c50a17cc8d6bc23f03c3d44ceccebce06417ba21)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agoFix autogen.sh on systems with new autoconf versions.
Karolin Seeger [Wed, 16 Dec 2009 15:09:36 +0000 (16:09 +0100)]
Fix autogen.sh on systems with new autoconf versions.

_AC_SUBST_VARS has been removed.

This is a merged and adapted patch based on the following commits in master:
f1d887251
e1ab0903a
1ea6ed3fc

Karolin

Signed-off-by: Stefan Metzmacher <metze@samba.org>
15 years agosamba4wins-HOWTO: make more clear that all samba versions newer than 3.0.21 work...
Stefan Metzmacher [Tue, 20 Jan 2009 09:00:02 +0000 (10:00 +0100)]
samba4wins-HOWTO: make more clear that all samba versions newer than 3.0.21 work with samba4wins

metze

15 years agosamba4wins-NEWS: fix typo sinse => since
Stefan Metzmacher [Tue, 20 Jan 2009 08:58:52 +0000 (09:58 +0100)]
samba4wins-NEWS: fix typo sinse => since

metze

15 years agoPrepare samba4wins-1.0.7 save-diskspace-tags/samba4wins-1.0.7
Stefan Metzmacher [Mon, 12 Jan 2009 08:42:00 +0000 (09:42 +0100)]
Prepare samba4wins-1.0.7

metze

15 years agoAdd samba4wins-check-names.pl script
Stefan Metzmacher [Tue, 15 Jul 2008 10:07:28 +0000 (12:07 +0200)]
Add samba4wins-check-names.pl script

This a very useful monitoring tool to
monitor the state of wins names in a system
with mutiple wins servers, where the local
one has to be samba4wins (or a plain samba4).

The example below will check the name SERVER3#20
on the local wins.ldb on wins server 172.31.1.1.
The wins servers 172.31.2.1, 172.31.3.1 will be
checked too. The addresses from the wins.ldb and
wins server will be compared to the given addresses.
The result will be logged to
/var/log/samba4wins-check/SERVER3.log and
/var/run/samba4wins-check/SERVER3.status will hold
result in machine readable form. This command can
take longer depending on the amount of remote wins server
and addresses.

The second command will read the result from
/var/run/samba4wins-check/SERVER3.status and will
output it as as oneline string. This command
should run really fast as it only reads data
from the local filesystem.

The exit code of both commands is the same.
0 - OK
1 - Warning
2 - Error
3 - Unknown Error

samba4wins-check-name.pl \
--mode getdata \
--name "SERVER3" \
--type 20 \
--address 172.31.1.3 \
--address 172.31.2.3 \
--address 172.31.3.3 \
--local-owner 172.31.1.1 \
--remote-wins-server 172.31.2.1 \
--remote-wins-server 172.31.3.1 \
--log-file /var/log/samba4wins-check/SERVER3.log \
--status-file /var/run/samba4wins-check/SERVER3.status

samba4wins-check-name.pl \
--mode getstatus \
--status-file /var/run/samba4wins-check/SERVER3.status

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