]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/utils: fix regression where specifying -Unetbios/root works
authorNoel Power <noel.power@suse.com>
Thu, 28 Jun 2018 15:04:24 +0000 (16:04 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 13 Aug 2018 10:56:38 +0000 (12:56 +0200)
Usually you need to be root on a linux server to modify quotas. Even
with a linux server joined to a windows AD you could always log in as
local root with smbcquotas. However in recent builds this has changed.
This patch fixes this

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

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Noel Power <npower@samba.org>
Autobuild-Date(master): Tue Jul 31 19:45:59 CEST 2018 on sn-devel-144

source3/utils/smbcquotas.c

index 031862f52a11f24b6357df33584ec38caf33b330..798b8b6f1778da1fb4e602f7e8c7926b3d295aa4 100644 (file)
@@ -533,7 +533,8 @@ static struct cli_state *connect_one(const char *share)
                                            share, "?????",
                                            get_cmdline_auth_info_username(
                                                popt_get_cmdline_auth_info()),
-                                           lp_workgroup(),
+                                           get_cmdline_auth_info_domain(
+                                               popt_get_cmdline_auth_info()),
                                            get_cmdline_auth_info_password(
                                                popt_get_cmdline_auth_info()),
                                            flags,