abartlet/samba.git/.git
13 years agolibrpc/idr Use the Samba3 notify.idl in common. merge-test
Andrew Bartlett [Mon, 2 May 2011 01:10:12 +0000 (11:10 +1000)]
librpc/idr Use the Samba3 notify.idl in common.

The extra fields in the structure that Samba4 does not use should not
bother it.

Andrew Bartlett

13 years agoserver_id.idl: Bring server_id.idl in common
Andrew Bartlett [Mon, 2 May 2011 00:55:20 +0000 (10:55 +1000)]
server_id.idl: Bring server_id.idl in common

Andrew Bartlett

13 years agos3-server_id Add id2 to server_id to match Samba4
Andrew Bartlett [Mon, 2 May 2011 00:27:36 +0000 (10:27 +1000)]
s3-server_id Add id2 to server_id to match Samba4

This will allow this structure to be shared, and allow us to create a
common messaging system between all Samba processes.  Samba4 uses the
id2 to indicate the different tasks within a single unix process.

Andrew Bartlett

13 years agolib/socket: Remove outdated comment
Andrew Bartlett [Tue, 3 May 2011 10:24:39 +0000 (20:24 +1000)]
lib/socket: Remove outdated comment

The autoconf and waf tests for interfaces logic are in libreplace now.

13 years agos4-interfaces Rename interfaces code so not to conflict with source3/
Andrew Bartlett [Mon, 2 May 2011 05:57:19 +0000 (15:57 +1000)]
s4-interfaces Rename interfaces code so not to conflict with source3/

The iface_count, iface_n_bcast, and load_interfaces functions
conflicted with functions of the same name in source3, so the source4
functions were renamed.  Hopefully we can actually wrap one around the
other in future.

Andrew Bartlett

13 years agos3-lib Use common lib/socket code for get_interfaces() et al
Andrew Bartlett [Mon, 2 May 2011 02:20:21 +0000 (12:20 +1000)]
s3-lib Use common lib/socket code for get_interfaces() et al

13 years agolib/socket move interfaces code to the top level
Andrew Bartlett [Mon, 2 May 2011 03:02:17 +0000 (13:02 +1000)]
lib/socket move interfaces code to the top level

13 years agos4-lib/socket Samba4 is not IPv6 compatible
Andrew Bartlett [Tue, 3 May 2011 09:41:41 +0000 (19:41 +1000)]
s4-lib/socket Samba4 is not IPv6 compatible

Don't add IPv6 interfaces until we actually support them.

I'll soon have IPv6 service at home, and then I'll make it my buisness
to sort this out once and for all.

Andrew Bartlett

13 years agos4-samba_dnsupdate: Cope with IPv6 and link-local addresses
Andrew Bartlett [Tue, 3 May 2011 09:24:08 +0000 (19:24 +1000)]
s4-samba_dnsupdate: Cope with IPv6 and link-local addresses

13 years agos4-lib/socket Add hook to allow the nbt_server to be IPv4 only
Andrew Bartlett [Tue, 3 May 2011 09:12:23 +0000 (19:12 +1000)]
s4-lib/socket Add hook to allow the nbt_server to be IPv4 only

13 years agos4-lib merge get_interfaces() from Samba3 to Samba4
Andrew Bartlett [Mon, 2 May 2011 02:09:19 +0000 (12:09 +1000)]
s4-lib merge get_interfaces() from Samba3 to Samba4

13 years agolib/util don't use enum protocol_types in ms_fnmatch_protocol
Andrew Bartlett [Wed, 4 May 2011 11:20:57 +0000 (21:20 +1000)]
lib/util don't use enum protocol_types in ms_fnmatch_protocol

This makes it easier to compile this in the top level with s3 and s4
headers.

Andrew Bartlett

13 years agolibcli/smb Move cifs posix helper functions and headers in common
Andrew Bartlett [Wed, 4 May 2011 11:19:46 +0000 (21:19 +1000)]
libcli/smb Move cifs posix helper functions and headers in common

unix_perms_to_wire() was a duplicate symbol in the top level build.

Andrew Bartlett

13 years agolib/util Use lib/util/ms_fnmatch.c in common for gen_fnmatch()
Andrew Bartlett [Wed, 4 May 2011 10:57:12 +0000 (20:57 +1000)]
lib/util Use lib/util/ms_fnmatch.c in common for gen_fnmatch()

