mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-22 11:23:10 +00:00
Fix wrong variable name
This commit is contained in:
parent
e4e592a71a
commit
a5006fae93
1 changed files with 3 additions and 3 deletions
|
@ -204,12 +204,12 @@ install_ldap() {
|
|||
echo "Installing slapd package: Done"
|
||||
|
||||
echo "Hashing the LDAP password ..."
|
||||
hashed_ldap_passwd="$(slappasswd -s $1)"
|
||||
hashed_ldap_passwd="$(slappasswd -s $password)"
|
||||
echo "Hash of the password: $hashed_ldap_passwd"
|
||||
|
||||
echo "Building the LDAP config files ..."
|
||||
sed 's|dc=example,dc=net|'"$2"'|g' install_utils/db.ldiff | sed 's|FILL_IT|'"$hashed_ldap_passwd"'|g' > /tmp/db
|
||||
sed 's|dc=example,dc=net|'"$2"'|g' install_utils/schema.ldiff | sed 's|FILL_IT|'"$hashed_ldap_passwd"'|g' > /tmp/schema
|
||||
sed 's|dc=example,dc=net|'"$domain"'|g' install_utils/db.ldiff | sed 's|FILL_IT|'"$hashed_ldap_passwd"'|g' > /tmp/db
|
||||
sed 's|dc=example,dc=net|'"$domain"'|g' install_utils/schema.ldiff | sed 's|FILL_IT|'"$hashed_ldap_passwd"'|g' > /tmp/schema
|
||||
echo "Building the LDAP config files: Done"
|
||||
|
||||
echo "Stopping slapd service ..."
|
||||
|
|
Loading…
Reference in a new issue