kai/samba.git
12 years agowinbindd.8: Use new idmap syntax for smbconfoptions
Luk Claes [Tue, 31 May 2011 15:21:09 +0000 (17:21 +0200)]
winbindd.8: Use new idmap syntax for smbconfoptions

Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3:passdb: add GPL/copyright header to machine_sid.h
Michael Adam [Tue, 31 May 2011 12:32:40 +0000 (14:32 +0200)]
s3:passdb: add GPL/copyright header to machine_sid.h

12 years agos3:nmbd: add _NMBD_NMBD_H_ guard to nmbd.h
Michael Adam [Tue, 31 May 2011 11:30:34 +0000 (13:30 +0200)]
s3:nmbd: add _NMBD_NMBD_H_ guard to nmbd.h

12 years agos3:nmbd: add GPL/Copyright header to nmbd.h
Michael Adam [Tue, 31 May 2011 11:29:34 +0000 (13:29 +0200)]
s3:nmbd: add GPL/Copyright header to nmbd.h

12 years agos3:rpc_server: add _RPC_SERVER_SRV_ACCESS_CHECK_H_ guard to srv_access_check.h
Michael Adam [Tue, 31 May 2011 11:25:34 +0000 (13:25 +0200)]
s3:rpc_server: add _RPC_SERVER_SRV_ACCESS_CHECK_H_ guard to srv_access_check.h

12 years agos3:rpc_server: add GPL/Copyright header to rpc_server/srv_access_check.h
Michael Adam [Tue, 31 May 2011 11:24:24 +0000 (13:24 +0200)]
s3:rpc_server: add GPL/Copyright header to rpc_server/srv_access_check.h

12 years agos3: add _LIB_IDMAP_CACHE_H_ guard to lib/idmap_cache.h
Michael Adam [Tue, 31 May 2011 11:19:52 +0000 (13:19 +0200)]
s3: add _LIB_IDMAP_CACHE_H_ guard to lib/idmap_cache.h

12 years agos3: add GPL/Copyright header to lib/idmap_cache.h
Michael Adam [Tue, 31 May 2011 11:18:51 +0000 (13:18 +0200)]
s3: add GPL/Copyright header to lib/idmap_cache.h

12 years agoreplace: remove waring if IOV_MAX is not defined
Björn Jacke [Tue, 31 May 2011 07:47:17 +0000 (09:47 +0200)]
replace: remove waring if IOV_MAX is not defined

as discussed on samba-techincal we currelty don't rely on it and we don't want
to flood this warning message during compile.

Autobuild-User: Björn Jacke <bj@sernet.de>
Autobuild-Date: Tue May 31 18:36:53 CEST 2011 on sn-devel-104

12 years agos3:librpc: remove unused file librpc/ndr/util.h
Michael Adam [Tue, 31 May 2011 10:06:00 +0000 (12:06 +0200)]
s3:librpc: remove unused file librpc/ndr/util.h

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Tue May 31 15:19:46 CEST 2011 on sn-devel-104

12 years agos3:winbindd_nrd: include ../librpc/ndr/libndr.h instead of librpc/ndr/util.h
Michael Adam [Tue, 31 May 2011 10:03:07 +0000 (12:03 +0200)]
s3:winbindd_nrd: include ../librpc/ndr/libndr.h instead of librpc/ndr/util.h

12 years agos3:libads/ndr: include ../librpc/ndr/libndr.h instead of librpc/ndr/util.h
Michael Adam [Tue, 31 May 2011 10:03:07 +0000 (12:03 +0200)]
s3:libads/ndr: include ../librpc/ndr/libndr.h instead of librpc/ndr/util.h

12 years agos3: Support shadow copy display over SMB2
Volker Lendecke [Mon, 30 May 2011 15:14:56 +0000 (17:14 +0200)]
s3: Support shadow copy display over SMB2

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue May 31 12:53:10 CEST 2011 on sn-devel-104

12 years agos3:doc: document "idmap gid" as deprecated.
Michael Adam [Tue, 31 May 2011 08:29:37 +0000 (10:29 +0200)]
s3:doc: document "idmap gid" as deprecated.

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Tue May 31 11:39:38 CEST 2011 on sn-devel-104

