I'd like to add tags to the domains in sssd.conf from realmd. sssd ignores unknown attributes, but SSSDConfig needs to be told about them.
Attached is a patch which adds such an attribute. This is related to: https://bugzilla.redhat.com/show_bug.cgi?id=966650 Cheers, Stef
>From 6a3a505e68916704a83d2bdd8f6036fa9146c355 Mon Sep 17 00:00:00 2001 From: Stef Walter <[email protected]> Date: Thu, 23 May 2013 17:41:51 +0200 Subject: [PATCH] Add a domain config attribute for realmd realmd needs to be able to tag various domains with basic info when it configures a domain. --- src/config/SSSDConfigTest.py | 6 ++++-- src/config/etc/sssd.api.conf | 1 + src/man/sssd.conf.5.xml | 9 +++++++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/config/SSSDConfigTest.py b/src/config/SSSDConfigTest.py index 9de4b2b..bab6fa1 100755 --- a/src/config/SSSDConfigTest.py +++ b/src/config/SSSDConfigTest.py @@ -529,7 +529,8 @@ class SSSDConfigTestSSSDDomain(unittest.TestCase): 'autofs_provider', 'session_provider', 'hostid_provider', - 'subdomains_provider'] + 'subdomains_provider', + 'realmd_tags'] self.assertTrue(type(options) == dict, "Options should be a dictionary") @@ -879,7 +880,8 @@ class SSSDConfigTestSSSDDomain(unittest.TestCase): 'autofs_provider', 'session_provider', 'hostid_provider', - 'subdomains_provider'] + 'subdomains_provider', + 'realmd_tags'] self.assertTrue(type(options) == dict, "Options should be a dictionary") diff --git a/src/config/etc/sssd.api.conf b/src/config/etc/sssd.api.conf index 54cd703..ff4c407 100644 --- a/src/config/etc/sssd.api.conf +++ b/src/config/etc/sssd.api.conf @@ -112,6 +112,7 @@ override_homedir = str, None, false fallback_homedir = str, None, false override_shell = str, None, false default_shell = str, None, false +realmd_tags = str, None, false #Entry cache timeouts entry_cache_user_timeout = int, None, false diff --git a/src/man/sssd.conf.5.xml b/src/man/sssd.conf.5.xml index 99337fb..b902964 100644 --- a/src/man/sssd.conf.5.xml +++ b/src/man/sssd.conf.5.xml @@ -1663,6 +1663,15 @@ override_homedir = /home/%u </para> </listitem> </varlistentry> + <varlistentry> + <term>realmd_tags (string)</term> + <listitem> + <para> + Various tags stored by the realmd configuration service + for this domain. + </para> + </listitem> + </varlistentry> </variablelist> </para> -- 1.8.1.4
_______________________________________________ sssd-devel mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/sssd-devel
