mat/samba.git
10 years agodocs: use popt.samba.common entity in profiles manpage.
Günther Deschner [Mon, 18 Nov 2013 10:41:00 +0000 (11:41 +0100)]
docs: use popt.samba.common entity in profiles manpage.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agodocs: mention --change-sid|--new-sid in profiles manpage.
Günther Deschner [Mon, 18 Nov 2013 10:40:35 +0000 (11:40 +0100)]
docs: mention --change-sid|--new-sid in profiles manpage.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agodocs: add new popt.autohelp entity.
Günther Deschner [Fri, 15 Nov 2013 15:57:52 +0000 (16:57 +0100)]
docs: add new popt.autohelp entity.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agodocs: remove more duplicate options from samba-regedit manpage.
Günther Deschner [Fri, 15 Nov 2013 15:40:36 +0000 (16:40 +0100)]
docs: remove more duplicate options from samba-regedit manpage.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agodocs: add missing &popt.common.connection entity to smbcacls manpage.
Günther Deschner [Fri, 15 Nov 2013 15:08:10 +0000 (16:08 +0100)]
docs: add missing &popt.common.connection entity to smbcacls manpage.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agodocs: add missing &popt.common.samba entity to smbcontrol manpage.
Günther Deschner [Fri, 15 Nov 2013 15:07:41 +0000 (16:07 +0100)]
docs: add missing &popt.common.samba entity to smbcontrol manpage.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agodocs: remove now duplicate mention for 4 credential options in samba-regedit manpage.
Günther Deschner [Fri, 15 Nov 2013 15:06:36 +0000 (16:06 +0100)]
docs: remove now duplicate mention for 4 credential options in samba-regedit manpage.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agodocs: bring samba entity popt.common.credentials in line with popt_common_credentials.
Günther Deschner [Fri, 15 Nov 2013 14:15:41 +0000 (15:15 +0100)]
docs: bring samba entity popt.common.credentials in line with popt_common_credentials.

This adds documentation of the following parameters to all manpages of binaries that
actually use popt_common_credentials:

