Fix for issue #115
Added typecast to int that fixes a fatal error telling that the second argument of rand() expects an int but a float is given on an ARMv7 architecture.
Problem seems to be introduced in PHP v8.
* Custom email body (#51)
* get email body from ENV
* read subject from env
* html mail
* replace special string with username and password
* missing ;
* more str_replace
* utf8 in mail
* typo
* docs
* fix var
* count accounts
* fix print
* Add the ability to set the server path. Get directed to the appropriate module when you log in.
* Fixes to allow overriding attribute labels properly
* Fix server_path in various places, update to cookies use 'samesite', include boostrap and queryjs files so LUM can run without internet access.
Co-authored-by: Monsieur X <xgaia@gmx.com>
* get email body from ENV
* read subject from env
* html mail
* replace special string with username and password
* missing ;
* more str_replace
* utf8 in mail
* typo
* docs
* fix var
* count accounts
* fix print
* Changes to allow using different account attributes, additional objectclasses, protection against accidentally removing all admin acccess, remove Helm files, username sanity updates
* Fixed LDAP user searches using the base DN
* Don't render the menu if there are fatal errors
* FIx tag parsing. No TLS warning for local LDAP connections.
* Fix bug retrieving account attributes
* Multi-arch support and tidied-up README
* Add support for stronger hashes (#34)
* Add generate_salt function
* Add suport for clear text passwords
If someone wants to shoot themselves in the foot, they are free to do it
* Add support for blowfish
* Add support for extended DES
* Add support for md5crypt
* Fix salt generation call
* Add support for sha256crypt
* Add support for sha512crypt
* Update previous functions
* Add a default cause
* Fix some shenanigans and log cleanup
* Couple minor fixes
* Let password hash checking be done in the password function
* Update the README with new passwords
* Change the default fallback to SSHA
* Put crypt algos in an array ordered by preference so we can fail to the most secure algo available
* Remove superfluous count++
* Updated password hashing code
Co-authored-by: Angelin01 <angeloborsoiross@hotmail.com>
* Added ALLOW_WEAK_PASSWORDS and PASSWORD_HASH options, some bug and log format fixes
* Fixed incorrect variable name in check for password hash setting.