Captive portal can not display User in MAC pass through ???
-
Hi Everybody!
My Pfsense is just updated to version 2.2. But Captive portal fearture can not display User likes previous version.
-
Hi.
You have set both
Enable Pass-through MAC automatic additions
and
Enable Pass-through MAC automatic addition with username
?Also, pfSense will not find a user name by magic, il will use the 'auth_user' entry on from your (default) login page.
Btw: it works for me (when I set both options)
-
Hi!
I was set both options but still not work! :-\
-
Hi!
I was set both options but still not work! :-\
The user is entering its 'name' when logging in ? (That is the name being used).
You have a line like this
in your portal login page ?
What are all the others settings regarding to Services: Captive portal ?
edit: Aha : what you see (no user name) happens when "Authentication" is set to "No Authentication".
( index.php : line
https://github.com/pfsense/pfsense/blob/master/usr/local/captiveportal/index.php#L241
will be taken, the user id will be set to "unauthenticated" so, no need to be a PHP wizard to find out what happens here :
https://github.com/pfsense/pfsense/blob/master/etc/inc/captiveportal.inc#L2071 (up to line 2074) ;)If this is the case, no worry, I think I have a solution (very small 'patch') for you.
-
Thank Gertjan!
-
The problem was ?
-
-
The problem was ?
if ($username = "unauthenticated") { // In captiveportal.inc#L2071 has only one equal symbol
$mac['descr'] = "Auto-added";
} else {
$mac['descr'] = "Auto-added for user {$username}";Thank Gertjan !
-
_if ($username = "unauthenticated") { // In captiveportal.inc#L2071 has only one equal symbol
That was fixed in 2.2.1._