From: Noel Power Date: Thu, 28 Jun 2018 15:04:24 +0000 (+0100) Subject: s3/utils: fix regression where specifying -Unetbios/root works X-Git-Tag: ldb-1.3.6~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b91f85260ef9f505e70f7e119c9760e68213e78;p=thirdparty%2Fsamba.git s3/utils: fix regression where specifying -Unetbios/root works 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 Reviewed-by: Jeremy Allison Autobuild-User(master): Noel Power Autobuild-Date(master): Tue Jul 31 19:45:59 CEST 2018 on sn-devel-144 --- diff --git a/source3/utils/smbcquotas.c b/source3/utils/smbcquotas.c index 031862f52a1..798b8b6f177 100644 --- a/source3/utils/smbcquotas.c +++ b/source3/utils/smbcquotas.c @@ -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,