tprouty/samba.git
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)

15 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
(from samba4wins tree 405cbb74b7191e744178894a5e0ac4abcac2a4fe)

15 years agolibcli/nbt: fix wack timeout handling
Stefan Metzmacher [Sat, 17 Jan 2009 17:14:29 +0000 (18:14 +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
(from samba4wins tree 40ef7739f4141598a6392c203e4a2d52d972fe06)

15 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
(from samba4wins tree 24eb7577414c8584b97f43c850d738d3dbb30777)

15 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
(from samba4wins tree 7862deca8555f960a5ef65e6315ce94af5023a2a)

15 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
(from samba4wins tree de7225658493006c19d139ac77ac1b1ffab01d25)

15 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
(from samba4wins tree 5e101475d5ed62060c991ea71c943e76b862aeef)

15 years agowinsserver: we need to ignore duplicated name register requests.
Stefan Metzmacher [Fri, 11 Jan 2008 15:11:59 +0000 (16:11 +0100)]
winsserver: we need to ignore duplicated name register requests.

This fixes the following bug:

While we reply with a WACK response to a client.
Instead of waiting for the final reply some
windows client just resends the request using
the same name_trn_id in the nbt_name_packet.
We handled this as a new request and send a
WACK response (and the challenges) again.
Then the first request gets its final success
response, but the when we try to send the success
for the "second" request we notice that
the record was changed in between and we return
an error.

Windows 2003 (and I assume all other versions as well)
detect the packet is just a resent of a currently pending
request and ignores it.

So we now keep a list of all pending WINS name register
requests which result in a WACK response. On each incoming
name register request we search through the list to find
duplicate requests and ignore them. In theory we should
do that for all requests, but name register requests
are the only requests we response async and only
if we have to go via the WACK code path.

metze
(from samba4wins tree 382e7d384b70d03e9f81c7bb353afaed288d80f0)

15 years agondr_print: fix the output ndr debug messages only add header line once
Stefan Metzmacher [Sat, 17 Jan 2009 17:13:31 +0000 (18:13 +0100)]
ndr_print: fix the output ndr debug messages only add header line once

metze
(from samba4wins tree e99531aae325e4443fcb917a75dfe4a86b892583)

15 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
(partly from samba4wins tree 447e7f9532131117e896712db9def321c96718eb)

15 years agoRevert "Remove another use of global_loadparm."
Stefan Metzmacher [Sun, 18 Jan 2009 22:20:01 +0000 (23:20 +0100)]
Revert "Remove another use of global_loadparm."

This reverts commit ee7c2170a79f1ca9e2ad1a209d342d8fd287ec8d.

A much more correct fix will come soon.
(40ef7739f4141598a6392c203e4a2d52d972fe06 from the samba4wins tree)

metze

15 years agoNBT-WINS: initialize .dest_port explicit (we should fill the whole struct each time)
Stefan Metzmacher [Sat, 17 Jan 2009 09:06:08 +0000 (10:06 +0100)]
NBT-WINS: initialize .dest_port explicit (we should fill the whole struct each time)

This makes the code more clear.

metze

15 years agoMerge branch 'master' of ssh://git.samba.org/data/git/samba into abartlet-devel
Andrew Bartlett [Mon, 19 Jan 2009 02:39:54 +0000 (13:39 +1100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba into abartlet-devel

15 years agoPrint more useful suggestion for the main provision command line
Andrew Bartlett [Mon, 19 Jan 2009 01:15:47 +0000 (12:15 +1100)]
Print more useful suggestion for the main provision command line

15 years agoDelete more Samba3-specific files
Andrew Bartlett [Wed, 14 Jan 2009 09:32:18 +0000 (20:32 +1100)]
Delete more Samba3-specific files

15 years agoDon't give fatal python errors when guessing the realm
Andrew Bartlett [Wed, 14 Jan 2009 09:31:58 +0000 (20:31 +1100)]
Don't give fatal python errors when guessing the realm

15 years agoRemove unused tdb_search_keys()
Volker Lendecke [Sun, 18 Jan 2009 23:04:33 +0000 (00:04 +0100)]
Remove unused tdb_search_keys()

15 years agosimplify gencache_iterate a bit, fix nonempty blank lines
Volker Lendecke [Sun, 18 Jan 2009 23:01:08 +0000 (00:01 +0100)]
simplify gencache_iterate a bit, fix nonempty blank lines

15 years agolibnetapi_open_pipe does not need to return cli_state
Volker Lendecke [Sun, 18 Jan 2009 17:15:49 +0000 (18:15 +0100)]
libnetapi_open_pipe does not need to return cli_state

The user session key is also available in rpccli->auth->user_session_key

Guenther, please check!

Thanks,

Volker

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

15 years agoAdd a macro async_req_setup()
Volker Lendecke [Sun, 18 Jan 2009 15:38:30 +0000 (16:38 +0100)]
Add a macro async_req_setup()

This streamlines setting up a multi-step async request a bit

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

15 years agoAdd code to torture the fragmentation code a bit
Volker Lendecke [Sun, 18 Jan 2009 11:22:14 +0000 (12:22 +0100)]
Add code to torture the fragmentation code a bit

15 years agoRemove unused functions
Volker Lendecke [Sun, 18 Jan 2009 11:15:33 +0000 (12:15 +0100)]
Remove unused functions

15 years agoMake rpc_pipe_bind async
Volker Lendecke [Sun, 18 Jan 2009 11:12:15 +0000 (12:12 +0100)]
Make rpc_pipe_bind async

15 years agoFix an uninitialized variable
Volker Lendecke [Sat, 17 Jan 2009 18:19:04 +0000 (19:19 +0100)]
Fix an uninitialized variable

15 years agoRemove sync rpc_api_pipe_req
Volker Lendecke [Sat, 17 Jan 2009 16:53:05 +0000 (17:53 +0100)]
Remove sync rpc_api_pipe_req

15 years agoAdd async rpc_api_pipe_req
Volker Lendecke [Sat, 17 Jan 2009 16:52:35 +0000 (17:52 +0100)]
Add async rpc_api_pipe_req

15 years agoTiny simplification of prs_set_offset
Volker Lendecke [Sat, 17 Jan 2009 16:52:22 +0000 (17:52 +0100)]
Tiny simplification of prs_set_offset

15 years agoAdd rpc_write_send/recv
Volker Lendecke [Sat, 17 Jan 2009 14:07:52 +0000 (15:07 +0100)]
Add rpc_write_send/recv

15 years agoRemove unused sync functions
Volker Lendecke [Sat, 17 Jan 2009 12:58:36 +0000 (13:58 +0100)]
Remove unused sync functions

15 years agoMake rpc_api_pipe async
Volker Lendecke [Sat, 17 Jan 2009 12:33:34 +0000 (13:33 +0100)]
Make rpc_api_pipe async

15 years agoRename the async version of get_complete_pdu to get_complete_frag
Volker Lendecke [Sat, 17 Jan 2009 11:50:02 +0000 (12:50 +0100)]
Rename the async version of get_complete_pdu to get_complete_frag

15 years agoMove initialization of the reply prs_struct to rpc_api_pipe
Volker Lendecke [Sat, 17 Jan 2009 11:18:29 +0000 (12:18 +0100)]
Move initialization of the reply prs_struct to rpc_api_pipe

15 years agoAlways check the max send sizein rpc_api_pipe, not just with DEVELOPER
Volker Lendecke [Fri, 16 Jan 2009 16:31:56 +0000 (17:31 +0100)]
Always check the max send sizein rpc_api_pipe, not just with DEVELOPER

15 years agoMake cli_api_pipe async
Volker Lendecke [Fri, 16 Jan 2009 16:07:52 +0000 (17:07 +0100)]
Make cli_api_pipe async

Also move the transport switch to this routine

15 years agoRemove sync rpc_read wrapper
Volker Lendecke [Fri, 16 Jan 2009 13:47:21 +0000 (14:47 +0100)]
Remove sync rpc_read wrapper

15 years agoMake cli_pipe_get_current_pdu async, rename it to get_current_pdu
Volker Lendecke [Fri, 16 Jan 2009 13:46:41 +0000 (14:46 +0100)]
Make cli_pipe_get_current_pdu async, rename it to get_current_pdu

15 years agoMake rpc_read async
Volker Lendecke [Thu, 15 Jan 2009 20:56:03 +0000 (21:56 +0100)]
Make rpc_read async

15 years agoFix some real bugs found by "type-punned" gcc warnings
Volker Lendecke [Sun, 18 Jan 2009 12:15:23 +0000 (13:15 +0100)]
Fix some real bugs found by "type-punned" gcc warnings

Type-casting does not the right thing if used the way it used to be. The
function arguments have not been uint32_t's, but the type cast made the calling
routine believe so. Not good...

The assignment xxx=account_policy_temp does however type-convert properly,
potentially cutting off the top-bits.

15 years agolibrpc: Re-run make idl_full
Tim Prouty [Sat, 17 Jan 2009 23:19:08 +0000 (15:19 -0800)]
librpc: Re-run make idl_full

15 years agolibrpc: Remove usage of max and replace with improved range.
Tim Prouty [Sat, 17 Jan 2009 22:42:20 +0000 (14:42 -0800)]
librpc: Remove usage of max and replace with improved range.

15 years agopidl: Remove "max" and make "range" smarter about unsigned types
Tim Prouty [Sat, 17 Jan 2009 22:40:12 +0000 (14:40 -0800)]
pidl: Remove "max" and make "range" smarter about unsigned types

This eliminates a warning in pidl generated code, while preserving
cross-platform idl compatibility.

15 years agoDetermine case sensitivity based on file system attributes.
Derrell Lipman [Sat, 17 Jan 2009 18:33:25 +0000 (13:33 -0500)]
Determine case sensitivity based on file system attributes.

- Most of the time, we can determine from the file system we're connecting to
  whether it supports case sensitivity. In those cases, we now set the
  internal case sensitivity flag automatically. For those cases where the
  request to retrieve file system attributes fails, we'll use the
  user-specified option value.

Derrell

15 years agoSlightly simplify the paths after rpc_api_pipe()
Volker Lendecke [Sat, 17 Jan 2009 10:26:06 +0000 (11:26 +0100)]
Slightly simplify the paths after rpc_api_pipe()

15 years ago[Bug 6022] smbc_urlencode and smbc_urldecode were not exported
Derrell Lipman [Sat, 17 Jan 2009 01:26:46 +0000 (20:26 -0500)]
[Bug 6022] smbc_urlencode and smbc_urldecode were not exported

- Since the revamp of libsmbclient, there has still been an external
  declaration for smbc_urlencode and smbc_urldecode in libsmbclient.h, yet
  those functions were renamed and made private. The two choices were to
  remove the function names from libsmbclient.h or to make them public
  again. The reported requested that they be public. This commit makes it so.

Derrell

15 years agoTreat file names in POSIX-like case-sensitive fashion by default
Derrell Lipman [Fri, 16 Jan 2009 21:41:36 +0000 (16:41 -0500)]
Treat file names in POSIX-like case-sensitive fashion by default

*** THIS COMMIT CAUSES A CHANGE OF DEFAULT BEHAVIOR IN libsmbclient!!! ***

- libsmbclient now calls cli_set_case_sensitive() for a new CLI. By default,
  it requests case-sensitive, but the old behavior of case-insensitive can be
  requested with smbc_setOptionCaseSensitive(context, False);

  The change of behavior is considered a bug fix, as it was previously
  possible to accidentally overwrite a file that had the same case-insensitive
  name but a different case-sensitive name as a previously-existing file,
  while creating a new file.

Derrell

15 years agoMore work on the Samba 4 release notes.
Jelmer Vernooij [Fri, 16 Jan 2009 20:46:01 +0000 (21:46 +0100)]
More work on the Samba 4 release notes.

15 years agoFix a segfault if ? is there but the options are NULL. This is the case if SMBC_parse...
Andreas Schneider [Fri, 16 Jan 2009 20:26:46 +0000 (12:26 -0800)]
Fix a segfault if ? is there but the options are NULL. This is the case if SMBC_parse_path is called by SMBC_stat_ctx.

15 years agoMerge branch 'master' of ssh://jra@git.samba.org/data/git/samba
Jeremy Allison [Fri, 16 Jan 2009 20:25:35 +0000 (12:25 -0800)]
Merge branch 'master' of ssh://jra@git.samba.org/data/git/samba

15 years ago"First thing, kill all the language lawyers" :-). Ensure possible insane compilers
Jeremy Allison [Fri, 16 Jan 2009 19:55:01 +0000 (11:55 -0800)]
"First thing, kill all the language lawyers" :-). Ensure possible insane compilers
can't kill us later.
Jeremy.

15 years agoads_connect: Return immediately on a failed GC connection.
Gerald (Jerry) Carter [Fri, 16 Jan 2009 18:06:49 +0000 (12:06 -0600)]
ads_connect: Return immediately on a failed GC connection.

ads_connect_gc() feeds an explicit server to ads_connect().  However, if the
resulting connection fails, the latter function was attempting to find a DC
on its own and continuing the connection.  This resulting in GC searches being
sent over a connection using port 389 which would fail when using the base
search suffix outside of the domain naming context.

The fix is to fail immediately in ads_connect() since the GC lookup ordering
is handled already in ads_connect_gc().

15 years agoloadparm: Make sure various state variables get initialized even when we
Jelmer Vernooij [Fri, 16 Jan 2009 16:37:40 +0000 (17:37 +0100)]
loadparm: Make sure various state variables get initialized even when we
couldn't load a default smb.conf file.

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

15 years agoAdd copyright headers.
Jelmer Vernooij [Fri, 16 Jan 2009 14:50:58 +0000 (15:50 +0100)]
Add copyright headers.

15 years agos4/NEWS: Remove mention of no longer existing js parameter.
Jelmer Vernooij [Fri, 16 Jan 2009 14:50:03 +0000 (15:50 +0100)]
s4/NEWS: Remove mention of no longer existing js parameter.

15 years agos3:cluster: fix ctdb ipv6 support
Stefan Metzmacher [Wed, 14 Jan 2009 11:09:46 +0000 (12:09 +0100)]
s3:cluster: fix ctdb ipv6 support

We need to use CTDB_CONTROL_TCP_CLIENT instead of CTDB_CONTROL_TCP_ADD.

CTDB_CONTROL_TCP_CLIENT has support for 2 modes in newer ctdb versions:

- with struct ctdb_control_tcp it only supports ipv4.
- with struct ctdb_control_tcp_addr it supports ipv4 and ipv6.

You need new header files which defines struct ctdb_control_tcp_addr,
but at runtime it should be fine to work against older
ctdb versions (<= 1.0.68).

metze

15 years agos3:docs: vfs_fileid manpage
Stefan Metzmacher [Wed, 14 Jan 2009 10:52:01 +0000 (11:52 +0100)]
s3:docs: vfs_fileid manpage

metze

15 years agos3:vfs_fileid: readd "fileid:algorithm" as option.
Stefan Metzmacher [Wed, 14 Jan 2009 12:59:09 +0000 (13:59 +0100)]
s3:vfs_fileid: readd "fileid:algorithm" as option.

"fileid:mapping" is still supported as fallback.

metze

15 years agoFind default smb.conf path correctly, when it was not specified on the
Jelmer Vernooij [Fri, 16 Jan 2009 14:05:15 +0000 (15:05 +0100)]
Find default smb.conf path correctly, when it was not specified on the
command-line.

15 years agoremove the old chain_reply code
Volker Lendecke [Fri, 16 Jan 2009 10:26:05 +0000 (11:26 +0100)]
remove the old chain_reply code

15 years agoCorrectly calculate the offset for read&x
Volker Lendecke [Fri, 21 Nov 2008 22:17:31 +0000 (23:17 +0100)]
Correctly calculate the offset for read&x

15 years agoAdd a new implementation of chain_reply
Volker Lendecke [Mon, 10 Nov 2008 09:01:26 +0000 (10:01 +0100)]
Add a new implementation of chain_reply

This the global variable "orig_inbuf" in the old chain_reply code. This global
variable was one of the reasons why we had the silly restriction to not allow
async requests within a request chain.

15 years agos3-eventlog: fix _eventlog_CloseEventLog.
Günther Deschner [Fri, 16 Jan 2009 01:59:05 +0000 (02:59 +0100)]
s3-eventlog: fix _eventlog_CloseEventLog.

Guenther

15 years agos4-winbind: Remove a "knownfail" entry for the now implemented LIST_GROUPS
Kai Blin [Fri, 16 Jan 2009 06:32:30 +0000 (07:32 +0100)]
s4-winbind: Remove a "knownfail" entry for the now implemented LIST_GROUPS

15 years agos3: Remove an incorrect const
Tim Prouty [Fri, 16 Jan 2009 05:59:20 +0000 (21:59 -0800)]
s3: Remove an incorrect const

15 years agos3: put the gpo cache dir under cache_dir instead of lock_dir
Michael Adam [Thu, 15 Jan 2009 23:50:45 +0000 (00:50 +0100)]
s3: put the gpo cache dir under cache_dir instead of lock_dir

Michael

15 years agos3: put printing/ under cache_dir, not lock_dir
Michael Adam [Thu, 15 Jan 2009 23:48:29 +0000 (00:48 +0100)]
s3: put printing/ under cache_dir, not lock_dir

Michael

15 years agos3: put netsamlogon_cache.tdb into cache_dir instead of lock_dir
Michael Adam [Thu, 15 Jan 2009 23:44:55 +0000 (00:44 +0100)]
s3: put netsamlogon_cache.tdb into cache_dir instead of lock_dir

Michael

15 years agos3:put the browse list into cache_dir, not lock_dir.
Michael Adam [Thu, 15 Jan 2009 23:40:48 +0000 (00:40 +0100)]
s3:put the browse list into cache_dir, not lock_dir.

Michael

15 years agos3:winbindd: put winbindd_cache.tdb into cache_dir, not lock_dir.
Michael Adam [Thu, 15 Jan 2009 23:31:17 +0000 (00:31 +0100)]
s3:winbindd: put winbindd_cache.tdb into cache_dir, not lock_dir.

Michael

15 years agos3:passdb: put login_cache.tdb into cache_dir, not lock_dir.
Michael Adam [Thu, 15 Jan 2009 23:30:36 +0000 (00:30 +0100)]
s3:passdb: put login_cache.tdb into cache_dir, not lock_dir.

Michael

15 years agos3:libads: use lock_path for creating paths to local krb5.conf files
Michael Adam [Thu, 15 Jan 2009 23:17:51 +0000 (00:17 +0100)]
s3:libads: use lock_path for creating paths to local krb5.conf files

instead of manually doing an asprintf with lp_lockdir()

Michael

squash

15 years agos3:libads: give create_local_private_krb5_conf_for_domain() a common exit point
Michael Adam [Thu, 15 Jan 2009 23:10:29 +0000 (00:10 +0100)]
s3:libads: give create_local_private_krb5_conf_for_domain() a common exit point

Michael

15 years agos3:vfs_xattr_tdb: don't leak state_path() to talloc_tos in xattr_tdb_init().
Michael Adam [Thu, 15 Jan 2009 22:43:00 +0000 (23:43 +0100)]
s3:vfs_xattr_tdb: don't leak state_path() to talloc_tos in xattr_tdb_init().

Michael

15 years agos3:nmbd: don't leak state_path() to talloc_tos() in wins_write_database()
Michael Adam [Thu, 15 Jan 2009 22:34:00 +0000 (23:34 +0100)]
s3:nmbd: don't leak state_path() to talloc_tos() in wins_write_database()

Michael

15 years agos3:vfs_acl_tdb: don't leak state_path() to talloc_tos() in acl_tdb_init()
Michael Adam [Thu, 15 Jan 2009 22:31:17 +0000 (23:31 +0100)]
s3:vfs_acl_tdb: don't leak state_path() to talloc_tos() in acl_tdb_init()

Michael

15 years agoFix bug #6040 - Missing <th> header in Status page.
Jeremy Allison [Thu, 15 Jan 2009 23:55:17 +0000 (15:55 -0800)]
Fix bug #6040 -  Missing <th> header in Status page.
Based on a patch from pkg-samba-maint@lists.alioth.debian.org.
Jeremy.

15 years agoAllow reinit_after_fork to be called safely from within swat and other binaries that...
Jeremy Allison [Thu, 15 Jan 2009 23:52:41 +0000 (15:52 -0800)]
Allow reinit_after_fork to be called safely from within swat and other binaries that don't have
an event context or a msg context. Fixes crash bug in swat.
Jeremy.

15 years agowinreg: fix winreg_EnumValue callers.
Günther Deschner [Thu, 15 Jan 2009 23:25:57 +0000 (00:25 +0100)]
winreg: fix winreg_EnumValue callers.

Guenther

15 years agos3: re-run make samba3-idl.
Günther Deschner [Thu, 15 Jan 2009 22:24:52 +0000 (23:24 +0100)]
s3: re-run make samba3-idl.

Guenther

15 years agowinreg: fix winreg_EnumValue by re-adding winreg_ValNameBuf from 3.3/3.2.
Günther Deschner [Thu, 15 Jan 2009 22:23:08 +0000 (23:23 +0100)]
winreg: fix winreg_EnumValue by re-adding winreg_ValNameBuf from 3.3/3.2.

This fixes viewing samba registry with windows tools like regedit and eventviewer.

Michael, Jelmer, please check.

Guenther

15 years agolib: add strlen_m_term_null from s3.
Günther Deschner [Thu, 15 Jan 2009 23:25:31 +0000 (00:25 +0100)]
lib: add strlen_m_term_null from s3.

Guenther

15 years agos3-util: for convenience, provide format comments in tdb_unpack().
Günther Deschner [Thu, 15 Jan 2009 14:33:20 +0000 (15:33 +0100)]
s3-util: for convenience, provide format comments in tdb_unpack().

Guenther

15 years agos3-eventlog: remove whitespace.
Günther Deschner [Thu, 15 Jan 2009 19:01:30 +0000 (20:01 +0100)]
s3-eventlog: remove whitespace.

Guenther

15 years agos3-eventlog: some minor code cleanup in eventlog server.
Günther Deschner [Wed, 14 Jan 2009 17:09:25 +0000 (18:09 +0100)]
s3-eventlog: some minor code cleanup in eventlog server.

Guenther

15 years agos4-smbtorture: fix RPC-EVENTLOG test.
Günther Deschner [Wed, 14 Jan 2009 15:59:42 +0000 (16:59 +0100)]
s4-smbtorture: fix RPC-EVENTLOG test.

Guenther

15 years agoFix LDB_MODULESDIR for ldb standalone builds
Simo Sorce [Thu, 15 Jan 2009 23:05:45 +0000 (18:05 -0500)]
Fix LDB_MODULESDIR for ldb standalone builds

15 years agolibrpc: Re-run make idl_full
Tim Prouty [Thu, 15 Jan 2009 18:59:49 +0000 (10:59 -0800)]
librpc: Re-run make idl_full

15 years agolibrpc: Change a uint16 to use the max property instead of range
Tim Prouty [Thu, 15 Jan 2009 18:57:00 +0000 (10:57 -0800)]
librpc: Change a uint16 to use the max property instead of range

This fixes a "comparison is always false due to limited range of data
type" warning

15 years agopidl: Add max property to be used instead of range for unsigned types.
Tim Prouty [Thu, 15 Jan 2009 18:51:57 +0000 (10:51 -0800)]
pidl: Add max property to be used instead of range for unsigned types.

Compilers complain about ranges starting at 0 for unsigned types,
since an unsigned type is never less than 0.  The max property
implicitly makes 0 the lower bound when used with unsigned types.

15 years agopackaging(RHEL-CTDB): export CC - really use ccache...
Stefan Metzmacher [Thu, 15 Jan 2009 12:46:38 +0000 (13:46 +0100)]
packaging(RHEL-CTDB): export CC - really use ccache...

metze

Signed-off-by: Michael Adam <obnox@samba.org>
15 years agos3: make better use of ccache by not including version.h in every C-file.
Michael Adam [Thu, 15 Jan 2009 21:27:52 +0000 (22:27 +0100)]
s3: make better use of ccache by not including version.h in every C-file.

version.h changes rather frequently. Since it is included via includes.h,
this means each C file will be a cache miss. This applies to the following
situations:

* When building a new package with a new Samba version

* building in a git branch after calling mkversion.sh
  after a new commit (i.e. virtually always)

This patch improves the situation in the following way:

* remove inlude "version.h" from includes.h

* Use samba_version_string() instead of SAMBA_VERSION_STRING
  in files that use no other macro from version.h instead of
  SAMBA_VERSION_STRING.

* explicitly include "version.h" in those files that use more
  macros from "version.h" than just SAMBA_VERSION_STRING.

Michael

15 years agoUse AS_HELP_STRING() in a couple more places.
Jelmer Vernooij [Thu, 15 Jan 2009 20:22:34 +0000 (21:22 +0100)]
Use AS_HELP_STRING() in a couple more places.

15 years agoFix indentation for some configure options.
Jelmer Vernooij [Wed, 26 Nov 2008 18:06:10 +0000 (19:06 +0100)]
Fix indentation for some configure options.

15 years agopython/param: Cope with lp configfile being NULL.
Jelmer Vernooij [Thu, 15 Jan 2009 20:16:31 +0000 (21:16 +0100)]
python/param: Cope with lp configfile being NULL.

15 years agoFix bug #6040 - Calling Samba print server with an aliased DNS-name fails.
Jeremy Allison [Thu, 15 Jan 2009 18:29:34 +0000 (10:29 -0800)]
Fix bug #6040 - Calling Samba print server with an aliased DNS-name fails.
Jeremy.

15 years agos4-winbind: Add support for the WINBINDD_LIST_GROUPS command.
Kai Blin [Thu, 15 Jan 2009 09:14:55 +0000 (10:14 +0100)]
s4-winbind: Add support for the WINBINDD_LIST_GROUPS command.