-S|--signing
-e|--encrypt
-P|--machinepass
--pw-nt-hash

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agodocs: mention -p in dbwrap-tool manpage.
Günther Deschner [Fri, 15 Nov 2013 12:03:20 +0000 (13:03 +0100)]
docs: mention -p in dbwrap-tool manpage.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agodocs: mention -V|--viewsddl in sharesec manpage.
Günther Deschner [Fri, 15 Nov 2013 11:59:49 +0000 (12:59 +0100)]
docs: mention -V|--viewsddl in sharesec manpage.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agodocs: mention -S|--setsddl in sharesec manpage.
Günther Deschner [Fri, 15 Nov 2013 11:57:06 +0000 (12:57 +0100)]
docs: mention -S|--setsddl in sharesec manpage.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agodocs: mention -R|--profile-rates in smbstatus manpage.
Günther Deschner [Fri, 15 Nov 2013 11:11:21 +0000 (12:11 +0100)]
docs: mention -R|--profile-rates in smbstatus manpage.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agodocs: mention --numeric in smbstatus manpage.
Günther Deschner [Fri, 15 Nov 2013 11:07:48 +0000 (12:07 +0100)]
docs: mention --numeric in smbstatus manpage.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agodocs: mention many more options in smbd options.
Günther Deschner [Thu, 14 Nov 2013 16:49:58 +0000 (17:49 +0100)]
docs: mention many more options in smbd options.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agodocs: remove unsupported options from smbd manpage.
Günther Deschner [Thu, 14 Nov 2013 16:37:05 +0000 (17:37 +0100)]
docs: remove unsupported options from smbd manpage.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agodocs: mention --port in nmbd manpage.
Günther Deschner [Thu, 14 Nov 2013 16:31:50 +0000 (17:31 +0100)]
docs: mention --port in nmbd manpage.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agodocs: mention --no-process-group in nmbd manpage.
Günther Deschner [Thu, 14 Nov 2013 16:31:10 +0000 (17:31 +0100)]
docs: mention --no-process-group in nmbd manpage.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agodocs: mention --log-stdout in nmbd manpage.
Günther Deschner [Thu, 14 Nov 2013 16:29:37 +0000 (17:29 +0100)]
docs: mention --log-stdout in nmbd manpage.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agodocs: mention --interactive in nmbd manpage.
Günther Deschner [Thu, 14 Nov 2013 16:28:15 +0000 (17:28 +0100)]
docs: mention --interactive in nmbd manpage.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agodocs: mention --hosts in nmbd manpage.
Günther Deschner [Thu, 14 Nov 2013 16:27:28 +0000 (17:27 +0100)]
docs: mention --hosts in nmbd manpage.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agodocs: mention --foreground in nmbd manpage.
Günther Deschner [Thu, 14 Nov 2013 16:25:52 +0000 (17:25 +0100)]
docs: mention --foreground in nmbd manpage.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agodocs: mention --daemon in nmbd manpage.
Günther Deschner [Thu, 14 Nov 2013 16:25:04 +0000 (17:25 +0100)]
docs: mention --daemon in nmbd manpage.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agodocs: remove unsupported options from nmbd manpage.
Günther Deschner [Thu, 14 Nov 2013 16:23:23 +0000 (17:23 +0100)]
docs: remove unsupported options from nmbd manpage.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agodocs: mention --sids-to-unix-ids in wbinfo manpage.
Günther Deschner [Thu, 14 Nov 2013 16:18:40 +0000 (17:18 +0100)]
docs: mention --sids-to-unix-ids in wbinfo manpage.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agodocs: mention --sequence in wbinfo manpage.
Günther Deschner [Thu, 14 Nov 2013 16:13:38 +0000 (17:13 +0100)]
docs: mention --sequence in wbinfo manpage.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agodocs: mention --set-gid-mapping/--set-uid-mapping in wbinfo manpage.
Günther Deschner [Thu, 14 Nov 2013 15:42:56 +0000 (16:42 +0100)]
docs: mention --set-gid-mapping/--set-uid-mapping in wbinfo manpage.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agodocs: mention --remove-gid-mapping/--remove-uid-mapping in wbinfo manpage.
Günther Deschner [Thu, 14 Nov 2013 15:40:56 +0000 (16:40 +0100)]
docs: mention --remove-gid-mapping/--remove-uid-mapping in wbinfo manpage.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agodocs: mention --pam-logon in wbinfo manpage.
Günther Deschner [Thu, 14 Nov 2013 15:36:21 +0000 (16:36 +0100)]
docs: mention --pam-logon in wbinfo manpage.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agodocs: mention --lookup-sids in wbinfo manpage.
Günther Deschner [Thu, 14 Nov 2013 15:33:19 +0000 (16:33 +0100)]
docs: mention --lookup-sids in wbinfo manpage.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agodocs: mention logoff options in wbinfo manpage.
Günther Deschner [Thu, 14 Nov 2013 15:29:10 +0000 (16:29 +0100)]
docs: mention logoff options in wbinfo manpage.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agodocs: mention --krb5ccname option in wbinfo manpage.
Günther Deschner [Thu, 14 Nov 2013 15:23:20 +0000 (16:23 +0100)]
docs: mention --krb5ccname option in wbinfo manpage.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agodocs: mention --dc-info in wbinfo manpage.
Günther Deschner [Thu, 14 Nov 2013 15:23:03 +0000 (16:23 +0100)]
docs: mention --dc-info in wbinfo manpage.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agodocs: mention --no-process-group in winbindd manpage.
Günther Deschner [Thu, 14 Nov 2013 14:19:59 +0000 (15:19 +0100)]
docs: mention --no-process-group in winbindd manpage.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agodocs: mention more options in winbindd manpage.
Günther Deschner [Tue, 15 Oct 2013 13:11:33 +0000 (15:11 +0200)]
docs: mention more options in winbindd manpage.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agodocs: remove duplicate word "the" from net manpage.
Günther Deschner [Mon, 14 Oct 2013 16:03:14 +0000 (18:03 +0200)]
docs: remove duplicate word "the" from net manpage.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agodocs: remove duplicate word "trust" from net manpage.
Günther Deschner [Mon, 14 Oct 2013 16:02:47 +0000 (18:02 +0200)]
docs: remove duplicate word "trust" from net manpage.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agodocs: remove duplicate mention of "smbta-util" in smbta-util manpage.
Günther Deschner [Mon, 14 Oct 2013 16:00:02 +0000 (18:00 +0200)]
docs: remove duplicate mention of "smbta-util" in smbta-util manpage.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agodocs: remove duplicate mention of "ntdbtool" in ntdbtool manpage.
Günther Deschner [Mon, 14 Oct 2013 15:59:22 +0000 (17:59 +0200)]
docs: remove duplicate mention of "ntdbtool" in ntdbtool manpage.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agodocs: remove duplicate mention of "smbtorture" in smbtorture manpage.
Günther Deschner [Mon, 14 Oct 2013 15:58:45 +0000 (17:58 +0200)]
docs: remove duplicate mention of "smbtorture" in smbtorture manpage.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agodocs: remove duplicate word "the" in winbindd manpage.
Günther Deschner [Mon, 14 Oct 2013 15:55:03 +0000 (17:55 +0200)]
docs: remove duplicate word "the" in winbindd manpage.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agodocs: remove duplicate arguments listing in regdiff manpage.
Günther Deschner [Mon, 14 Oct 2013 15:50:28 +0000 (17:50 +0200)]
docs: remove duplicate arguments listing in regdiff manpage.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agodocs: remove duplicate word "name" in nmblookup4 manpage.
Günther Deschner [Mon, 14 Oct 2013 15:45:21 +0000 (17:45 +0200)]
docs: remove duplicate word "name" in nmblookup4 manpage.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agodocs: remove duplicate word "name" in nmblookup manpage.
Günther Deschner [Mon, 14 Oct 2013 15:44:12 +0000 (17:44 +0200)]
docs: remove duplicate word "name" in nmblookup manpage.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agodocs: remove duplicate word "the" in idmap_ad manpage.
Günther Deschner [Mon, 14 Oct 2013 15:42:06 +0000 (17:42 +0200)]
docs: remove duplicate word "the" in idmap_ad manpage.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agotorture3: Use tevent_req_nterror properly
Volker Lendecke [Fri, 15 Nov 2013 13:17:21 +0000 (13:17 +0000)]
torture3: Use tevent_req_nterror properly

