Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cache_credentials and ldap_schema var #31

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ Some default values for domain specific configuration options are:
max_id: 0
id_provider: ldap
auth_provider: ldap
ldap_schema: rfc2307
cache_credentials: 'false'
enumerate: 'false'
ldap_uri: ldap://localhost
ldap_id_use_start_tls: 'false'
Expand Down
2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ sssd_nss:
filter_groups: root

sssd_domain_defaults:
ldap_schema: rfc2307
min_id: 1
max_id: 0
id_provider: ldap
auth_provider: ldap
cache_credentials: 'false'
enumerate: 'false'
ldap_uri: ldap://localhost
ldap_id_use_start_tls: 'false'
Expand Down
6 changes: 6 additions & 0 deletions templates/sssd.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ filter_groups = {{ sssd_nss.filter_users }}
{% for domain in sssd_domains %}
[domain/{{ domain.name }}]
{# providers #}
ldap_schema = {{ domain.ldap_schema
if domain.ldap_schema is defined
else sssd_domain_defaults.ldap_schema }}
min_id = {{ domain.min_id
if domain.min_id is defined
else sssd_domain_defaults.min_id }}
Expand All @@ -23,6 +26,9 @@ id_provider = {{ domain.id_provider
auth_provider = {{ domain.auth_provider
if domain.auth_provider is defined
else sssd_domain_defaults.auth_provider }}
cache_credentials = {{ domain.cache_credentials
if domain.cache_credentials is defined
else sssd_domain_defaults.cache_credentials }}
enumerate = {{ domain.enumerate
if domain.enumerate is defined
else sssd_domain_defaults.enumerate }}
Expand Down