1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 19:22:24 +00:00

Softcode {{ iiab_admin_user }} for iiab-admin's published password?

Unclear this is a good idea.

As what was an accurate warning is now misleading, as a result of this commit.

But I suppose it doesn't hurt, e.g. if other administrative accounts also have this same published password.
This commit is contained in:
A Holt 2020-10-10 13:13:45 -04:00 committed by GitHub
parent 09dce33dd8
commit fd4a8463f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,9 +36,9 @@ check_user_pwd() {
[ $(python3 -c "import crypt; print(crypt.crypt('$2', '\$$meth\$$salt'))") == "\$$meth\$$salt\$$hash" ]
}
if check_user_pwd "iiab-admin" "g0adm1n"; then
if check_user_pwd "{{ iiab_admin_user }}" "g0adm1n"; then # iiab-admin
echo
echo $(/usr/bin/gettext "The published password for user 'iiab-admin' is in use.")
echo $(/usr/bin/gettext "THIS IS A SECURITY RISK - please run 'sudo passwd iiab-admin' to change it.")
echo $(/usr/bin/gettext "The published password for user '{{ iiab_admin_user }}' is in use.")
echo $(/usr/bin/gettext "THIS IS A SECURITY RISK - please run 'sudo passwd {{ iiab_admin_user }}' to change it.")
echo
fi