gen_fnmatch was a duplicate symbol in the top level build.

gen_fnmatch() used for simple non-CIFS pattern matching, so selecting
the lib/util implementation should not be a concern.

Andrew Bartlett

13 years agolib/util Rename ms_fnmatch() to ms_fnmatch_protocol() to avoid dup symbol
Andrew Bartlett [Wed, 4 May 2011 10:53:33 +0000 (20:53 +1000)]
lib/util Rename ms_fnmatch() to ms_fnmatch_protocol() to avoid dup symbol

This verison of the function takes a protcol as argument to determine
matching rules.

Andrew Bartlett

13 years agoerrors: Remove unused unix_to_werror()
Andrew Bartlett [Wed, 4 May 2011 07:00:23 +0000 (17:00 +1000)]
errors: Remove unused unix_to_werror()

13 years agolibcli/util Move NTSTATUS table to the top level
Andrew Bartlett [Wed, 4 May 2011 05:50:07 +0000 (15:50 +1000)]
libcli/util Move NTSTATUS table to the top level

13 years agonterr: Add mem_ctx for return string from get_nt_error_c_code()
Andrew Bartlett [Wed, 4 May 2011 05:30:01 +0000 (15:30 +1000)]
nterr: Add mem_ctx for return string from get_nt_error_c_code()

It is clearer to avoid the implicit return on talloc_tos()

Andrew Bartlett

13 years agos3-smbd ntstatus_to_dos() pulls the DOS error codes out internally
Andrew Bartlett [Wed, 4 May 2011 06:16:13 +0000 (16:16 +1000)]
s3-smbd ntstatus_to_dos() pulls the DOS error codes out internally

This means we don't need to duplicate that logic here.

Andrew Bartlett

13 years agolibcli/util Merge ntstatus_to_dos() ntstatus_to_werror() to the top level
Andrew Bartlett [Wed, 4 May 2011 03:59:57 +0000 (13:59 +1000)]
libcli/util Merge ntstatus_to_dos() ntstatus_to_werror() to the top level

This takes the Samba4 version, with the NT_STATUS_IS_DOS() check.
This will be used in smbd/error.c shortly.

Andrew Bartlett

13 years agoerrors: Merge source3/ werror_to_ntstatus() code to source4/
Andrew Bartlett [Wed, 4 May 2011 06:51:23 +0000 (16:51 +1000)]
errors: Merge source3/ werror_to_ntstatus() code to source4/

13 years agoerrors: Merge ntstatus -> DOS error table between Samba3 and Samba4.
Andrew Bartlett [Wed, 4 May 2011 03:47:26 +0000 (13:47 +1000)]
errors: Merge ntstatus -> DOS error table between Samba3 and Samba4.

They are now identical

Andrew Bartlett

13 years agos3-lib Remove unused dos error codes from errmap_unix
Andrew Bartlett [Wed, 4 May 2011 01:39:21 +0000 (11:39 +1000)]
s3-lib Remove unused dos error codes from errmap_unix

This also makes unix_nt_errmap private to errmap_unix.c and errormap.c
so the tables themselves cannot be duplicate symbols until merged.

Andrew Bartlett

13 years agolib/util Move source3 tdb_wrap_open() into the common code.
Andrew Bartlett [Wed, 4 May 2011 00:28:15 +0000 (10:28 +1000)]
lib/util Move source3 tdb_wrap_open() into the common code.

This #if _SAMBA_BUILD == 3 is very unfortunate, as it means that in
the top level build, these options are not available for these
databases.  However, having two different tdb_wrap lists is a worse
fate, so this will do for now.

Andrew Bartlett

13 years agoClean up some const and other compiler warnings.
Jeremy Allison [Wed, 4 May 2011 21:57:37 +0000 (14:57 -0700)]
Clean up some const and other compiler warnings.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu May  5 00:59:40 CEST 2011 on sn-devel-104

13 years agoI added them, so I get to kill them :-). Finally remove all uses of safe_strcpy and...
Jeremy Allison [Tue, 3 May 2011 23:43:27 +0000 (16:43 -0700)]
I added them, so I get to kill them :-). Finally remove all uses of safe_strcpy and safe_strcat. Change to strlcpy, strlcat.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed May  4 22:14:14 CEST 2011 on sn-devel-104