12 years agos3:doc: document "idmap uid" as deprecated.
Michael Adam [Tue, 31 May 2011 08:29:08 +0000 (10:29 +0200)]
s3:doc: document "idmap uid" as deprecated.

12 years agos3:doc: remove the documentation of "idmap alloc backend", which has been removed
Michael Adam [Tue, 31 May 2011 08:08:44 +0000 (10:08 +0200)]
s3:doc: remove the documentation of "idmap alloc backend", which has been removed

12 years agos3:doc: document "idmap backend" as deprecated.
Michael Adam [Tue, 31 May 2011 08:07:59 +0000 (10:07 +0200)]
s3:doc: document "idmap backend" as deprecated.

12 years agos3:doc: update documentation of the "idmap config FOO : BAR" familiy of parameters
Michael Adam [Tue, 31 May 2011 08:03:18 +0000 (10:03 +0200)]
s3:doc: update documentation of the "idmap config FOO : BAR" familiy of parameters

12 years agos3:lib/eventlog/proto.h: add _LIB_EVENTLOG_PROTO_H_ guard
Michael Adam [Tue, 31 May 2011 05:32:15 +0000 (07:32 +0200)]
s3:lib/eventlog/proto.h: add _LIB_EVENTLOG_PROTO_H_ guard

12 years agos3:lib/eventlog/proto.h: add GPL/Copyright header
Michael Adam [Tue, 31 May 2011 05:31:14 +0000 (07:31 +0200)]
s3:lib/eventlog/proto.h: add GPL/Copyright header

12 years agos3-libsmb remove ldap_err2string() as common nterrs[] has the constants
Andrew Bartlett [Tue, 31 May 2011 04:33:23 +0000 (14:33 +1000)]
s3-libsmb remove ldap_err2string() as common nterrs[] has the constants

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue May 31 08:58:00 CEST 2011 on sn-devel-104

12 years agos3-build Don't allow undefined symbols in pam_smbpass.so
Andrew Bartlett [Tue, 31 May 2011 03:26:57 +0000 (13:26 +1000)]
s3-build Don't allow undefined symbols in pam_smbpass.so

12 years agolibcli/util Remove ntstatus_check_dos_mapping
Andrew Bartlett [Sat, 14 May 2011 19:53:05 +0000 (21:53 +0200)]
libcli/util Remove ntstatus_check_dos_mapping

This has been set to true since the global loadparm was removed in
2008, and removes an #ifdef SAMBA_BUILD == 4

Andrew Bartlett

12 years agos3-utils: fix another -Wunused-but-set-variable build warning.
Günther Deschner [Mon, 30 May 2011 22:35:58 +0000 (00:35 +0200)]
s3-utils: fix another -Wunused-but-set-variable build warning.

Guenther

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

12 years agos3-libsmb: fix build warning of cli_qfilename().
Günther Deschner [Mon, 30 May 2011 22:35:11 +0000 (00:35 +0200)]
s3-libsmb: fix build warning of cli_qfilename().

Guenther

12 years agos3-build Put memcache in a standalone library
Andrew Bartlett [Tue, 31 May 2011 00:45:08 +0000 (10:45 +1000)]
s3-build Put memcache in a standalone library

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

12 years agos3-lib Move source3-specific malloc replacements into a seperate file
Andrew Bartlett [Tue, 31 May 2011 00:42:30 +0000 (10:42 +1000)]
s3-lib Move source3-specific malloc replacements into a seperate file

This will make it easier to create a dep tree for otherwise simple
libraries.

Andrew Bartlett

12 years agolib/util Move sys_memalign into lib/util/system.c
Andrew Bartlett [Tue, 31 May 2011 00:41:42 +0000 (10:41 +1000)]
lib/util Move sys_memalign into lib/util/system.c

12 years agos3-smbd Fix conn_msg.c: Cannot return in a void function
Andrew Bartlett [Tue, 31 May 2011 00:23:42 +0000 (10:23 +1000)]
s3-smbd Fix conn_msg.c:  Cannot return in a void function

12 years agos3-lib Improve indentation of errmap_unix
Andrew Bartlett [Mon, 30 May 2011 23:16:35 +0000 (09:16 +1000)]
s3-lib Improve indentation of errmap_unix

This also makes it easier to compare and contrast with the source4
version, because the differences here matter, and need to be resolved
with care.

