ira/wip.git
8 years agosamba-tool: update tests for new 'user enable' syntax
Andrew Tridgell [Wed, 1 Jun 2011 07:22:15 +0000 (17:22 +1000)]
samba-tool: update tests for new 'user enable' syntax

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Wed Jun  1 10:37:50 CEST 2011 on sn-devel-104

8 years agosamba-tool: improved error handling in user setexpiry
Andrew Tridgell [Wed, 1 Jun 2011 04:46:04 +0000 (14:46 +1000)]
samba-tool: improved error handling in user setexpiry

8 years agosamba-tool: improved user enable error handling
Andrew Tridgell [Wed, 1 Jun 2011 04:41:51 +0000 (14:41 +1000)]
samba-tool: improved user enable error handling

8 years agos4:samba-tool: Move samba-tool setexpiry to samba-tool user setexpiry <user>
Theresa Halloran [Thu, 19 May 2011 20:24:00 +0000 (16:24 -0400)]
s4:samba-tool: Move samba-tool setexpiry to samba-tool user setexpiry <user>

Signed-off-by: Andrew Tridgell <tridge@samba.org>
8 years agos4/samba-tool: Move samba-tool enableaccount to samba-tool user enable command.
Theresa Halloran [Thu, 19 May 2011 20:17:07 +0000 (16:17 -0400)]
s4/samba-tool: Move samba-tool enableaccount to samba-tool user enable command.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
8 years agobuild: fixed a problem with installing scripts in the build tree
Andrew Tridgell [Wed, 1 Jun 2011 01:43:52 +0000 (11:43 +1000)]
build: fixed a problem with installing scripts in the build tree

the SAMBA_SCRIPT() function was not always triggering correctly. The
base problem was that we were using a target outside the build
tree. This implements a simpler solution where we just create the
links directly in SAMBA_SCRIPT() rather than creating a waf task

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Wed Jun  1 06:50:04 CEST 2011 on sn-devel-104

8 years agos3-param Make lp_ncalrpc_dir() const
Andrew Bartlett [Wed, 1 Jun 2011 02:18:00 +0000 (12:18 +1000)]
s3-param Make lp_ncalrpc_dir() const

This disables % substitutions in the 'ncalrpc dir' parameter.  This is
used as a communication point between multiple parts of the codebase,
and needs to be internally consistent between all the Samba tasks.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Jun  1 05:30:53 CEST 2011 on sn-devel-104

8 years agos3-param Make lp_dedicated_keytab_file() const
Andrew Bartlett [Wed, 1 Jun 2011 02:15:48 +0000 (12:15 +1000)]
s3-param Make lp_dedicated_keytab_file() const

This disables % substitutions in the 'dedicated keytab file' parameter.

Andrew Bartlett

8 years agos3-param Make lp_realm() const
Andrew Bartlett [Wed, 1 Jun 2011 01:55:59 +0000 (11:55 +1000)]
s3-param Make lp_realm() const

This disables % substitutions in the 'realm' parameter.  This is
used all over the codebase, and needs to be internally consistent
between all the Samba tasks.

Andrew Bartlett

8 years agos3-param Make lp_name_resolv_order() const
Andrew Bartlett [Wed, 1 Jun 2011 01:54:52 +0000 (11:54 +1000)]
s3-param Make lp_name_resolv_order() const

This disables % substitutions in the 'name resolv order' parameter.  This is
used all over the codebase, and needs to be internally consistent
between all the Samba tasks.

Andrew Bartlett

8 years agos3-param Make lp_utmpdir() and lp_wtmpdir const
Andrew Bartlett [Wed, 1 Jun 2011 01:53:21 +0000 (11:53 +1000)]
s3-param Make lp_utmpdir() and lp_wtmpdir const

This disables % substitutions in the 'utmp dir' and 'wtmp dir'
parameters.  These are system paths, and need to be consistent between
all the Samba tasks.

Andrew Bartlett

8 years agos3-param Make lp_piddir() const
Andrew Bartlett [Wed, 1 Jun 2011 01:52:07 +0000 (11:52 +1000)]
s3-param Make lp_piddir() const

This disables % substitutions in the 'pid dir' parameter.  This is
used all over the codebase, and need to be internally consistent
between all the Samba tasks.

Andrew Bartlett

8 years agos3-param Make lp_cachedir() const
Andrew Bartlett [Wed, 1 Jun 2011 01:51:12 +0000 (11:51 +1000)]
s3-param Make lp_cachedir() const

This disables % substitutions in the 'cache dir' parameter.  This is
used all over the codebase, and need to be internally consistent
between all the Samba tasks.

Andrew Bartlett

8 years agos3-param Make lp_statedir() const
Andrew Bartlett [Wed, 1 Jun 2011 01:48:38 +0000 (11:48 +1000)]
s3-param Make lp_statedir() const

This disables % substitutions in the 'state dir' parameter.  This is
used all over the codebase, and need to be internally consistent
between all the Samba tasks.