Might be minor, but the less example of wrong API use we have the better
it is.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Nov 19 04:05:08 CET 2013 on sn-devel-104

10 years agoprinting: always store sytem job-ID in queue state
David Disseldorp [Fri, 18 Oct 2013 11:09:23 +0000 (13:09 +0200)]
printing: always store sytem job-ID in queue state

Print jobs have multiple identifiers: the regular spoolss jobid, which
is allocated by spoolss on job submission, and the system jobid, which
is assigned by the printing back-end.
Currently these identifiers are incorrectly mixed in print job queue
tracking. Fix this by ensuring that only the system jobid is stored in
the print queue state structure.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=10271

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
Autobuild-User(master): David Disseldorp <ddiss@samba.org>
Autobuild-Date(master): Mon Nov 18 18:03:41 CET 2013 on sn-devel-104

10 years agospoolss: return the spoolss job ID in notifications
David Disseldorp [Fri, 20 Sep 2013 03:31:37 +0000 (20:31 -0700)]
spoolss: return the spoolss job ID in notifications

Print job notifications currently carry the system print job identifier
from the queue structure. Instead, the spoolss job identifier should be
resolved and returned.

Print clients can use notification job-ids in subsequent spoolss SetJob
requests. Returning an incorrect identifier can result in the failure of
such requests, e.g. spoolss_SetJob(SPOOLSS_JOB_CONTROL_DELETE).