13 years agoFix warning messages caused by addition of null check in fstrcpy macro.
Jeremy Allison [Wed, 4 May 2011 18:38:26 +0000 (11:38 -0700)]
Fix warning messages caused by addition of null check in fstrcpy macro.

13 years agoTidy up some missing checks for NULL in strlcpy.
Jeremy Allison [Tue, 3 May 2011 23:42:17 +0000 (16:42 -0700)]
Tidy up some missing checks for NULL in strlcpy.

13 years agoAdd in bufflen limit when storing NetBIOS names. Remove safe_strcpy.
Jeremy Allison [Tue, 3 May 2011 21:52:01 +0000 (14:52 -0700)]
Add in bufflen limit when storing NetBIOS names. Remove safe_strcpy.

13 years agoConvert safe_strXX to strlXXX. Clean up off-by-ones.
Jeremy Allison [Tue, 3 May 2011 21:51:25 +0000 (14:51 -0700)]
Convert safe_strXX to strlXXX. Clean up off-by-ones.

13 years agoRemove magic numbers. Standardize on macro. Move from safe_strcat to strlcat.
Jeremy Allison [Tue, 3 May 2011 21:08:27 +0000 (14:08 -0700)]
Remove magic numbers. Standardize on macro. Move from safe_strcat to strlcat.

13 years agoCope with +1 change on moving from safe_strcat to strlcat.
Jeremy Allison [Tue, 3 May 2011 21:06:32 +0000 (14:06 -0700)]
Cope with +1 change on moving from safe_strcat to strlcat.

13 years agoFold null terminator into listlen length, change to strlcpy.
Jeremy Allison [Tue, 3 May 2011 21:15:04 +0000 (14:15 -0700)]
Fold null terminator into listlen length, change to strlcpy.

13 years agoFix the only place we reply on the NULL handling for the source in safe_strcpy.
Jeremy Allison [Tue, 3 May 2011 21:01:20 +0000 (14:01 -0700)]
Fix the only place we reply on the NULL handling for the source in safe_strcpy.

13 years agoFix off-by-one when used with safe_strcpy.
Jeremy Allison [Tue, 3 May 2011 20:57:30 +0000 (13:57 -0700)]
Fix off-by-one when used with safe_strcpy.

13 years agosasl_secret_t ends in a char [1] size. This means the extra character is implicit...
Jeremy Allison [Tue, 3 May 2011 20:53:30 +0000 (13:53 -0700)]
sasl_secret_t ends in a char [1] size. This means the extra character is implicit in the safe_strcpy. When changing to strlcpy ensure we allocate an extra char for it. This fixes a bug where secret->len+1 used with safe_strcpy could actually write into secret->len+2.

13 years agoSimple +1 changes in hardcoded lengths when changing from safe_strcpy to strlcpy.
Jeremy Allison [Tue, 3 May 2011 20:52:06 +0000 (13:52 -0700)]
Simple +1 changes in hardcoded lengths when changing from safe_strcpy to strlcpy.

13 years agoBUGFIX when converting from safe_strcpy to strlcpy.
Jeremy Allison [Tue, 3 May 2011 20:49:28 +0000 (13:49 -0700)]
BUGFIX when converting from safe_strcpy to strlcpy.

We must have a blob legth > 0 in order to safely copy
the (possibly) 16 bytes + 1 byte zero character safely.

13 years agoRemove overmalloc_safe_strcpy - can be simple strlcpy.
Jeremy Allison [Tue, 3 May 2011 20:40:07 +0000 (13:40 -0700)]
Remove overmalloc_safe_strcpy - can be simple strlcpy.

13 years agoRemove obvious use of safe_strcpy + safe_strcat -> strlcpy + strlcat.
Jeremy Allison [Tue, 3 May 2011 20:19:27 +0000 (13:19 -0700)]
Remove obvious use of safe_strcpy + safe_strcat -> strlcpy + strlcat.

13 years agoChange safe_strcpy_base to strlcpy_base. Note the size doesn't change here as the...
Jeremy Allison [Tue, 3 May 2011 20:14:46 +0000 (13:14 -0700)]
Change safe_strcpy_base to strlcpy_base. Note the size doesn't change here as the original macro auto-added the -1.

13 years agoFix simple uses of safe_strcpy -> strlcpy. Easy ones where we just remove -1.
Jeremy Allison [Tue, 3 May 2011 20:10:01 +0000 (13:10 -0700)]
Fix simple uses of safe_strcpy -> strlcpy. Easy ones where we just remove -1.