Andrew Bartlett

12 years agos4-libcli Merge error map order with source3 errmap_unix.c
Andrew Bartlett [Mon, 30 May 2011 23:08:43 +0000 (09:08 +1000)]
s4-libcli Merge error map order with source3 errmap_unix.c

This makes it easier to see what the actual differences here are.

Andrew Bartlett

12 years agos3-lib: Use ARRAY_SIZE() to walk the error mapping tables
Andrew Bartlett [Mon, 30 May 2011 22:44:02 +0000 (08:44 +1000)]
s3-lib: Use ARRAY_SIZE() to walk the error mapping tables

This gives a constant termination condition, and may help the compiler.

Andrew Bartlett

12 years agowinbindd.8: Fix typo
Luk Claes [Mon, 30 May 2011 22:26:39 +0000 (00:26 +0200)]
winbindd.8: Fix typo

Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Michael Adam <obnox@samba.org>
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Tue May 31 02:56:52 CEST 2011 on sn-devel-104

12 years agoidmap_tdb.8: Remove reference to idmap uid and idmap gid options as fallback
Luk Claes [Mon, 30 May 2011 22:26:38 +0000 (00:26 +0200)]
idmap_tdb.8: Remove reference to idmap uid and idmap gid options as fallback

Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Michael Adam <obnox@samba.org>
12 years agoidmap_tdb.8: Remove references to alloc backend
Luk Claes [Mon, 30 May 2011 22:26:37 +0000 (00:26 +0200)]
idmap_tdb.8: Remove references to alloc backend

Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Michael Adam <obnox@samba.org>
12 years agoidmap_tdb.8: Use new idmap syntax in examples
Luk Claes [Mon, 30 May 2011 22:26:36 +0000 (00:26 +0200)]
idmap_tdb.8: Use new idmap syntax in examples

Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Michael Adam <obnox@samba.org>
12 years agoidmap_ldap.8: Remove reference to idmap uid and idmap gid options as fallback
Luk Claes [Mon, 30 May 2011 22:26:35 +0000 (00:26 +0200)]
idmap_ldap.8: Remove reference to idmap uid and idmap gid options as fallback

Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Michael Adam <obnox@samba.org>
12 years agoidmap_ldap.8: Backend is not only used for searching
Luk Claes [Mon, 30 May 2011 22:26:34 +0000 (00:26 +0200)]
idmap_ldap.8: Backend is not only used for searching

Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Michael Adam <obnox@samba.org>
12 years agoidmap_ldap.8: Remove references to idmap alloc backend
Luk Claes [Mon, 30 May 2011 22:26:33 +0000 (00:26 +0200)]
idmap_ldap.8: Remove references to idmap alloc backend

Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Michael Adam <obnox@samba.org>
12 years agoidmap_ldap.8: Rework example to use new idmap syntax
Luk Claes [Mon, 30 May 2011 22:26:32 +0000 (00:26 +0200)]
idmap_ldap.8: Rework example to use new idmap syntax

Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Michael Adam <obnox@samba.org>
12 years agoidmap_tdb2.8: Remove mentioning of deprecated idmap uid and idmap gid options as...
Luk Claes [Mon, 30 May 2011 22:26:31 +0000 (00:26 +0200)]
idmap_tdb2.8: Remove mentioning of deprecated idmap uid and idmap gid options as fallback

Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Michael Adam <obnox@samba.org>
12 years agoidmap_tdb2.8: Avoid confusion with idmap uid and idmap gid options
Luk Claes [Mon, 30 May 2011 22:26:30 +0000 (00:26 +0200)]
idmap_tdb2.8: Avoid confusion with idmap uid and idmap gid options

Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Michael Adam <obnox@samba.org>
12 years agoidmap_tdb2.8: Remove part about alloc backend
Luk Claes [Mon, 30 May 2011 22:26:29 +0000 (00:26 +0200)]
idmap_tdb2.8: Remove part about alloc backend

Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Michael Adam <obnox@samba.org>
12 years agoidmap_tdb2.8: Use new syntax in example
Luk Claes [Mon, 30 May 2011 22:26:28 +0000 (00:26 +0200)]
idmap_tdb2.8: Use new syntax in example

Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Michael Adam <obnox@samba.org>
12 years agowinbindd.8: Use new syntax in example
Luk Claes [Mon, 30 May 2011 22:26:27 +0000 (00:26 +0200)]
winbindd.8: Use new syntax in example

Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Michael Adam <obnox@samba.org>
12 years agowbinfo.1: Avoid confusion with idmap uid option
Luk Claes [Mon, 30 May 2011 22:26:26 +0000 (00:26 +0200)]
wbinfo.1: Avoid confusion with idmap uid option

Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Michael Adam <obnox@samba.org>
12 years agoidmap_autorid.8: Avoid confusion with idmap uid and idmap gid options
Luk Claes [Mon, 30 May 2011 22:26:25 +0000 (00:26 +0200)]
idmap_autorid.8: Avoid confusion with idmap uid and idmap gid options

Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Michael Adam <obnox@samba.org>
12 years agoidmap_autorid.8: Use new syntax in autorid backend examples
Luk Claes [Mon, 30 May 2011 22:26:24 +0000 (00:26 +0200)]
idmap_autorid.8: Use new syntax in autorid backend examples

Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Michael Adam <obnox@samba.org>
12 years agoidmap_rid.8: Use new syntax in rid backend example
Luk Claes [Mon, 30 May 2011 22:26:23 +0000 (00:26 +0200)]
idmap_rid.8: Use new syntax in rid backend example

Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Michael Adam <obnox@samba.org>
12 years agoidmap_nss.8: Use new syntax for nss backend
Luk Claes [Mon, 30 May 2011 22:26:22 +0000 (00:26 +0200)]
idmap_nss.8: Use new syntax for nss backend

Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Michael Adam <obnox@samba.org>
12 years agoidmap_hash.8: Use new syntax for hash backend
Luk Claes [Mon, 30 May 2011 22:26:21 +0000 (00:26 +0200)]
idmap_hash.8: Use new syntax for hash backend

Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Michael Adam <obnox@samba.org>
12 years agoidmap_adex.8: Use new syntax in adex backend example
Luk Claes [Mon, 30 May 2011 22:26:20 +0000 (00:26 +0200)]
idmap_adex.8: Use new syntax in adex backend example

Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Michael Adam <obnox@samba.org>
12 years agoidmap_ad.8: use new syntax in ad backend example
Luk Claes [Mon, 30 May 2011 22:26:19 +0000 (00:26 +0200)]
idmap_ad.8: use new syntax in ad backend example

Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3:libgpo/gpo_proto.h: add _LIBGPO_GPO_PROTO_H_ guard
Michael Adam [Mon, 30 May 2011 22:45:57 +0000 (00:45 +0200)]
s3:libgpo/gpo_proto.h: add _LIBGPO_GPO_PROTO_H_ guard