BUG: https://bugzilla.samba.org/show_bug.cgi?id=10271

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
10 years agoscript: prepare librelease.sh for ntdb releases
Stefan Metzmacher [Sun, 17 Nov 2013 09:47:47 +0000 (10:47 +0100)]
script: prepare librelease.sh for ntdb releases

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sun Nov 17 12:50:13 CET 2013 on sn-devel-104

10 years agoRelease ntdb 1.0.
Jelmer Vernooij [Fri, 15 Nov 2013 21:40:36 +0000 (21:40 +0000)]
Release ntdb 1.0.

Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date(master): Sat Nov 16 19:06:59 CET 2013 on sn-devel-104

10 years agos3-libnet: Use a const char for realm.
Andreas Schneider [Fri, 15 Nov 2013 16:02:20 +0000 (17:02 +0100)]
s3-libnet: Use a const char for realm.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Nov 15 23:11:54 CET 2013 on sn-devel-104

10 years agos3-vfs: Make glfs_set_preopened() static.
Andreas Schneider [Fri, 15 Nov 2013 16:02:19 +0000 (17:02 +0100)]
s3-vfs: Make glfs_set_preopened() static.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
10 years agos3-vfs: Remove unused variable in vfs_glusterfs.
Andreas Schneider [Fri, 15 Nov 2013 16:02:18 +0000 (17:02 +0100)]
s3-vfs: Remove unused variable in vfs_glusterfs.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
10 years agoexamples: Fix scanf format in perf_writer_disk.
Andreas Schneider [Fri, 15 Nov 2013 16:02:17 +0000 (17:02 +0100)]
examples: Fix scanf format in perf_writer_disk.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
10 years agos3-libsmb: Fix scanf format in parse_ace().
Andreas Schneider [Fri, 15 Nov 2013 16:02:16 +0000 (17:02 +0100)]
s3-libsmb: Fix scanf format in parse_ace().

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
10 years agos3-utils: Fix scanf format in sharesec.
Andreas Schneider [Fri, 15 Nov 2013 16:02:15 +0000 (17:02 +0100)]
s3-utils: Fix scanf format in sharesec.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
10 years agos3-utils: Fix scanf format in smbacls.
Andreas Schneider [Fri, 15 Nov 2013 16:02:14 +0000 (17:02 +0100)]
s3-utils: Fix scanf format in smbacls.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
10 years agotestsuit: Fix fprintf format.
Andreas Schneider [Fri, 15 Nov 2013 16:02:13 +0000 (17:02 +0100)]
testsuit: Fix fprintf format.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
10 years agos3-libsmb: Use the right macro to set uint16_t attr.
Andreas Schneider [Fri, 15 Nov 2013 16:02:12 +0000 (17:02 +0100)]
s3-libsmb: Use the right macro to set uint16_t attr.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
10 years agowinbind: Make centry_start static
Christof Schmitt [Thu, 14 Nov 2013 18:49:03 +0000 (11:49 -0700)]
winbind: Make centry_start static

centry_start is only used in winbindd_cache.c

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Christof Schmitt <cs@samba.org>
Autobuild-Date(master): Fri Nov 15 18:05:41 CET 2013 on sn-devel-104

10 years agodocs: remove ATM Machine terminology from smbcacls man page
David Disseldorp [Thu, 14 Nov 2013 14:29:35 +0000 (15:29 +0100)]
docs: remove ATM Machine terminology from smbcacls man page

An Access Control List (ACL) is comprised of one or more Access Control
Entries (ACEs). The existing smbcacls documentation confusingly uses the
terms ACL list and ACL to refer to both respectively.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Nov 15 01:50:32 CET 2013 on sn-devel-104

10 years agoutil: Remove 32bit macros breaking strict aliasing.
Andreas Schneider [Thu, 14 Nov 2013 17:36:41 +0000 (18:36 +0100)]
util: Remove 32bit macros breaking strict aliasing.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=10269

