From 3bad4db69b95f9b59695c85da5422f3fb71a9e95b2f1c91c30b8aff8cab7b8ed Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 13 Oct 2020 19:12:52 +0000 Subject: [PATCH] Accepting request 836535 from home:scabrero:bsc1176053 - Adjust pam-config arguments for openSUSE; (bsc#1176053); + Add 0001-suse-pam-settings.patch OBS-URL: https://build.opensuse.org/request/show/836535 OBS-URL: https://build.opensuse.org/package/show/network/realmd?expand=0&rev=12 --- 0001-suse-pam-settings.patch | 43 ++++++++++++++++++++++++++++++++++++ realmd.changes | 6 +++++ realmd.spec | 2 ++ 3 files changed, 51 insertions(+) create mode 100644 0001-suse-pam-settings.patch diff --git a/0001-suse-pam-settings.patch b/0001-suse-pam-settings.patch new file mode 100644 index 0000000..03fe7d7 --- /dev/null +++ b/0001-suse-pam-settings.patch @@ -0,0 +1,43 @@ +From 54df8dd475fc72b07268ae115a938d6c8b1d8ea0 Mon Sep 17 00:00:00 2001 +From: Samuel Cabrero +Date: Wed, 23 Sep 2020 17:48:37 +0200 +Subject: [PATCH] suse pam settings + +--- + service/realmd-defaults.conf | 2 +- + service/realmd-suse.conf | 5 ++--- + 2 files changed, 3 insertions(+), 4 deletions(-) + +diff --git a/service/realmd-defaults.conf b/service/realmd-defaults.conf +index 6d7ccf8..b3d2b5c 100644 +--- a/service/realmd-defaults.conf ++++ b/service/realmd-defaults.conf +@@ -6,7 +6,7 @@ automatic-install = yes + [paths] + net = /usr/bin/net + winbindd = /usr/sbin/winbindd +-smb.conf = /etc/smb.conf ++smb.conf = /etc/samba/smb.conf + sssd.conf = /etc/sssd/sssd.conf + adcli = /usr/sbin/adcli + ipa-client-install = /usr/sbin/ipa-client-install +diff --git a/service/realmd-suse.conf b/service/realmd-suse.conf +index dba98c3..052b4dc 100644 +--- a/service/realmd-suse.conf ++++ b/service/realmd-suse.conf +@@ -27,10 +27,9 @@ winbind-disable-service = /usr/bin/systemctl disable winbind.service + winbind-restart-service = /usr/bin/systemctl restart winbind.service + winbind-stop-service = /usr/bin/systemctl stop winbind.service + +-# TODO: pam-config doesn't have support for --sssd + # TODO: How do we enable sssd in /etc/nsswitch.conf? +-sssd-enable-logins = /usr/sbin/pam-config --add --sssd --mkhomedir +-sssd-disable-logins = /usr/sbin/pam-config --delete --sssd ++sssd-enable-logins = /usr/sbin/pam-config --add --sss --mkhomedir ++sssd-disable-logins = /usr/sbin/pam-config --delete --sss + sssd-enable-service = /usr/bin/systemctl enable sssd.service + sssd-disable-service = /usr/bin/systemctl disable sssd.service + sssd-restart-service = /usr/bin/systemctl restart sssd.service +-- +2.28.0 + diff --git a/realmd.changes b/realmd.changes index 04cc1b4..42342ef 100644 --- a/realmd.changes +++ b/realmd.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Sep 24 09:57:27 UTC 2020 - Samuel Cabrero + +- Adjust pam-config arguments for openSUSE; (bsc#1176053); + + Add 0001-suse-pam-settings.patch + ------------------------------------------------------------------- Mon Jun 15 11:46:59 UTC 2020 - Dominique Leuenberger diff --git a/realmd.spec b/realmd.spec index a28a5d9..16f303c 100644 --- a/realmd.spec +++ b/realmd.spec @@ -24,6 +24,7 @@ License: LGPL-2.1-or-later Group: System/GUI/GNOME URL: http://www.freedesktop.org/software/realmd Source: http://www.freedesktop.org/software/realmd/releases/%{name}-%{version}.tar.gz +Patch1: 0001-suse-pam-settings.patch BuildRequires: autoconf BuildRequires: automake @@ -56,6 +57,7 @@ authentication and user account lookups. %prep %setup -q +%autopatch -p1 %build # krb5-config is hidden