mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Add ipa-advise plugins for legacy clients
Old versions of SSSD do not directly support cross-realm trusts between IPA and AD. This patch introduces plugins for the ipa-advise tool, which should help with configuring an old version of SSSD (1.5-1.8) to gain access to resources in trusted domain. Since the configuration steps differ depending on whether the platform includes the authconfig tool, two plugins are needed: * config-redhat-sssd-before-1-9 - provides configuration for Red Hat based systems, as these system include the autconfig utility * config-generic-sssd-before-1-9 - provides configuration for other platforms https://fedorahosted.org/freeipa/ticket/3671 https://fedorahosted.org/freeipa/ticket/3672
This commit is contained in:
committed by
Martin Kosek
parent
7ae58f0ca9
commit
fc3f3c90b9
@@ -85,6 +85,8 @@ AC_CONFIG_FILES([
|
||||
html/Makefile
|
||||
migration/Makefile
|
||||
share/Makefile
|
||||
share/advise/Makefile
|
||||
share/advise/legacy/Makefile
|
||||
ui/Makefile
|
||||
ui/src/Makefile
|
||||
ui/src/libs/Makefile
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
NULL =
|
||||
|
||||
SUBDIRS = \
|
||||
advise \
|
||||
$(NULL)
|
||||
|
||||
appdir = $(IPA_DATA_DIR)
|
||||
app_DATA = \
|
||||
05rfc2247.ldif \
|
||||
|
||||
17
install/share/advise/Makefile.am
Normal file
17
install/share/advise/Makefile.am
Normal file
@@ -0,0 +1,17 @@
|
||||
NULL =
|
||||
|
||||
SUBDIRS = \
|
||||
legacy \
|
||||
$(NULL)
|
||||
|
||||
appdir = $(IPA_DATA_DIR)/advise
|
||||
app_DATA = \
|
||||
$(NULL)
|
||||
|
||||
EXTRA_DIST = \
|
||||
$(app_DATA) \
|
||||
$(NULL)
|
||||
|
||||
MAINTAINERCLEANFILES = \
|
||||
*~ \
|
||||
Makefile.in
|
||||
15
install/share/advise/legacy/Makefile.am
Normal file
15
install/share/advise/legacy/Makefile.am
Normal file
@@ -0,0 +1,15 @@
|
||||
NULL =
|
||||
|
||||
appdir = $(IPA_DATA_DIR)/advise/legacy
|
||||
app_DATA = \
|
||||
sssd.conf.template \
|
||||
pam.conf.template \
|
||||
$(NULL)
|
||||
|
||||
EXTRA_DIST = \
|
||||
$(app_DATA) \
|
||||
$(NULL)
|
||||
|
||||
MAINTAINERCLEANFILES = \
|
||||
*~ \
|
||||
Makefile.in
|
||||
22
install/share/advise/legacy/pam.conf.template
Normal file
22
install/share/advise/legacy/pam.conf.template
Normal file
@@ -0,0 +1,22 @@
|
||||
auth required pam_env.so
|
||||
auth sufficient pam_unix.so nullok try_first_pass
|
||||
auth requisite pam_succeed_if.so uid >= 500 quiet
|
||||
auth sufficient pam_sss.so use_first_pass
|
||||
auth required pam_deny.so
|
||||
|
||||
account required pam_unix.so broken_shadow
|
||||
account sufficient pam_localuser.so
|
||||
account sufficient pam_succeed_if.so uid < 500 quiet
|
||||
account [default=bad success=ok user_unknown=ignore] pam_sss.so
|
||||
account required pam_permit.so
|
||||
|
||||
password requisite pam_cracklib.so try_first_pass retry=3 type=
|
||||
password sufficient pam_unix.so sha512 shadow nullok try_first_pass use_authtok
|
||||
password sufficient pam_sss.so use_authtok
|
||||
password required pam_deny.so
|
||||
|
||||
session optional pam_keyinit.so revoke
|
||||
session required pam_limits.so
|
||||
session [success=1 default=ignore] pam_succeed_if.so service in crond quiet use_uid
|
||||
session required pam_unix.so
|
||||
session optional pam_sss.so
|
||||
13
install/share/advise/legacy/sssd.conf.template
Normal file
13
install/share/advise/legacy/sssd.conf.template
Normal file
@@ -0,0 +1,13 @@
|
||||
[sssd]
|
||||
services = nss, pam
|
||||
config_file_version = 2
|
||||
domains = default
|
||||
re_expression = (?P<name>.+)
|
||||
|
||||
[domain/default]
|
||||
cache_credentials = True
|
||||
id_provider = ldap
|
||||
auth_provider = ldap
|
||||
ldap_uri = ldap://$IPA_SERVER_HOSTNAME
|
||||
ldap_search_base = cn=compat,$BASE_DN
|
||||
ldap_tls_cacert = /etc/openldap/cacerts/ipa.crt
|
||||
Reference in New Issue
Block a user