Andrew Bartlett

8 years agos3-param Make lp_lockdir() const
Andrew Bartlett [Wed, 1 Jun 2011 01:45:44 +0000 (11:45 +1000)]
s3-param Make lp_lockdir() const

This disables % substitutions in the 'lock dir' parameter.  This is
used all over the codebase, and needs to be internally consistent
for the life of the process, as they determine the location of
our locking databases.

Andrew Bartlett

8 years agos3-param Make lp_smb_passwd_file() and lp_private_dir() const
Andrew Bartlett [Wed, 1 Jun 2011 01:19:21 +0000 (11:19 +1000)]
s3-param Make lp_smb_passwd_file() and lp_private_dir() const

This disables % substitutions in the 'smb passwd file' and 'private
dir' parameters.  These are used all over the codebase, and need to be
internally consistent for the life of the process, as they determine
the location of secrets.tdb, as well as the passdb databases.

Andrew Bartlett

8 years agos3-param Make lp_smb_ports() const
Andrew Bartlett [Wed, 1 Jun 2011 01:18:09 +0000 (11:18 +1000)]
s3-param Make lp_smb_ports() const

It makes no sense to have a % substiution in the 'smb ports' parameter.

Andrew Bartlett

8 years agos3-param Make charset parameters const
Andrew Bartlett [Wed, 1 Jun 2011 01:13:30 +0000 (11:13 +1000)]
s3-param Make charset parameters const

This removes the dangerous ability for these parameters to change
based on % substitutions.

Andrew Bartlett

8 years agos3-param Make lp_passwordserver() const.
Andrew Bartlett [Wed, 1 Jun 2011 01:10:47 +0000 (11:10 +1000)]
s3-param Make lp_passwordserver() const.

This means that it no longer takes % substituations, and so the documentation for this behaviour is removed from the smb.conf manpage.  (This mode is only useful in security=server, which is already marked as deprecated in 3.6).

Andrew Bartlett

8 years agos3-param prepare for some lp_ functions to return const
Andrew Bartlett [Wed, 1 Jun 2011 01:09:39 +0000 (11:09 +1000)]
s3-param prepare for some lp_ functions to return const

8 years agoRemove the char * argument from the SMB_VFS_GETWD() call. Now always
Jeremy Allison [Tue, 31 May 2011 23:36:06 +0000 (16:36 -0700)]
Remove the char * argument from the SMB_VFS_GETWD() call. Now always
returns malloc'ed memory.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Jun  1 04:06:12 CEST 2011 on sn-devel-104

8 years agoChange sys_getcd() to take no arguments and always return malloc'ed memory (or NULL).
Jeremy Allison [Tue, 31 May 2011 23:14:04 +0000 (16:14 -0700)]
Change sys_getcd() to take no arguments and always return malloc'ed memory (or NULL).

Part of the efforts to remove PATH_MAX on modern systems.

8 years agoAdd check for the getcwd function being able to take NULL,0 arguments.
Jeremy Allison [Tue, 31 May 2011 22:38:55 +0000 (15:38 -0700)]
Add check for the getcwd function being able to take NULL,0 arguments.

8 years agoSplit the ACE flag mapping between nfs4 and Windows
Jeremy Allison [Tue, 31 May 2011 22:37:30 +0000 (15:37 -0700)]
Split the ACE flag mapping between nfs4 and Windows
into two separate functions rather than trying to do
it inline. Allows us to carefully control what flags
are mapped to what in one place. Modification to
bug #8191 - vfs_gpfs dosn't honor ACE_FLAG_INHERITED_ACE

8 years agos3:doc: update the ldap_user_dn documentation in the idmap_ldap manpage
Michael Adam [Tue, 31 May 2011 23:19:50 +0000 (01:19 +0200)]
s3:doc: update the ldap_user_dn documentation in the idmap_ldap manpage

also extend the example with ldap_user_dn.

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Wed Jun  1 02:53:32 CEST 2011 on sn-devel-104

8 years agos3:idmap_ldap: allow creation of ldap stored mappings for explicitly configured domains.
Michael Adam [Tue, 31 May 2011 22:30:11 +0000 (00:30 +0200)]
s3:idmap_ldap: allow creation of ldap stored mappings for explicitly configured domains.

After the preparations, this is achieved by using idmap_ldap_allocate_id_internal()
as get_new_id rw method instead of idmap_ldap_allocate_id().

8 years agos3:idmap_ldap: rename idmap_ldap_get_new_id to idmap_ldap_allocate_id
Michael Adam [Tue, 31 May 2011 22:25:23 +0000 (00:25 +0200)]
s3:idmap_ldap: rename idmap_ldap_get_new_id to idmap_ldap_allocate_id

This is in preparation of allowing allocating ldap based domain-specific configs.

8 years agos3:idmap_ldap: rename idmap_ldap_allocate_id to idmap_ldap_allocate_id_internal
Michael Adam [Tue, 31 May 2011 22:25:23 +0000 (00:25 +0200)]
s3:idmap_ldap: rename idmap_ldap_allocate_id to idmap_ldap_allocate_id_internal

