Compare commits

..

No commits in common. "41992f151379c6b7367a12114238552cb07af010" and "f9a8baa95691c898b93486d13f90682f5d02df20" have entirely different histories.

3 changed files with 5 additions and 48 deletions

View File

@ -10,25 +10,3 @@ For LAM
puppet module install puppetlabs-apache puppet module install puppetlabs-apache
puppet module install puppet-php puppet module install puppet-php
Examples:
class {"wmdeit_ldap":
serverid => 17,
simple_bind_tls => "0",
log_level => 4,
}
class {"wmdeit_ldap::lam":
master_password => "1234",
master_password_salt => "5678",
configs => {
wmde => {
password => "123456",
password_salt => "Tube1234"
}
}
}

View File

@ -11,7 +11,7 @@ class wmdeit_ldap::lam(
$master_password_salt = "ABCD1234", $master_password_salt = "ABCD1234",
$configs = { $configs = {
"wmde" => {} "wmde" => ""
} }
) { ) {
@ -83,26 +83,6 @@ class wmdeit_ldap::lam(
} }
$configs.each | String $name, $conf | { $configs.each | String $name, $conf | {
$password = $conf['password'] ? {
undef => '1234',
default => $conf['password'],
}
$password_salt = $conf['password_salt'] ? {
undef => '5678',
default => $conf['password_salt'],
}
$encoded_password= strip (regsubst(
generate ("/bin/sh", "-c", "echo -n $password$password_salt | openssl dgst -binary -sha1 | openssl base64")
, '\n', "\n "))
$encoded_password_salt = strip(regsubst(
generate("/bin/sh","-c", "echo -n $password_salt | openssl base64")
, '\n', "\n "))
file {"$docroot/config/$name.conf": file {"$docroot/config/$name.conf":
ensure => file, ensure => file,
content => template("wmdeit_ldap/wmde.conf.erb"), content => template("wmdeit_ldap/wmde.conf.erb"),

View File

@ -13,8 +13,7 @@ ServerURL: ldap://localhost:389
Admins: cn=admin,dc=wikimedia,dc=de Admins: cn=admin,dc=wikimedia,dc=de
# password to change these preferences via webfrontend (default: lam) # password to change these preferences via webfrontend (default: lam)
#Passwd: {SSHA}T7uRmkbOgzr9k0BVJi1GvqqwJJQ= iaZAeQ== Passwd: {SSHA}T7uRmkbOgzr9k0BVJi1GvqqwJJQ= iaZAeQ==
Passwd: {SSHA}<%= @encoded_password %> <%= @encoded_password_salt %>
# suffix of tree view # suffix of tree view
# e.g. dc=yourdomain,dc=org # e.g. dc=yourdomain,dc=org