Added LDAP authentication support for OpenBSD.
This commit is contained in:
parent
704b7615d8
commit
f23d1d2e91
2 changed files with 133 additions and 0 deletions
|
@ -9,6 +9,9 @@
|
|||
# $ldap_basedn:
|
||||
# LDAP base DN.
|
||||
#
|
||||
# $ldap_login_umask:
|
||||
# Default umask for LDAP users in OpenBSD, defaults to 077.
|
||||
#
|
||||
class ldap::client {
|
||||
|
||||
package { "openldap-client":
|
||||
|
@ -31,6 +34,23 @@ class ldap::client {
|
|||
require => Package["openldap-client"],
|
||||
}
|
||||
|
||||
case $operatingsystem {
|
||||
OpenBSD: {
|
||||
if ! $ldap_login_umask {
|
||||
$ldap_login_umask = "077"
|
||||
}
|
||||
|
||||
file { "/etc/login.conf":
|
||||
ensure => present,
|
||||
content => template("ldap/login.conf.erb"),
|
||||
mode => 0644,
|
||||
owner => root,
|
||||
group => wheel,
|
||||
require => File["/etc/openldap/ldap.conf"],
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue