Blame SOURCES/0001-switch-to-authselect.patch

4d12ff
From 32645f2fc1ddfb2eed7069fd749602619f26ed37 Mon Sep 17 00:00:00 2001
4d12ff
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <pbrezina@redhat.com>
4d12ff
Date: Mon, 19 Feb 2018 11:51:06 +0100
4d12ff
Subject: [PATCH] switch to authselect
4d12ff
4d12ff
---
4d12ff
 service/realmd-redhat.conf | 8 ++++----
4d12ff
 1 file changed, 4 insertions(+), 4 deletions(-)
4d12ff
4d12ff
diff --git a/service/realmd-redhat.conf b/service/realmd-redhat.conf
4d12ff
index e39fad525c716d1ed99715280cd5d497b9039427..26cf6147f352e1b48c3261fa42707d816428f879 100644
4d12ff
--- a/service/realmd-redhat.conf
4d12ff
+++ b/service/realmd-redhat.conf
4d12ff
@@ -23,15 +23,15 @@ adcli = /usr/sbin/adcli
4d12ff
 freeipa-client = /usr/sbin/ipa-client-install
4d12ff
 
4d12ff
 [commands]
4d12ff
-winbind-enable-logins = /usr/bin/sh -c "/usr/sbin/authconfig --update --enablewinbind --enablewinbindauth --enablemkhomedir --nostart && /usr/bin/systemctl enable oddjobd.service && /usr/bin/systemctl start oddjobd.service"
4d12ff
-winbind-disable-logins = /usr/sbin/authconfig --update --disablewinbind --disablewinbindauth --nostart
4d12ff
+winbind-enable-logins = /usr/bin/sh -c "/usr/bin/authselect select winbind with-mkhomedir --force && /usr/bin/systemctl enable oddjobd.service && /usr/bin/systemctl start oddjobd.service"
4d12ff
+winbind-disable-logins = /usr/bin/authselect select sssd with-mkhomedir
4d12ff
 winbind-enable-service = /usr/bin/systemctl enable winbind.service
4d12ff
 winbind-disable-service = /usr/bin/systemctl disable winbind.service
4d12ff
 winbind-restart-service = /usr/bin/systemctl restart winbind.service
4d12ff
 winbind-stop-service = /usr/bin/systemctl stop winbind.service
4d12ff
 
4d12ff
-sssd-enable-logins = /usr/bin/sh -c "/usr/sbin/authconfig --update --enablesssd --enablesssdauth --enablemkhomedir --nostart && /usr/bin/systemctl enable oddjobd.service && /usr/bin/systemctl start oddjobd.service"
4d12ff
-sssd-disable-logins = /usr/sbin/authconfig --update --disablesssdauth --nostart
4d12ff
+sssd-enable-logins = /usr/bin/sh -c "/usr/bin/authselect select sssd with-mkhomedir --force && /usr/bin/systemctl enable oddjobd.service && /usr/bin/systemctl start oddjobd.service"
4d12ff
+sssd-disable-logins = /usr/bin/authselect select sssd with-mkhomedir
4d12ff
 sssd-enable-service = /usr/bin/systemctl enable sssd.service
4d12ff
 sssd-disable-service = /usr/bin/systemctl disable sssd.service
4d12ff
 sssd-restart-service = /usr/bin/systemctl restart sssd.service
4d12ff
-- 
4d12ff
2.9.3
4d12ff