12 years agos3:libgpo/gpo_proto.h: add GPL/Copyright header
Michael Adam [Mon, 30 May 2011 22:45:06 +0000 (00:45 +0200)]
s3:libgpo/gpo_proto.h: add GPL/Copyright header

12 years agos3:libads/kerberos_proto.h: add _LIBADS_KERBEROS_PROTO_H_ guard
Michael Adam [Mon, 30 May 2011 22:39:09 +0000 (00:39 +0200)]
s3:libads/kerberos_proto.h: add _LIBADS_KERBEROS_PROTO_H_ guard

12 years agos3:libads/kerberos_proto.h: add GPL/Copyright header
Michael Adam [Mon, 30 May 2011 22:38:18 +0000 (00:38 +0200)]
s3:libads/kerberos_proto.h: add GPL/Copyright header

12 years agos3:libads/ads_proto.h: add _LIBADS_ADS_PROTO_H_ guard
Michael Adam [Mon, 30 May 2011 22:34:17 +0000 (00:34 +0200)]
s3:libads/ads_proto.h: add _LIBADS_ADS_PROTO_H_ guard

12 years agos3:libads/ads_proto.h: add GPL/Copyright header
Michael Adam [Mon, 30 May 2011 22:33:13 +0000 (00:33 +0200)]
s3:libads/ads_proto.h: add GPL/Copyright header

12 years agos3:nmbd/nmbd_proto.h: add GPL/Copyright header
Michael Adam [Mon, 30 May 2011 22:29:17 +0000 (00:29 +0200)]
s3:nmbd/nmbd_proto.h: add GPL/Copyright header