13 years agos3-torture: Add a test for notify upon read&x
Volker Lendecke [Wed, 4 May 2011 15:45:34 +0000 (17:45 +0200)]
s3-torture: Add a test for notify upon read&x

This makes sure that when a file is brought online by a read call
we notify the client for FILE_NOTIFY_CHANGE_ATTRIBUTES.

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed May  4 21:09:22 CEST 2011 on sn-devel-104

13 years agoAlways build before commit ... :-)
Volker Lendecke [Wed, 4 May 2011 15:48:12 +0000 (17:48 +0200)]
Always build before commit ... :-)

13 years agoRemove unused function parse_add_domuser().
Jeremy Allison [Tue, 3 May 2011 19:55:42 +0000 (12:55 -0700)]
Remove unused function parse_add_domuser().

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed May  4 20:05:42 CEST 2011 on sn-devel-104

13 years agos3-waf: add vfs_gpfs_hsm_notify to the build.
Günther Deschner [Wed, 4 May 2011 16:01:04 +0000 (18:01 +0200)]
s3-waf: add vfs_gpfs_hsm_notify to the build.

Volker, can you please check this is correct ?

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed May  4 19:03:45 CEST 2011 on sn-devel-104

13 years agoRHEL-CTDB: Build vfs_gpfs_hsm_notify
Volker Lendecke [Wed, 4 May 2011 14:02:15 +0000 (16:02 +0200)]
RHEL-CTDB: Build vfs_gpfs_hsm_notify

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed May  4 17:12:14 CEST 2011 on sn-devel-104

13 years agovfs_gpfs: Properly notify the offline->online changes
Volker Lendecke [Wed, 4 May 2011 13:48:27 +0000 (15:48 +0200)]
vfs_gpfs: Properly notify the offline->online changes

This needs to be a separate module that cooperates with vfs_gpfs. If aio_fork
is used early in the module chain it (correctly) does not propagate the aio ops
down, so vfs_gpfs does not see them. This slim module must come early in the
chain for notifies to work properly.

13 years agovfs_gpfs: Block sendfile for offline files
Volker Lendecke [Wed, 4 May 2011 13:47:42 +0000 (15:47 +0200)]
vfs_gpfs: Block sendfile for offline files

13 years agovfs_gpfs: Store the winattrs in st.vfs_private
Volker Lendecke [Wed, 4 May 2011 13:42:54 +0000 (15:42 +0200)]
vfs_gpfs: Store the winattrs in st.vfs_private

This avoids a considerable amount of gpfs_winattr calls

13 years agos3: Properly deal with exited winbind children
Volker Lendecke [Wed, 4 May 2011 10:11:04 +0000 (12:11 +0200)]
s3: Properly deal with exited winbind children

When a winbind child exits, we need to immediately close the socket. If not,
the next request to that child will be sent to a socket without a listener,
leading to a failed request. This failed request will then trigger a proper
re-init.

This patch avoids the one failed request.

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed May  4 13:32:16 CEST 2011 on sn-devel-104

13 years agos3-vfs: make vfswrap_llistxattr and vfswrap_flistxattr static.
Günther Deschner [Tue, 3 May 2011 19:42:04 +0000 (21:42 +0200)]
s3-vfs: make vfswrap_llistxattr and vfswrap_flistxattr static.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed May  4 12:31:10 CEST 2011 on sn-devel-104

13 years agos3: Filter out duplicates in name_query()
Volker Lendecke [Tue, 3 May 2011 19:28:37 +0000 (21:28 +0200)]
s3: Filter out duplicates in name_query()

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed May  4 00:03:47 CEST 2011 on sn-devel-104

13 years agos3-includes: when MADVISE support was reverted back in 2009, someone forgot this...
Günther Deschner [Tue, 3 May 2011 14:28:44 +0000 (16:28 +0200)]
s3-includes: when MADVISE support was reverted back in 2009, someone forgot this hunk.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue May  3 22:06:20 CEST 2011 on sn-devel-104

13 years agos3-includes: move enum flush_reason_enum to smb.h
Günther Deschner [Tue, 3 May 2011 14:25:20 +0000 (16:25 +0200)]
s3-includes: move enum flush_reason_enum to smb.h

Guenther

