From 1550233df538caf70505cc11fc6e5a7c32f4a1fe Mon Sep 17 00:00:00 2001
From: Stephen Gallagher <sgallagh@redhat.com>
Date: Wed, 21 Oct 2009 08:22:56 -0400
Subject: [PATCH] Bring SSSDConfig API options up-to-date

---
 server/config/SSSDConfigTest.py             |   16 +++++++------
 server/config/etc/sssd.api.conf             |   25 ++++++++++++--------
 server/config/etc/sssd.api.d/sssd-ldap.conf |   32 +++++++++++++++++++++++++-
 3 files changed, 54 insertions(+), 19 deletions(-)

diff --git a/server/config/SSSDConfigTest.py b/server/config/SSSDConfigTest.py
index b597f76..3f6f478 100644
--- a/server/config/SSSDConfigTest.py
+++ b/server/config/SSSDConfigTest.py
@@ -204,10 +204,13 @@ class SSSDConfigTestSSSDService(unittest.TestCase):
             'config_file_version',
             'services',
             'domains',
+            'timeout',
             'sbus_timeout',
             're_expression',
             'full_name_format',
             'debug_level',
+            'debug_timestamps',
+            'debug_to_files',
             'command',
             'reconnection_retries']
 
@@ -313,9 +316,6 @@ class SSSDConfigTestSSSDService(unittest.TestCase):
         control_list = [
             'config_file_version',
             'services',
-            'sbus_timeout',
-            're_expression',
-            'full_name_format',
             'debug_level',
             'reconnection_retries']
 
@@ -413,9 +413,11 @@ class SSSDConfigTestSSSDDomain(unittest.TestCase):
             'min_id',
             'max_id',
             'timeout',
+            'command',
             'magic_private_groups',
             'enumerate',
             'cache_credentials',
+            'store_legacy_passwords',
             'use_fully_qualified_names',
             'id_provider',
             'auth_provider',
@@ -528,7 +530,8 @@ class SSSDConfigTestSSSDDomain(unittest.TestCase):
         control_provider_dict = {
             'krb5': ('auth', 'access', 'chpass'),
             'local': ('auth', 'chpass', 'access', 'id'),
-            'ldap': ('id', 'auth')}
+            'ldap': ('id', 'auth'),
+            'proxy': ('auth', 'id')}
 
         providers = domain.list_providers()
 
@@ -620,9 +623,11 @@ class SSSDConfigTestSSSDDomain(unittest.TestCase):
             'min_id',
             'max_id',
             'timeout',
+            'command',
             'magic_private_groups',
             'enumerate',
             'cache_credentials',
+            'store_legacy_passwords',
             'use_fully_qualified_names',
             'id_provider',
             'auth_provider',
@@ -943,9 +948,6 @@ class SSSDConfigTestSSSDConfig(unittest.TestCase):
         control_list = [
             'config_file_version',
             'services',
-            'sbus_timeout',
-            're_expression',
-            'full_name_format',
             'debug_level',
             'reconnection_retries']
         for option in control_list:
diff --git a/server/config/etc/sssd.api.conf b/server/config/etc/sssd.api.conf
index da38506..e39cc06 100644
--- a/server/config/etc/sssd.api.conf
+++ b/server/config/etc/sssd.api.conf
@@ -4,6 +4,8 @@
 [service]
 # Options available to all services
 debug_level = int, None, 0
+debug_timestamps = bool, None
+debug_to_files = bool, None
 command = str, None
 reconnection_retries = int, None, 3
 
@@ -12,19 +14,20 @@ reconnection_retries = int, None, 3
 config_file_version = int, None, 2
 services = list, str, nss, pam
 domains = list, str
-sbus_timeout = int, None, -1
-re_expression = str, None, (?P<name>[^@]+)@?(?P<domain>[^@]*$)
-full_name_format = str, None, %1$s@%2$s
+timeout = int, None
+sbus_timeout = int, None
+re_expression = str, None
+full_name_format = str, None
 
 [nss]
 # Name service
-nss_enum_cache_timeout = int, None
-nss_entry_cache_timeout = int, None
-nss_entry_cache_no_wait_timeout = int, None
-nss_entry_negative_timeout = int, None
-nss_filter_users = list, str, root
-nss_filter_groups = list, str, root
-nss_filter_users_in_groups = bool, None, true
+enum_cache_timeout = int, None
+entry_cache_timeout = int, None
+entry_cache_no_wait_timeout = int, None
+entry_negative_timeout = int, None
+filter_users = list, str, root
+filter_groups = list, str, root
+filter_users_in_groups = bool, None, true
 
 [pam]
 # Authentication service
@@ -40,10 +43,12 @@ chpass_provider = str, None
 [domain]
 # Options available to all domains
 debug_level = int, None, 0
+command = str, None
 min_id = int, None, 1000
 max_id = int, None
 timeout = int, None, 0
 magic_private_groups = bool, None, false
 enumerate = bool, None, true
 cache_credentials = bool, None, false
+store_legacy_passwords = bool, None, false
 use_fully_qualified_names = bool, None, false
diff --git a/server/config/etc/sssd.api.d/sssd-ldap.conf b/server/config/etc/sssd.api.d/sssd-ldap.conf
index 700de02..4e27e33 100644
--- a/server/config/etc/sssd.api.d/sssd-ldap.conf
+++ b/server/config/etc/sssd.api.d/sssd-ldap.conf
@@ -6,10 +6,24 @@ ldap_default_authtok_type = str, None
 ldap_default_authtok = str, None
 ldap_network_timeout = int, None
 ldap_opt_timeout = int, None
+ldap_offline_timeout = int, None
+ldap_stale_time = int, None
+ldap_tls_cacert = str, None
 ldap_tls_reqcert = str, None
+ldap_sasl_mech = str, None
+ldap_sasl_authid = str, None
+krb5_kdcip = str, None
+krb5_realm = str, None
+ldap_krb5_keytab = str, None
+ldap_krb5_init_creds = bool, None
 
 [provider/ldap/id]
+ldap_search_timeout = int, None
+ldap_enumeration_refresh_timeout = int, None
+ldap_id_use_start_tls = bool, None, false
 ldap_user_search_base = str, None
+ldap_user_search_scope = str, None
+ldap_user_search_filter = str, None
 ldap_user_object_class = str, None
 ldap_user_name = str, None
 ldap_user_uid_number = str, None
@@ -20,13 +34,27 @@ ldap_user_shell = str, None
 ldap_user_uuid = str, None
 ldap_user_principal = str, None
 ldap_user_fullname = str, None
-ldap_user_memberof = str, None
+ldap_user_member_of = str, None
+ldap_user_modify_timestamp = str, None
+ldap_user_shadow_last_change = str, None
+ldap_user_shadow_min = str, None
+ldap_user_shadow_max = str, None
+ldap_user_shadow_warning = str, None
+ldap_user_shadow_inactive = str, None
+ldap_user_shadow_expire = str, None
+ldap_user_shadow_flag = str, None
+ldap_user_krb_last_pwd_change = str, None
+ldap_user_krb_password_expiration = str, None
+ldap_pwd_attribute = str, None
 ldap_group_search_base = str, None
+ldap_group_search_scope = str, None
+ldap_group_search_filter = str, None
 ldap_group_object_class = str, None
 ldap_group_name = str, None
 ldap_group_gid_number = str, None
 ldap_group_member = str, None
-ldap_group_UUID = str, None
+ldap_group_uuid = str, None
+ldap_group_modify_timestamp = str, None
 ldap_force_upper_case_realm = bool, None
 
 [provider/ldap/auth]
-- 
1.6.2.5