12 years agos3:winbindd/idmap_proto.h: add _WINBINDD_IDMAP_PROTO_H_ guard
Michael Adam [Mon, 30 May 2011 22:25:05 +0000 (00:25 +0200)]
s3:winbindd/idmap_proto.h: add _WINBINDD_IDMAP_PROTO_H_ guard

12 years agos3:winbindd/idmap_proto.h: add GPL/Copyright header
Michael Adam [Mon, 30 May 2011 22:23:46 +0000 (00:23 +0200)]
s3:winbindd/idmap_proto.h: add GPL/Copyright header

12 years agos3:groupdb/proto.h: add _GROUPDB_PROTO_H_ guard
Michael Adam [Mon, 30 May 2011 22:19:22 +0000 (00:19 +0200)]
s3:groupdb/proto.h: add _GROUPDB_PROTO_H_ guard

12 years agos3:groupdb/proto.h: add GPL/Copyright header
Michael Adam [Mon, 30 May 2011 22:18:26 +0000 (00:18 +0200)]
s3:groupdb/proto.h: add GPL/Copyright header

12 years agos3:smbd/proto.h: add _SMBD_PROTO_H_ guard
Michael Adam [Mon, 30 May 2011 22:13:15 +0000 (00:13 +0200)]
s3:smbd/proto.h: add _SMBD_PROTO_H_ guard

12 years agos3:smbd/proto.h: add GPL/Copyright header
Michael Adam [Mon, 30 May 2011 22:12:27 +0000 (00:12 +0200)]
s3:smbd/proto.h: add GPL/Copyright header

12 years agos3:locking/proto.h: add _LOCKING_PROTO_H_ guard
Michael Adam [Mon, 30 May 2011 22:10:29 +0000 (00:10 +0200)]
s3:locking/proto.h: add _LOCKING_PROTO_H_ guard

12 years agos3:locking/proto.h: add GPL/Copyright header
Michael Adam [Mon, 30 May 2011 22:09:28 +0000 (00:09 +0200)]
s3:locking/proto.h: add GPL/Copyright header

12 years agos3:auth/proto.h: add _AUTH_PROTO_H_ guard
Michael Adam [Mon, 30 May 2011 21:57:23 +0000 (23:57 +0200)]
s3:auth/proto.h: add _AUTH_PROTO_H_ guard

12 years agos3:auth/proto.h: add GPL/Copyright header
Michael Adam [Mon, 30 May 2011 21:54:36 +0000 (23:54 +0200)]
s3:auth/proto.h: add GPL/Copyright header

12 years agos3:passdb/proto.h: add _PASSDB_PROTO_H_ guard
Michael Adam [Mon, 30 May 2011 21:42:02 +0000 (23:42 +0200)]
s3:passdb/proto.h: add _PASSDB_PROTO_H_ guard

12 years agos3:passdb/proto.h: add GPL/copyright comment header
Michael Adam [Mon, 30 May 2011 21:38:13 +0000 (23:38 +0200)]
s3:passdb/proto.h: add GPL/copyright comment header

12 years agos3-build Specify more of the smbconf dependencies
Andrew Bartlett [Mon, 30 May 2011 08:39:27 +0000 (18:39 +1000)]
s3-build Specify more of the smbconf dependencies

This brings more functions into util_names.c, and util_names.c into
PARAM_WITHOUT_REG_SRC.

This is not yet a full list, that would formalise the implicit
dependency loop.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue May 31 01:43:37 CEST 2011 on sn-devel-104

12 years agos3-build Make smbregistry depend on more of the subsystems it needs
Andrew Bartlett [Mon, 30 May 2011 08:37:00 +0000 (18:37 +1000)]
s3-build Make smbregistry depend on more of the subsystems it needs

This is not the full list (that can be seen by setting
allow_undefined_symbols=True).

Andrew Bartlett

12 years agos3-build Add util_sec subsystem
Andrew Bartlett [Mon, 30 May 2011 07:42:06 +0000 (17:42 +1000)]
s3-build Add util_sec subsystem

12 years agos3-build Move dbwrap_rbt into dbwrap_util subsystem
Andrew Bartlett [Mon, 30 May 2011 07:39:35 +0000 (17:39 +1000)]
s3-build Move dbwrap_rbt into dbwrap_util subsystem