These macros might have worked but they break strict aliasing in the
meantime and so the compiler is not able to optimize the relevant code.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Thu Nov 14 23:16:45 CET 2013 on sn-devel-104

10 years agos3-client: smbclient shows no error if deleting a directory with del failed
Jeremy Allison [Tue, 12 Nov 2013 23:55:51 +0000 (15:55 -0800)]
s3-client: smbclient shows no error if deleting a directory with del failed

BUG: https://bugzilla.samba.org/show_bug.cgi?id=10260

In SMB1 the server filters by attribute requested, in SMB2 there is
no attribute sent. Emulate this on the client to provide the same
ABI to callers.

In SMB1 the server returns NT_STATUS_NO_SUCH_FILE if FindFirst
finds no files. Emulate this on the client.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Thu Nov 14 21:23:07 CET 2013 on sn-devel-104

10 years agos3-lib: smbclient shows no error if deleting a directory with del failed
Jeremy Allison [Tue, 12 Nov 2013 23:32:42 +0000 (15:32 -0800)]
s3-lib: smbclient shows no error if deleting a directory with del failed

BUG: https://bugzilla.samba.org/show_bug.cgi?id=10260

Move dir_check_ftype() to util.c

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agos3-smbd: smbclient shows no error if deleting a directory with del failed
Jeremy Allison [Tue, 12 Nov 2013 23:17:26 +0000 (15:17 -0800)]
s3-smbd: smbclient shows no error if deleting a directory with del failed

BUG: https://bugzilla.samba.org/show_bug.cgi?id=10260

Remove unneeded conn argument to dir_check_ftype().
Move to correct uint32_t types.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agoheimdal: Fix CID 745516 Use after free
Volker Lendecke [Mon, 11 Nov 2013 10:21:54 +0000 (10:21 +0000)]
heimdal: Fix CID 745516 Use after free

If the loop is exited normally, i.e. we did not find anything proper
within DH_NUM_TRIES, we try to BN_free a second time.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Autobuild-User(master): David Disseldorp <ddiss@samba.org>
Autobuild-Date(master): Thu Nov 14 19:17:06 CET 2013 on sn-devel-104

10 years agodocs: Fix typo in "max open files" description
Scott Lovenberg [Thu, 14 Nov 2013 14:52:29 +0000 (09:52 -0500)]
docs: Fix typo in "max open files" description

Removed extra word "The" from parameter description.

Signed-off-by: Scott Lovenberg <scott.lovenberg@gmail.com>
[ddiss@samba.org: removed white space damage]
Reviewed-by: David Disseldorp <ddiss@samba.org>
10 years agoautorid: Correctly init range_index for "delete range"
Volker Lendecke [Thu, 14 Nov 2013 11:49:38 +0000 (11:49 +0000)]
autorid: Correctly init range_index for "delete range"

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Thu Nov 14 15:55:54 CET 2013 on sn-devel-104

10 years agos3-winbindd: Fix #10264, cache_traverse_validate_fn failure for NDR cache entries.
Günther Deschner [Wed, 13 Nov 2013 14:10:33 +0000 (15:10 +0100)]
s3-winbindd: Fix #10264, cache_traverse_validate_fn failure for NDR cache entries.

We need to increase the keysize limit for NDR queries. A wbint_LookupSids query
for just 20 sids already hits the older limit.

Guenther

https://bugzilla.samba.org/show_bug.cgi?id=10264
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Wed Nov 13 19:33:46 CET 2013 on sn-devel-104

10 years agorandom-sleep: add possiblity to override via environment variable
Michael Adam [Wed, 13 Nov 2013 13:53:45 +0000 (14:53 +0100)]
random-sleep: add possiblity to override via environment variable

set AUTOBUILD_RANDOM_SLEEP_OVERRIDE=<x>

to the number x of seconds that you want to sleep.
This is added to make it possible to run one autobuild
target without having to wait for several minutes.

