mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
ldap: Store password hashes instead of plain text
This commit is contained in:
parent
82090af423
commit
f91be5a4f9
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user