add integrity checks for user input

This commit is contained in:
2024-01-04 08:22:17 +01:00
parent 7f1ab45d53
commit 1da508d0d6
5 changed files with 14 additions and 5 deletions

View File

@@ -11,6 +11,7 @@ deb: man ../requirments.txt ../run.py ../luser ../LICENSE
chmod -w luser/DEBIAN/*
chmod +w luser/DEBIAN/control
dpkg-deb --build luser
chmod +w luser/DEBIAN/*
clean:
rm -f luser.deb
rm -f man/luser.1

View File

@@ -8,4 +8,4 @@ Depends: python3-flask, python3-ldap3, gunicorn, imagemagick, python3-passlib
Homepage: https://gitea.dmz.rs/fram3d/luser
Maintainer: fram3d <fram3d@dmz.rs>
Description: Web app that allows users to add,remove and change passwords in LDAP system
Version: 1.0.4
Version: 1.0.7

View File

@@ -1,6 +1,6 @@
#!/bin/bash
/sbin/service luser stop
/usr/bin/systemdctl disable luser.service
/usr/bin/systemctl disable luser.service
if [ -f /var/luser/luser/config.ini ] ; then
cp /var/luser/luser/config.ini /tmp/oldluserconfig.ini
fi