13 years agos3-includes: remove ipv6 related prototype which is already defined in ../lib/util...
Günther Deschner [Tue, 3 May 2011 14:16:50 +0000 (16:16 +0200)]
s3-includes: remove ipv6 related prototype which is already defined in ../lib/util/util_net.h.

Guenther

13 years agos3-system: move LOCK_ defines to lib/system.c
Günther Deschner [Tue, 3 May 2011 12:45:47 +0000 (14:45 +0200)]
s3-system: move LOCK_ defines to lib/system.c

Guenther

13 years agos3: Handle EINTR from sys_poll correctly
Volker Lendecke [Tue, 3 May 2011 15:04:06 +0000 (17:04 +0200)]
s3: Handle EINTR from sys_poll correctly

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue May  3 18:06:48 CEST 2011 on sn-devel-104

13 years agos3-proto: move remaining krb5 protos to krb5_protos.h
Günther Deschner [Tue, 3 May 2011 10:05:47 +0000 (12:05 +0200)]
s3-proto: move remaining krb5 protos to krb5_protos.h

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue May  3 15:38:40 CEST 2011 on sn-devel-104

13 years agos3-ctdb Fix duplicate function name due to packet -> ctdb_packet rename.
Andrew Bartlett [Tue, 3 May 2011 09:11:38 +0000 (19:11 +1000)]
s3-ctdb Fix duplicate function name due to packet -> ctdb_packet rename.

Signed-off-by: Günther Deschner <gd@samba.org>
13 years agos3: reply_readbraw_error needs an sconn as argument also in the non-LFS code path
Björn Jacke [Wed, 20 Apr 2011 22:11:21 +0000 (00:11 +0200)]
s3: reply_readbraw_error needs an sconn as argument also in the non-LFS code path

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Björn Jacke <bj@sernet.de>
Autobuild-Date: Tue May  3 13:04:11 CEST 2011 on sn-devel-104

13 years agoѕ3/configure: move out generic CPPFLAGS in the solaris case here
Björn Jacke [Wed, 20 Apr 2011 21:40:30 +0000 (23:40 +0200)]
ѕ3/configure: move out generic CPPFLAGS in the solaris case here

Signed-off-by: Stefan Metzmacher <metze@samba.org>
13 years agoѕ3/configure: move out generic LDFLAGS in the solaris case here
Björn Jacke [Wed, 20 Apr 2011 21:32:12 +0000 (23:32 +0200)]
ѕ3/configure: move out generic LDFLAGS in the solaris case here

Signed-off-by: Stefan Metzmacher <metze@samba.org>
13 years agolib/util make string_wrappers.h a public header
Andrew Bartlett [Tue, 3 May 2011 05:35:18 +0000 (15:35 +1000)]
lib/util make string_wrappers.h a public header

This isn't a very good public header, but util.h includes it, so we
don't have much choice in the short term.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue May  3 08:37:22 CEST 2011 on sn-devel-104

13 years agos4-param Rename secrets_init() -> randseed_init()
Andrew Bartlett [Tue, 3 May 2011 03:24:10 +0000 (13:24 +1000)]
s4-param Rename secrets_init() -> randseed_init()

This only sets up the random number generator callback these days, so
use a different database for that.

(All secrets data in Samba4 is in secrets.ldb)

Andrew Bartlett

13 years agolib/util Use lib/util/util_str.c in common, including strequal()
Andrew Bartlett [Tue, 3 May 2011 02:59:36 +0000 (12:59 +1000)]
lib/util Use lib/util/util_str.c in common, including strequal()

strequal() is now implemented in terms of strcasecmp_m() which is
tested in smbtorture and which does not talloc() for ASCII or
non-ASCII comparions, and has an ASCII fast-path.

Andrew Bartlett

13 years agolib/util Use compiler-checked safe string macros in top level code.
Andrew Bartlett [Tue, 3 May 2011 05:23:19 +0000 (15:23 +1000)]
lib/util Use compiler-checked safe string macros in top level code.

This brings the 'safe' macros to the top level code, and removes
duplication of the safe_strcpy() and safe_strcat() functions.

Andrew Bartlett

13 years agos4: fix arguments to safe_strcpy()
Andrew Bartlett [Tue, 3 May 2011 05:33:31 +0000 (15:33 +1000)]
s4: fix arguments to safe_strcpy()

Found by the s3-derivied safe_strcpy() macro.

Andrew Bartlett

