Usermin uses incorrect config-* profile for Ubuntu 10.04

As per forum topic http://www.virtualmin.com/node/15130

When in the Webmin Configuration -> Operating System and Environment on Ubuntu 10.04, it shows the configuration template to be debian-linux with the value of 3.1, so it uses a profile for many things, including ldap-useradmin, to look for incorrect files during various checks.

Virtualmin GPL and Cloudmin both determine this as debian-linux 5.0, which uses the appropriate configuration reasonably to my knowledge.

When changing it manually within Webmin Configuration -> Operating System and Environment, manually adjusting the value for debian-linux from 3.1 to 5.0 restarts webmin, and the System Information shows:

Warning - Your system is actually running Ubuntu Linux version 10.04.

When allowing it to self-correct again, it changes the value back to 3.1 causing the problem all over again.

Status: 
Closed (fixed)

Comments

Found the problem.

It's in /usr/share/webmin/os_list.txt

Ubuntu Linux $1 debian-linux 5.0 $etc_issue =~ /Ubuntu.*\s(10.[0-9.]+)\s/i

This is the line that defines Ubuntu 10.*, that was in Virtualmin GPL that was not in Webmin Core. I found this problem after I tried to get LDAP Users and Groups working properly. Webmin itself had been installed from Cloudmin (Physical Server) onto the system in question only just recently.

Changing the os_list.txt to include the mentioned line above allows webmin to properly detect Ubuntu 10.04.* and set it to the appropriate debian-linux 5.0 profile.

Your diagnosis is correct, and in fact the next Webmin and Usermin releases will make that change..

Automatically closed -- issue fixed for 2 weeks with no activity.