From e5c07508060bdafb315c25cd712ceb23508ab20a Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Mon, 23 Jan 2012 10:01:41 -0500 Subject: Add SSH service to platform-specific services. Add method for getting configuration directory path of a service, so that a different SSH configuration directory can be specified on different platforms. https://fedorahosted.org/freeipa/ticket/754 --- ipapython/platform/base.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'ipapython/platform/base.py') diff --git a/ipapython/platform/base.py b/ipapython/platform/base.py index 99189a10..d177cc82 100644 --- a/ipapython/platform/base.py +++ b/ipapython/platform/base.py @@ -21,8 +21,9 @@ from ipalib.plugable import MagicDict # Canonical names of services as IPA wants to see them. As we need to have *some* naming, # set them as in Red Hat distributions. Actual implementation should make them available # through knownservices. and take care of remapping internally, if needed -wellknownservices = ['certmonger', 'dirsrv', 'httpd', 'ipa', 'krb5kdc', 'messagebus', - 'nslcd', 'nscd', 'ntpd', 'portmap', 'rpcbind', 'kadmin'] +wellknownservices = ['certmonger', 'dirsrv', 'httpd', 'ipa', 'krb5kdc', + 'messagebus', 'nslcd', 'nscd', 'ntpd', 'portmap', + 'rpcbind', 'kadmin', 'sshd'] class AuthConfig(object): """ @@ -141,6 +142,9 @@ class PlatformService(object): def remove(self, instance_name=""): return + def get_config_dir(self, instance_name=""): + return + class KnownServices(MagicDict): """ KnownServices is an abstract class factory that should give out instances of well-known -- cgit