Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Computer Account / MAC address doesn't work #171
Last week I installed Grase Hotspot 3.8.0. When I tried to use the "Computer Account" functionality, it didn't work.
After some research I found the user entry in the database table radius.radcheck: there the MAC address is the 'username'. But it is stored with LOWERCASE letters. After changing that into UPPERCASE letters (also in the tables radusercomment und radusergroup), it worked !
Further research showed me in DatabaseFunctions.class.php at line 916 the function createUser, and in line 926 (=first line of the function) there is a call
So, the letters in a MAC address (which had to be uppercase in the input field) become lowercase and are then stored in the database.
Next idea: I can let run a script which converts the MAC adresses in the database tables, but that's no solution, it's only a workaround.
I would like to convert the MAC address of the device just before "comparing" it with the database entry, but I'm not shure where to do it.
Have you any ideas or solutions ?
Can you please collect some support data as stated at https://grasehotspot.org/support/collecting-support-information/
Again I tried with a second device. By using the Web Admin Interface to create a computer account, the generated "UserName" entries in the "radius" databse became a lowercase MAC address - and using this for login didn't work.
I uploaded the requested data to