12 years agos3-build Create dbwrap_util subsystem
Andrew Bartlett [Mon, 30 May 2011 07:27:23 +0000 (17:27 +1000)]
s3-build Create dbwrap_util subsystem

This contains the functions from dbwrap that don't require lp_
functions, and can therefore be put into a library (without dependency
loops).

Andrew Bartlett

12 years agos3-build: Rearrange build system to seperate out simple libraries
Andrew Bartlett [Mon, 30 May 2011 06:55:30 +0000 (16:55 +1000)]
s3-build: Rearrange build system to seperate out simple libraries

This will slowly allow us to develop a proper dependency tree without
interlibrary loops and unresolved symbols.

Andrew Bartlett

12 years agos3-build Add dependency on 'ldap' and 'ber'
Andrew Bartlett [Mon, 30 May 2011 06:28:17 +0000 (16:28 +1000)]
s3-build Add dependency on 'ldap' and 'ber'

These external libraries are required for the hooks in lib/ldap_debug_handler.c

12 years agos3-lib Move free_namearray() into it's own file
Andrew Bartlett [Mon, 30 May 2011 06:18:51 +0000 (16:18 +1000)]
s3-lib Move free_namearray() into it's own file

This makes it easier to have conn_smbd strictly depend on all it's
dependencies.

Andrew Bartlett

12 years agos3-lib Move realloc based string substitution functions out of util_str.c
Andrew Bartlett [Mon, 30 May 2011 06:16:08 +0000 (16:16 +1000)]
s3-lib Move realloc based string substitution functions out of util_str.c

This makes the dependency set for source3/lib/util_str.c simpiler,
which in turn makes it easier to build a dependency tree.

Andrew Bartlett

12 years agos3-lib Move sstring_sub() to it's only user and make static
Andrew Bartlett [Mon, 30 May 2011 06:15:01 +0000 (16:15 +1000)]
s3-lib Move sstring_sub() to it's only user and make static

This should not be used more generally, as it is specifically not for
multibyte strings, and uses malloc rather than talloc.

Andrew Bartlett

12 years agos3-param Move init_iconv() to loadparm.c
Andrew Bartlett [Mon, 30 May 2011 03:40:33 +0000 (13:40 +1000)]
s3-param Move init_iconv() to loadparm.c

This assists with some dependency loops

Andrew Bartlett

12 years agolibcli/security: move secdesc.c to the top level libcli/security
Andrew Bartlett [Mon, 30 May 2011 03:23:56 +0000 (13:23 +1000)]
libcli/security: move secdesc.c to the top level libcli/security

This code does not rely on lp_ or other source3 only functions, so can
be part of the common library.

Andrew Bartlett

12 years agos3-globals Remove smbd_event_context() (use server_event_context())
Andrew Bartlett [Wed, 25 May 2011 08:51:56 +0000 (18:51 +1000)]
s3-globals Remove smbd_event_context() (use server_event_context())

This has been a wrapper around server_event_context() for some time
now, and removing this from dummmysmbd.c assists with library
dependencies.

Andrew Bartlett

12 years agoheimdal: Remove getprogname and setprogname from the heimdal import
Andrew Bartlett [Wed, 25 May 2011 06:45:53 +0000 (16:45 +1000)]
heimdal: Remove getprogname and setprogname from the heimdal import

12 years agoheimdal_build: Don't use heimdal's getprogname() and setprogname()
Andrew Bartlett [Wed, 25 May 2011 06:44:50 +0000 (16:44 +1000)]
heimdal_build: Don't use heimdal's getprogname() and setprogname()

Writing into an __progname variable spooks me, and if we use the local
variable, then we duplciate the system one, which fails SYMBOLCHECK

Andrew Bartlett

12 years agos3-param split service.c into param and smbd components
Andrew Bartlett [Wed, 25 May 2011 05:01:04 +0000 (15:01 +1000)]
s3-param split service.c into param and smbd components

The dependency chain of find_service can't be satisfied sensibly
outside smbd, so don't include this in the main 'param' subsystem.

Also remove the duplicate find_service() and conn_snum_used() from
dummysmbd.c: The WAF build does not need these dummies any more, but
file.

Andrew Bartlett

12 years agos3-smbd Split conn.c into 3 files
Andrew Bartlett [Wed, 25 May 2011 04:58:24 +0000 (14:58 +1000)]
s3-smbd Split conn.c into 3 files

