From f4d2f2a65b799e200c2f98164e1a0ac4e9b07376 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Tue, 29 May 2012 14:20:38 -0400 Subject: Configure automount using autofs or sssd. This script edits nsswitch.conf to use either ldap (autofs) or sss (sssd) to find automount maps. NFSv4 services are started so Kerberos encryption and/or integrity can be used on the maps. https://fedorahosted.org/freeipa/ticket/1233 https://fedorahosted.org/freeipa/ticket/2193 --- ipapython/platform/base.py | 4 +++- ipapython/platform/fedora16.py | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'ipapython') diff --git a/ipapython/platform/base.py b/ipapython/platform/base.py index d177cc82..bf76b763 100644 --- a/ipapython/platform/base.py +++ b/ipapython/platform/base.py @@ -23,7 +23,9 @@ from ipalib.plugable import MagicDict # through knownservices. and take care of remapping internally, if needed wellknownservices = ['certmonger', 'dirsrv', 'httpd', 'ipa', 'krb5kdc', 'messagebus', 'nslcd', 'nscd', 'ntpd', 'portmap', - 'rpcbind', 'kadmin', 'sshd'] + 'rpcbind', 'kadmin', 'sshd', 'autofs', 'rpcgssd', + 'rpcidmapd'] + class AuthConfig(object): """ diff --git a/ipapython/platform/fedora16.py b/ipapython/platform/fedora16.py index 830771d8..985d368f 100644 --- a/ipapython/platform/fedora16.py +++ b/ipapython/platform/fedora16.py @@ -43,6 +43,9 @@ __all__ = ['authconfig', 'service', 'knownservices', 'backup_and_replace_hostnam # mapping will be kept in this dictionary system_units = dict(map(lambda x: (x, "%s.service" % (x)), base.wellknownservices)) +system_units['rpcgssd'] = 'nfs-secure.service' +system_units['rpcidmapd'] = 'nfs-idmap.service' + # Rewrite dirsrv and pki-cad services as they support instances via separate # service generator. To make this working, one needs to have both foo@.servic # and foo.target -- the latter is used when request should be coming for -- cgit