Signed-off-by: Michael Adam <obnox@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
10 years agoautobuild: extend samba-ctdb target to build ctdb, too
Michael Adam [Wed, 25 Sep 2013 22:43:56 +0000 (00:43 +0200)]
autobuild: extend samba-ctdb target to build ctdb, too

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
10 years agoautobuild: add a "ctdb" target
Michael Adam [Wed, 12 Oct 2011 20:27:55 +0000 (22:27 +0200)]
autobuild: add a "ctdb" target

For a start, this just builds and installs the integrated ctdb copy.
It does not run "make test" in ctdb. This is time consuming and
too flakey for now.

Signed-off-by: Michael Adam <obnox@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
10 years agoMerge branch 'master' of ctdb into 'master' of samba
Stefan Metzmacher [Wed, 13 Nov 2013 13:17:32 +0000 (14:17 +0100)]
Merge branch 'master' of ctdb into 'master' of samba

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
10 years agoscript: add ctdb-import.* scripts
Stefan Metzmacher [Wed, 25 Sep 2013 22:00:53 +0000 (00:00 +0200)]
script: add ctdb-import.* scripts

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
10 years agoremove partial ctdb/ import
Stefan Metzmacher [Wed, 25 Sep 2013 21:49:58 +0000 (23:49 +0200)]
remove partial ctdb/ import

In preparation of moving ctdb code into the samba repository.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
10 years agos4:rpc-server: fix lsa_lookupsids return value for the domain sid
Michael Adam [Wed, 18 Sep 2013 07:33:07 +0000 (09:33 +0200)]
s4:rpc-server: fix lsa_lookupsids return value for the domain sid

We currently return type UNKNOWN and copy the domain sid to the name.
Instead we should return type DOMAIN and return NULL as name.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Wed Nov 13 13:34:16 CET 2013 on sn-devel-104

10 years agos4:rpc-server: fix use after free in dcesrv_lsa_lookup_sid()
Michael Adam [Fri, 8 Nov 2013 10:15:33 +0000 (11:15 +0100)]
s4:rpc-server: fix use after free in dcesrv_lsa_lookup_sid()

Authority name may be accessed after
state has gone away and take domain_name with it.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agowbinfo: fix output of wbinfo --sid-to-name for sids of type DOMAIN
Michael Adam [Sat, 21 Sep 2013 19:02:00 +0000 (21:02 +0200)]
wbinfo: fix output of wbinfo --sid-to-name for sids of type DOMAIN

to print only the domain name and not "DOMIN\<SID>".

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agowbinfo: fix output of "--lookup-sids" to use the configured winbind separator
Michael Adam [Sat, 21 Sep 2013 19:03:40 +0000 (21:03 +0200)]
wbinfo: fix output of "--lookup-sids" to use the configured winbind separator

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agowbinfo: fix ouptput of --lookup-sids for sids of type DOMAIN
Michael Adam [Sat, 21 Sep 2013 08:35:57 +0000 (10:35 +0200)]
wbinfo: fix ouptput of --lookup-sids for sids of type DOMAIN

To print only the domain name and not "DOMIN\<SID>".

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agorpcclient: fix output of lsalookupsids for sids of type DOMAIN
Michael Adam [Wed, 18 Sep 2013 07:32:17 +0000 (09:32 +0200)]
rpcclient: fix output of lsalookupsids for sids of type DOMAIN

For domain sids, don't print NAME\*unknown* but print NAME instead.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agoheimdal: Fix CID 240779 Allocation size mismatch
Volker Lendecke [Tue, 12 Nov 2013 21:00:54 +0000 (22:00 +0100)]
heimdal: Fix CID 240779 Allocation size mismatch

The error Coverity complains about is in the malloc. krb5_enctypes is
an enum, so it is usually smaller than the size of a pointer. So we
overallocate, but in the memcpy further down we copy from potentially
invalid memory.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Wed Nov 13 11:05:44 CET 2013 on sn-devel-104