The idea with this split is to make it easier to handle dependencies,
avoiding having the loadparm code depend on the global server
variables, without resorting to dummy functions and linker tricks.

conn_clear_vuid_cache() is brought in from uid.c to make it static

Andrew Bartlett

12 years agos3-build: Move user_util.c into it's own subsystem
Andrew Bartlett [Wed, 25 May 2011 04:55:08 +0000 (14:55 +1000)]
s3-build: Move user_util.c into it's own subsystem

12 years agos3-lib Move string_init functions into their own file
Andrew Bartlett [Wed, 25 May 2011 04:53:32 +0000 (14:53 +1000)]
s3-lib Move string_init functions into their own file

These have not been moved in common, as they are not talloc-based, but
it helps with dependencies if these are seperated from the rest of
util_str.c

Andrew Bartlett

12 years agos3-smbd provide struct smbd_server_connection * to conn_snum_used
Andrew Bartlett [Wed, 25 May 2011 03:00:22 +0000 (13:00 +1000)]
s3-smbd provide struct smbd_server_connection * to conn_snum_used

This provides the 'sconn' parameter to this key functions, that
is currently duplicated in dummysmbd.c, which causes duplicate symbol
issues in the waf build.

This has natrually caused a number of consequential changes across the
codebase, includning not passing a messaging context into initial
reload_services():

This causes problems because the global smbd_server_connection isn't
yet set up, as there isn't a connection here, just the initial
process.

Andrew Bartlett

12 years agos3: Safely mark our sconn as smb2 if we have that protocol
Volker Lendecke [Mon, 30 May 2011 14:30:54 +0000 (16:30 +0200)]
s3: Safely mark our sconn as smb2 if we have that protocol

Otherwise smbd will crash at an unclean exit. Without this conn_close_all will
do a close_cnum() on all connection_struct's. In smb2, those are talloc
children of the smbd_smb2_tcon's. sconn is talloc_free'ed after the
conn_close_all, but the smbd_smb2_tcon destructor will still reference
tcon->compat_conn, referencing then free'ed (and null'ed out) memory.

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon May 30 22:49:53 CEST 2011 on sn-devel-104

12 years agoImprove documentation for net rpc trust
Sumit Bose [Mon, 30 May 2011 09:14:47 +0000 (11:14 +0200)]
Improve documentation for net rpc trust

Add man pages entries and fix usage output.

Signed-off-by: Günther Deschner <gd@samba.org>
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon May 30 20:05:34 CEST 2011 on sn-devel-104

12 years agos3:net: registry export: close key after recursion returns
Gregor Beck [Mon, 30 May 2011 07:31:21 +0000 (09:31 +0200)]
s3:net: registry export: close key after recursion returns

Signed-off-by: Michael Adam <obnox@samba.org>
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Mon May 30 18:53:28 CEST 2011 on sn-devel-104

12 years agos3:net registry: polish output of net registry enumerate[_recursive]
Michael Adam [Mon, 30 May 2011 14:54:47 +0000 (16:54 +0200)]
s3:net registry: polish output of net registry enumerate[_recursive]

so that net registry enumerate output is as before, and
net registry enumerate_recursive is formatted more nicely

12 years agos3:net: registry: use recursive implementation for enumerate
Gregor Beck [Mon, 30 May 2011 08:24:16 +0000 (10:24 +0200)]
s3:net: registry: use recursive implementation for enumerate

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3:net: registry: add new command enumerate_recursive
Gregor Beck [Mon, 30 May 2011 06:58:34 +0000 (08:58 +0200)]
s3:net: registry: add new command enumerate_recursive

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos4:torture: fix SEGFAULT in raw.acl.dynamic
Gregor Beck [Thu, 26 May 2011 08:23:41 +0000 (10:23 +0200)]
s4:torture: fix SEGFAULT in raw.acl.dynamic

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agonfs4_acls: pass ACE_FLAG_INHERITED_ACE down from the client
Gregor Beck [Mon, 23 May 2011 12:45:57 +0000 (14:45 +0200)]
nfs4_acls: pass ACE_FLAG_INHERITED_ACE down from the client

Signed-off-by: Michael Adam <obnox@samba.org>