ldap: Store password hashes instead of plain text

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

No files matched your search

+1 -1
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
+1 -1
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