10 years agotls: Fix CID 242014 Uninitialized scalar variable
Volker Lendecke [Mon, 11 Nov 2013 21:32:50 +0000 (21:32 +0000)]
tls: Fix CID 242014 Uninitialized scalar variable

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agotls: Fix some noblank line endings
Volker Lendecke [Mon, 11 Nov 2013 21:26:34 +0000 (21:26 +0000)]
tls: Fix some noblank line endings

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agoheimdal: Fix CID 241943 Uninitialized pointer read
Volker Lendecke [Mon, 11 Nov 2013 21:07:09 +0000 (21:07 +0000)]
heimdal: Fix CID 241943 Uninitialized pointer read

In the error case without EXTRA_ADDRESSES we access ignore_addresses
without initialization

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agolibsmb: Fix CID 242665 Out-of-bounds access
Volker Lendecke [Mon, 11 Nov 2013 20:37:48 +0000 (20:37 +0000)]
libsmb: Fix CID 242665 Out-of-bounds access

Coverity is confused by the dual-use of "pss" as an array of size 1. This
is not strictly a bug here, but it is admittedly a small subtlety. It
should fix a whole bunch of Coverity issues. Normally I would resist to
change our code in response to a deficient static checker, but here I
would vote for this compromise.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agos4-dsdb: Fix a use after free segfault.
Andreas Schneider [Tue, 12 Nov 2013 13:09:56 +0000 (14:09 +0100)]
s4-dsdb: Fix a use after free segfault.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Autobuild-User(master): David Disseldorp <ddiss@samba.org>
Autobuild-Date(master): Tue Nov 12 19:22:28 CET 2013 on sn-devel-104

10 years agos4-torture: Relax time checking in CHECK_NTTIME.
Andreas Schneider [Tue, 12 Nov 2013 13:09:55 +0000 (14:09 +0100)]
s4-torture: Relax time checking in CHECK_NTTIME.

NTTIME has a nanosecond resolution. We should be tolerate if the system
is busy writing and reading the value. To reproduce this problem just
run the test under valgrind.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
10 years agos3-vfs: Fix stream_depot vfs module on btrfs.
Andreas Schneider [Fri, 8 Nov 2013 14:41:18 +0000 (15:41 +0100)]
s3-vfs: Fix stream_depot vfs module on btrfs.

Checking if the directory is empty using 'nlink == 2' only checks if
there are no subdirectories. It doesn't indicate if there are files in
the directory. However checking link count for no subdirectories is
wrong and applications shouldn't rely on it, see:

https://lkml.org/lkml/2012/2/1/756

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
10 years agoRevert "s3-vfs: Fix stream_depot vfs module on btrfs."
David Disseldorp [Tue, 12 Nov 2013 15:33:20 +0000 (16:33 +0100)]
Revert "s3-vfs: Fix stream_depot vfs module on btrfs."

This reverts commit 29f12e7d5960906935e3af1405e9759a07d64750.

The wrong patch was pushed, according to Andreas:
I sent a second version cause the first was not complete. I've
discussed with Volker after I sent the patch and then sent a new
patch which

a) also does the right thin in the unlink case
b) only tried to remove the server is the deletion of the file
   was successful.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
10 years agos3-libnetjoin: Fix Bug #10262: use upper-case realm when composing default upn.
Günther Deschner [Wed, 6 Nov 2013 17:21:32 +0000 (18:21 +0100)]
s3-libnetjoin: Fix Bug #10262: use upper-case realm when composing default upn.

In case we are about to generate a keytab during the join make sure the default
upn we create is usable with kinit -k.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=10262

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Tue Nov 12 16:39:03 CET 2013 on sn-devel-104

10 years agos4:torture/netlogon: Test netlogon with additional attrs
Benjamin Franzke [Thu, 31 Oct 2013 20:23:57 +0000 (21:23 +0100)]
s4:torture/netlogon: Test netlogon with additional attrs

Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Nadezhda Ivanova <nivanova@symas.com>
se enter the commit message for your changes. Lines starting

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Nov 12 00:57:19 CET 2013 on sn-devel-104

