Dominique Leuenberger 2021-05-11 21:04:22 +00:00 committed by Git OBS Bridge
commit 2ffa75815c
5 changed files with 37 additions and 56 deletions

View File

@ -1,43 +0,0 @@
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 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d8943f66a2a666fee8be026d82a66904c0a5125aab7ef74504456ce269687dda
size 480702

3
realmd-0.17.0.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a18ce385862101d734c1382560acc2f10dbeb465d03c587cb80707321634d628
size 306453

View File

@ -1,3 +1,24 @@
-------------------------------------------------------------------
Fri May 7 11:10:12 UTC 2021 - Ferdinand Thiessen <rpm@fthiessen.de>
- Update to version 0.17
+ Use current idmap options for smb.conf
+ Find NetBIOS name in keytab while leaving
+ Work properly with Python 3
+ discover: try to get domain name from hostname
+ Set 'NEWEST' flag when resolving packages with PackageKit
+ service: use "kerberos method" "secrets and keytab"
+ Use startTLS with FreeIPA
+ service: use 'additional dns hostnames' with net ads join
+ Fix pam misconfiguration for SUSE systems
+ Kerberos: add default_domain and udp_preference_limit
+ tools: add --use-ldaps option for discover, join and leave
+ Fix nsswitch handling when joining and leaving domain for
suse distro
+ paths: install realmd in libexecdir
+ tools: enforce absolute path for install option
- Drop upstream fixed 0001-suse-pam-settings.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Sep 24 09:57:27 UTC 2020 - Samuel Cabrero <scabrero@suse.de> Thu Sep 24 09:57:27 UTC 2020 - Samuel Cabrero <scabrero@suse.de>

View File

@ -1,7 +1,7 @@
# #
# spec file for package realmd # spec file for package realmd
# #
# Copyright (c) 2020 SUSE LLC # Copyright (c) 2021 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -17,15 +17,13 @@
Name: realmd Name: realmd
Version: 0.16.3 Version: 0.17.0
Release: 0 Release: 0
Summary: AD integration detection Summary: AD integration detection
License: LGPL-2.1-or-later License: LGPL-2.1-or-later
Group: System/GUI/GNOME Group: System/GUI/GNOME
URL: http://www.freedesktop.org/software/realmd URL: https://www.freedesktop.org/software/realmd/
Source: http://www.freedesktop.org/software/realmd/releases/%{name}-%{version}.tar.gz Source: https://gitlab.freedesktop.org/realmd/realmd/-/archive/%{version}/realmd-%{version}.tar.bz2
Patch1: 0001-suse-pam-settings.patch
BuildRequires: autoconf BuildRequires: autoconf
BuildRequires: automake BuildRequires: automake
BuildRequires: gettext-tools BuildRequires: gettext-tools
@ -57,13 +55,17 @@ authentication and user account lookups.
%prep %prep
%setup -q %setup -q
%autopatch -p1
%build %build
NOCONFIGURE=1 sh ./autogen.sh
# krb5-config is hidden # krb5-config is hidden
PATH=$PATH:%{_prefix}/lib/mit/bin PATH=$PATH:%{_prefix}/lib/mit/bin
%configure --with-distro=suse --with-systemd-unit-dir=%{_unitdir} --with-systemd-journal=no %configure \
make %{?_smp_mflags} --with-distro=suse \
--with-systemd-journal=no \
--with-systemd-unit-dir=%{_unitdir} \
--with-private-dir=%{_libdir}/%{name}
%make_build
%install %install
%make_install %make_install
@ -90,7 +92,8 @@ fi
%{_sbindir}/realm %{_sbindir}/realm
%{_sbindir}/rc%{name} %{_sbindir}/rc%{name}
%{_unitdir}/realmd.service %{_unitdir}/realmd.service
%{_prefix}/lib/realmd/ %{_libexecdir}/%{name}
%{_libdir}/%{name}/
%config %{_sysconfdir}/dbus-1/system.d/org.freedesktop.realmd.conf %config %{_sysconfdir}/dbus-1/system.d/org.freedesktop.realmd.conf
%{_datadir}/dbus-1/system-services/org.freedesktop.realmd.service %{_datadir}/dbus-1/system-services/org.freedesktop.realmd.service
%{_datadir}/polkit-1/actions/org.freedesktop.realmd.policy %{_datadir}/polkit-1/actions/org.freedesktop.realmd.policy