Skip to content

Instantly share code, notes, and snippets.

@ryanycoleman
Created May 7, 2019 21:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanycoleman/0a444e4dfdb568eb3080a9e038347e41 to your computer and use it in GitHub Desktop.
Save ryanycoleman/0a444e4dfdb568eb3080a9e038347e41 to your computer and use it in GitHub Desktop.
class profile::sssd_ldap (
$ldap_account,
$ldap_password = hiera('profile::sssd_ldap::ldap_password'),
) {
class { 'sssd':
ldap_base => 'STRING_CUT',
ldap_uri => 'STRING_CUT',
ldap_pwd_policy => 'STRING_CUT',
ldap_group_member => 'STRING_CUT',
ldap_access_filter => 'STRING_CUT',
ldap_schema => 'STRING_CUT',
}
Ini_setting {
ensure => present,
path => '/etc/sssd/sssd.conf',
section => 'domain/LDAP',
require => Class['sssd::config'],
notify => Class['sssd::service'],
}
ini_setting { 'ldap_group_object_class':
setting => 'ldap_group_object_class',
value => 'departmentNumber',
}
ini_setting { 'ldap_default_bind_dn':
setting => 'ldap_default_bind_dn',
value => "STRING_CUT",
}
ini_setting { 'ldap_default_authtok':
setting => 'ldap_default_authtok',
value => $ldap_password,
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment