From patchwork Tue Oct 13 16:08:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 3573 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4C9gWM1mCMz3x3M for ; Tue, 13 Oct 2020 16:10:39 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4C9gT21GbRz1VV; Tue, 13 Oct 2020 16:08:38 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4C9gSz66psz304s; Tue, 13 Oct 2020 16:08:35 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4C9gSx2L8hz2yrM for ; Tue, 13 Oct 2020 16:08:33 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 4C9gSv2XShz1HZ; Tue, 13 Oct 2020 16:08:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1602605311; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pVfeBP95x5JpLPp6UXMrwf1XMPhKu6GpuDITaP/OHcI=; b=DXfg2+oO4gzWWXYPZ/HHV6yhLp6TICXEYwkyoy2imUUwRHjfWo9H+h5xAGHwqODd7bUB4H k36qddMDKq8epBaSevT41NtO0+3WeXggNexoWki/FqyBiIkFaSmPe6y01N/U6iS18nuaEu cjaK9UE0gm3NHiWPu3eeswUhXWacJd1YlOevqRuJ8mDDfgeuXEtLSXLdIj5ss60rhdX510 wEaJgZumgUdibBtKKYNBq6NHAeXgnTzgQ/AlKjfsWnk5n6dJitGQVWmWbd2f40VQTq7ajZ +6KZk16dDLpyXSnzC3TJA9qWxYnVgUdISJgesOasbGbmMwyP5cbfcJgLpr/DEw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1602605311; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pVfeBP95x5JpLPp6UXMrwf1XMPhKu6GpuDITaP/OHcI=; b=cy2TcSN2xXs83skQiZ4qzve5cf13NUjQBzPk77X0f3Uad9NzyFG3gChS5MBSKHJH+ASnhS ulkeJw+n5snflSCA== From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 47/54] samba: Automatically migrate role setting Date: Tue, 13 Oct 2020 16:08:05 +0000 Message-Id: <20201013160812.27754-47-michael.tremer@ipfire.org> In-Reply-To: <20201013160812.27754-1-michael.tremer@ipfire.org> References: <20201013160812.27754-1-michael.tremer@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Tremer Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Signed-off-by: Michael Tremer --- src/paks/samba/install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/paks/samba/install.sh b/src/paks/samba/install.sh index 8b61298d5..22d74b93a 100644 --- a/src/paks/samba/install.sh +++ b/src/paks/samba/install.sh @@ -42,8 +42,12 @@ sed -i /var/ipfire/samba/smb.conf \ -e "/^syslog/d" \ -e "s/^security = share$/security = user/" +# Migrate SECURITY to ROLE sed -i /var/ipfire/samba/settings \ - -e "s/^SECURITY=share/SECURITY=user/" + -e "s/^SECURITY=ADS/ROLE=member/" \ + -e "s/^SECURITY=server/ROLE=standalone/" \ + -e "s/^SECURITY=share/ROLE=standalone/" \ + -e "s/^SECURITY=user/ROLE=standalone/" # Start the service /usr/local/bin/sambactrl smbstart