13 years agos4-socket: rename allow_access() to socket_allow_access()
Andrew Tridgell [Mon, 2 May 2011 23:34:06 +0000 (09:34 +1000)]
s4-socket: rename allow_access() to socket_allow_access()

this prevents a symbol collision with s3

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

13 years agolib/util/charset Use push_string and talloc_strupper/strlower from common code
Andrew Bartlett [Tue, 3 May 2011 02:29:12 +0000 (12:29 +1000)]
lib/util/charset Use push_string and talloc_strupper/strlower from common code

The only caller of push_string() (not to be confused with
push_string_check()) in the common code was encode_pw_buffer(), and it
didn't use the alignment or STR_UPPER flags.

The talloc_strupper() and talloc_strlower() functions are tested in
smbtorture, and are next_codepoint() based.

Andrew Bartlett

13 years agos3-lib make push_ucs2() static
Andrew Bartlett [Tue, 3 May 2011 02:25:29 +0000 (12:25 +1000)]
s3-lib make push_ucs2() static

13 years agoRemove strlower_m() and strupper_m() from source4 and common code.
Andrew Bartlett [Tue, 3 May 2011 02:16:16 +0000 (12:16 +1000)]
Remove strlower_m() and strupper_m() from source4 and common code.

This function is problematic because a string may expand in size when
changed into upper or lower case.  This will then push characters off
the end of the string in the s3 implementation, or panic in the former
s4 implementation.

Andrew Bartlett

13 years agos4-param: use new roles.h
Andrew Tridgell [Mon, 2 May 2011 02:05:13 +0000 (12:05 +1000)]
s4-param: use new roles.h

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

13 years agos3-include: use new roles.h
Andrew Tridgell [Mon, 2 May 2011 02:05:02 +0000 (12:05 +1000)]
s3-include: use new roles.h

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

13 years agolibds: added roles.h for server roles
Andrew Tridgell [Mon, 2 May 2011 02:04:32 +0000 (12:04 +1000)]
libds: added roles.h for server roles

this will allow us to move the server roles in common, which will
make it much easier to mix s3/s4 calls in the one C file

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

13 years agolibcli/raw: use a different ifdef than s3 smb.h
Andrew Tridgell [Mon, 2 May 2011 01:34:57 +0000 (11:34 +1000)]
libcli/raw: use a different ifdef than s3 smb.h

this allows both headers to be included in 1 C file

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

13 years agos4-messaging Rename messaging -> imessaging
Andrew Bartlett [Tue, 3 May 2011 00:40:33 +0000 (10:40 +1000)]
s4-messaging Rename messaging -> imessaging

This avoid symbol and structure conflicts between Samba3 and Samba4,
and chooses a less generic name.

Andrew Bartlett

13 years agos4-libcli Remove resolve_name() as it conflicts with Samba3.
Andrew Bartlett [Mon, 2 May 2011 06:36:48 +0000 (16:36 +1000)]
s4-libcli Remove resolve_name() as it conflicts with Samba3.

This was just a wrapper around resolve_name_ex(), so just call that
instead.

Andrew Bartlett

13 years agos4-torture Remove unused and uncompleated test
Andrew Bartlett [Mon, 2 May 2011 06:36:21 +0000 (16:36 +1000)]
s4-torture Remove unused and uncompleated test

13 years agolib/util Move set_socket_options() into common code.
Andrew Bartlett [Mon, 2 May 2011 06:23:40 +0000 (16:23 +1000)]
lib/util Move set_socket_options() into common code.

13 years agos4-lib/socket Merge updated set_socket_options from Samba3 -> Samba4
Andrew Bartlett [Mon, 2 May 2011 06:15:50 +0000 (16:15 +1000)]
s4-lib/socket Merge updated set_socket_options from Samba3 -> Samba4

13 years agolib/util Move more network utility functions from source3 into lib/util
Andrew Bartlett [Mon, 2 May 2011 05:23:08 +0000 (15:23 +1000)]
lib/util Move more network utility functions from source3 into lib/util

This will help with the merge of the interfaces layer.

Andrew Bartlett

13 years agos3-ctdb Rename packet file and files to ctdb_packet
Andrew Bartlett [Mon, 2 May 2011 01:38:41 +0000 (11:38 +1000)]
s3-ctdb Rename packet file and files to ctdb_packet

This avoids a conflicts with the Samba4 packet.c, as these is only
used in CTDB

Andrew Bartlett

