ldap: Store password hashes instead of plain text

This commit is contained in:
Sunil Mohan Adapa 2015-06-26 00:30:48 +05:30
parent 82090af423
commit f91be5a4f9
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@
# Must be run as root.
username="$1"
password="$2"
password=$(slappasswd -s "$2")
cat <<EOF |ldapmodify -Y EXTERNAL -H ldapi:///
dn: uid=$username,ou=users,dc=thisbox

View File

@ -19,7 +19,7 @@
# Must be run as root.
username="$1"
password="$2"
password=$(slappasswd -s "$2")
cat <<EOF |ldapadd -Y EXTERNAL -H ldapi:///
dn: uid=$username,ou=users,dc=thisbox