Werk #4612: Auth works now with $apr1$ prefixed passwords

KomponenteGUI
TitelAuth works now with $apr1$ prefixed passwords
Datum2017-05-08 11:18:33
Check_MK EditionCheck_MK Raw Edition (CRE)
Check_MK Version1.4.0b7,1.5.0i1
LevelTrivial Change
KlasseBug Fix
KompatibilitätKompatibel - benötigt kein manuelles Eingreifen

The default encryption algorithm of htpasswd stores passwords in MD5 format. If you take a look at the file it prefixes the password with $apr1$. This format was not handled by the Check_MK GUI. If you set the prefix to $1$ it worked.

The GUI has been changed to be able to work with both formats. Passwords set with this command should now work out of the box:

htpasswd -m $OMD_ROOT/etc/htpasswd [username]