This is in preparation of allowing allocating ldap based domain-specific configs.

8 years agoidmap_ldap.8: Add example with readonly backend
Luk Claes [Tue, 31 May 2011 21:28:57 +0000 (23:28 +0200)]
idmap_ldap.8: Add example with readonly backend

Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Michael Adam <obnox@samba.org>
8 years agolibrpc/ndr: Use converted_size to determine if NULL termination was sent
Andrew Bartlett [Tue, 31 May 2011 10:21:37 +0000 (20:21 +1000)]
librpc/ndr: Use converted_size to determine if NULL termination was sent

This is better than doing a strlen() on the string, as that huristic
only worked for ASCII strings.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Jun  1 01:42:22 CEST 2011 on sn-devel-104

8 years agolibrpc/ndr: add new LIBNDR_FLAG_STR_RAW8 for ndr_pull_string
Sean Finney [Tue, 31 May 2011 07:49:19 +0000 (09:49 +0200)]
librpc/ndr: add new LIBNDR_FLAG_STR_RAW8 for ndr_pull_string

Introduce a new flag, LIBNDR_FLAG_STR_RAW8, which indicates that libndr
should not attempt to convert the corresponding byte sequence, and place
the responsibility on the caller to do so later.

This is needed in cases where the string is known to be 8-bit and either
NULL terminated or of known length, but in an unspecified character set.
For example, when pulling PT_STRING8 properties from an exchange server
via libmapi + libndr, the codepage is neither known nor in the control
of the caller, and is determined by subsequent properties requested from
the server.  Therefore the client would like to fetch all properties in
one large batch, and convert the resulting strings locally.

This commit also includes some (basic) tests of each of the flags'
respective behaviors with the ndr push/pull string functions, in a new
source4 torture test suite ndr.ndr_string.

Signed-off-by: Sean Finney <seanius@seanius.net>
8 years agolibrpc/ndr: consolidate string conversion logic in ndr_pull_string
Sean Finney [Tue, 31 May 2011 07:49:18 +0000 (09:49 +0200)]
librpc/ndr: consolidate string conversion logic in ndr_pull_string

Reduce the amount of duplicate code in ndr_pull_string by moving the
almost duplicate conversion calls and their corresponding NDR pulls and
checks to a single location.  In the place of the removed calls is logic
allowing the conversion to be generalized, and and any specific
pulls/checks that do not apply to the general case.

This is similar to what has already been done in the switch statement
for ndr_push_string.

Signed-off-by: Sean Finney <seanius@seanius.net>
8 years agos3: fix more -Wunused-but-set-variable build warnings.
Günther Deschner [Tue, 31 May 2011 11:24:09 +0000 (13:24 +0200)]
s3: fix more -Wunused-but-set-variable build warnings.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Jun  1 00:29:30 CEST 2011 on sn-devel-104

8 years agoTiny simplification to dom_sid_string_buf
Volker Lendecke [Tue, 31 May 2011 20:07:11 +0000 (22:07 +0200)]
Tiny simplification to dom_sid_string_buf

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

8 years agostruct make "struct shadow_copy_data" its own talloc context
Volker Lendecke [Mon, 30 May 2011 10:11:53 +0000 (12:11 +0200)]
struct make "struct shadow_copy_data" its own talloc context

8 years agos3: Remove SHADOW_COPY_DATA typedef
Volker Lendecke [Mon, 30 May 2011 10:06:31 +0000 (12:06 +0200)]
s3: Remove SHADOW_COPY_DATA typedef

8 years agos3: Mark sockets in error state writable
Volker Lendecke [Tue, 31 May 2011 11:24:22 +0000 (13:24 +0200)]
s3: Mark sockets in error state writable

Without this patch, when a socket only has a write event pending, we will never
detect an error condition. I've seen winbind doing

12:19:13.659964 gettimeofday({1306837153, 659984}, NULL) = 0 <0.000016>
12:19:13.660109 poll([{fd=35, events=POLLOUT}, {fd=32, events=POLLIN|POLLHUP}], 2, 9996) = 1 ([{fd=35, revents=POLLERR|POLLHUP}]) <0.000015>
12:19:13.660253 gettimeofday({1306837153, 660269}, NULL) = 0 <0.000013>
12:19:13.660298 poll([{fd=35, events=POLLOUT}, {fd=32, events=POLLIN|POLLHUP}], 2, 9996) = 1 ([{fd=35, revents=POLLERR|POLLHUP}]) <0.000015>

for a while when trying to connect to a DC when the socket had died already.

Volker

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

8 years agos3:doc: clean up the example section of the idmap_tdb manpage
Michael Adam [Tue, 31 May 2011 16:09:14 +0000 (18:09 +0200)]
s3:doc: clean up the example section of the idmap_tdb manpage

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

8 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>
8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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.

8 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

8 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.

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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