mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
ldap: Store password hashes instead of plain text
This commit is contained in:
1 parent
82090af423
commit
f91be5a4f9
2 files changed
+2
-2
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user