13 years agos4-cluster Rename server_id.node -> vnn to match Samba3
Andrew Bartlett [Mon, 2 May 2011 00:53:18 +0000 (10:53 +1000)]
s4-cluster Rename server_id.node -> vnn to match Samba3

13 years agos4:Remove outdated doc on Samba4 upgrade
Andrew Bartlett [Sun, 1 May 2011 10:53:21 +0000 (20:53 +1000)]
s4:Remove outdated doc on Samba4 upgrade

13 years agoselftest: Update README
Andrew Bartlett [Sun, 1 May 2011 10:14:03 +0000 (20:14 +1000)]
selftest: Update README

13 years agoRemove reference to Samba4 LDAP backends
Andrew Bartlett [Sun, 1 May 2011 09:54:59 +0000 (19:54 +1000)]
Remove reference to Samba4 LDAP backends

13 years agos4-cluster: Remove const from cluster_id_string()
Andrew Bartlett [Mon, 2 May 2011 00:06:56 +0000 (10:06 +1000)]
s4-cluster: Remove const from cluster_id_string()

This allows the caller to talloc_free() this result.

Andrew Bartlett

13 years agos4:cluster Rename .id to .pid in server_id
Andrew Bartlett [Mon, 2 May 2011 00:05:46 +0000 (10:05 +1000)]
s4:cluster Rename .id to .pid in server_id

This also changes some DEBUG messages to use cluster_id_string()
rather than .id, to isolate them from this and other changes.

Andrew Bartlett

13 years agos3: Tune broadcast namequeries for unique names
Volker Lendecke [Mon, 2 May 2011 21:35:06 +0000 (23:35 +0200)]
s3: Tune broadcast namequeries for unique names

If we get a unique name via a broadcast query, there's no point in waiting the
full timeout. A unique name is just what its name says: unique. No point in
waiting longer.

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue May  3 00:57:24 CEST 2011 on sn-devel-104

13 years agos3-rpc_server: (re)move last globally included rpc_server prototypes.
Günther Deschner [Mon, 2 May 2011 11:27:45 +0000 (13:27 +0200)]
s3-rpc_server: (re)move last globally included rpc_server prototypes.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon May  2 16:05:31 CEST 2011 on sn-devel-104

13 years agos3-spoolss: remove another unused header.
Günther Deschner [Mon, 2 May 2011 11:25:19 +0000 (13:25 +0200)]
s3-spoolss: remove another unused header.

Guenther

13 years agos3: include ntdomain.h before including generated srv_ headers.
Günther Deschner [Mon, 2 May 2011 11:21:53 +0000 (13:21 +0200)]
s3: include ntdomain.h before including generated srv_ headers.

Guenther

13 years agos3-rpc_server: add pipes_struct forward declaration.
Günther Deschner [Mon, 2 May 2011 11:19:51 +0000 (13:19 +0200)]
s3-rpc_server: add pipes_struct forward declaration.

Guenther

13 years agos3-winbindd: remove unused headers.
Günther Deschner [Mon, 2 May 2011 11:18:39 +0000 (13:18 +0200)]
s3-winbindd: remove unused headers.

Guenther

13 years agos3: remove various references to server side dcerpc structs (which are not needed).
Günther Deschner [Mon, 2 May 2011 10:36:55 +0000 (12:36 +0200)]
s3: remove various references to server side dcerpc structs (which are not needed).

Guenther

13 years agos3: move pipe_auth_data to dcerpc.h
Günther Deschner [Mon, 2 May 2011 10:36:25 +0000 (12:36 +0200)]
s3: move pipe_auth_data to dcerpc.h

Guenther

13 years agos3-printing: include ../librpc/ndr/libndr.h in ads printing.
Günther Deschner [Fri, 29 Apr 2011 22:40:28 +0000 (00:40 +0200)]
s3-printing: include ../librpc/ndr/libndr.h  in ads printing.

Guenther

13 years agos3-smbd: avoid using pipes_struct when only session_info is needed.
Günther Deschner [Fri, 29 Apr 2011 22:37:05 +0000 (00:37 +0200)]
s3-smbd: avoid using pipes_struct when only session_info is needed.

Guenther

13 years agos3-printing: avoid using pipes_struct when only session_info is needed.
Günther Deschner [Fri, 29 Apr 2011 22:09:09 +0000 (00:09 +0200)]
s3-printing: avoid using pipes_struct when only session_info is needed.

Guenther