Dominique Leuenberger 2020-10-14 13:39:58 +00:00 committed by Git OBS Bridge
commit a621ba739c
3 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,43 @@
From 54df8dd475fc72b07268ae115a938d6c8b1d8ea0 Mon Sep 17 00:00:00 2001
From: Samuel Cabrero <scabrero@suse.de>
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

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Sep 24 09:57:27 UTC 2020 - Samuel Cabrero <scabrero@suse.de>
- Adjust pam-config arguments for openSUSE; (bsc#1176053);
+ Add 0001-suse-pam-settings.patch
-------------------------------------------------------------------
Mon Jun 15 11:46:59 UTC 2020 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@ -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