10 years agos4:torture/ldap: Add test for netlogon over tcp
Benjamin Franzke [Mon, 28 Oct 2013 13:21:20 +0000 (14:21 +0100)]
s4:torture/ldap: Add test for netlogon over tcp

This patch moves the udp netlogon tests from cldap.c
to netlogon.c and passes a generic netlogon-send
function as parameter.

Therefore a tcp replacement for cldap_netlogon is also added.
The two variants tcp and udp are added as 2 new torture tests:

ldap.netlogon-udp & ldap.netlogon-tcp
Both tests succeed.

Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Nadezhda Ivanova <nivanova@symas.com>
10 years agolibcli/cldap: Add utility to create netlogon filter
Benjamin Franzke [Mon, 28 Oct 2013 13:19:57 +0000 (14:19 +0100)]
libcli/cldap: Add utility to create netlogon filter

This utility is splitted of from cldap_netlogon_send.

Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Nadezhda Ivanova <nivanova@symas.com>
10 years agos4:dsdb: Move cldap netlogon functions into samdb/ldb_modules
Benjamin Franzke [Tue, 5 Nov 2013 19:39:56 +0000 (20:39 +0100)]
s4:dsdb: Move cldap netlogon functions into samdb/ldb_modules

As netlogon is handled by the samdb now,
the corresponding functions should live there as well.

Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Nadezhda Ivanova <nivanova@symas.com>
10 years agos4:cldap_server: Do not handle netlogon ourself anymore
Benjamin Franzke [Fri, 1 Nov 2013 09:52:02 +0000 (10:52 +0100)]
s4:cldap_server: Do not handle netlogon ourself anymore

Netlogon is now handled by the ldb rootdse module.

The netlogon files will be moved to dsdb in the next commit.

Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Nadezhda Ivanova <nivanova@symas.com>
10 years agos4:dsdb/rootdse: Support netlogon request
Benjamin Franzke [Sun, 27 Oct 2013 05:55:48 +0000 (06:55 +0100)]
s4:dsdb/rootdse: Support netlogon request

This patch adds support for a netlogon ldap style request
over the tcp socket.  This is available since win2k3+ [1].

The automatic client join & configuration daemon "realmd" makes
use of this ability.
Realmd can now be used to join a computer to a samba 4 domain.
(See also:
https://lists.samba.org/archive/samba-technical/2013-October/095606.html)

Tested with:
ldapsearch -h samba-srv -x -b '' -s base "(&(NtVer=\06\00\00\00)(AAC=\00\00\00\00))" NetLogon

And compared the result in wireshark with cldap request issued by
examples/misc/cldap.pl.

[1]: http://wiki.wireshark.org/MS-CLDAP?action=recall&rev=8

Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Nadezhda Ivanova <nivanova@symas.com>
10 years agos4:dsdb/rootdse: Pass rootdse context to rootdse_add_dynamic
Benjamin Franzke [Fri, 1 Nov 2013 05:55:41 +0000 (06:55 +0100)]
s4:dsdb/rootdse: Pass rootdse context to rootdse_add_dynamic

This replaced the *module parameter, and uses ac->module in the function
instead, same for *req and *attrs.

Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Nadezhda Ivanova <nivanova@symas.com>
10 years agos4:cldap_server: Move netlogon parsing into utility function
Benjamin Franzke [Sun, 27 Oct 2013 15:07:04 +0000 (16:07 +0100)]
s4:cldap_server: Move netlogon parsing into utility function

To be used later by netlogon-request over ldap.

Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Nadezhda Ivanova <nivanova@symas.com>
10 years agoprovision: Fix string replacement ordering
Benjamin Franzke [Fri, 6 Sep 2013 14:20:43 +0000 (16:20 +0200)]
provision: Fix string replacement ordering

Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Nadezhda Ivanova <nivanova@symas.com>
10 years agos4:torture/cldap: Fix a typo
Benjamin Franzke [Fri, 1 Nov 2013 09:24:43 +0000 (10:24 +0100)]
s4:torture/cldap: Fix a typo

Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Nadezhda Ivanova <nivanova@symas.com>