[NoCat] Sending SyslogIdent value to Login.html
Colin White
whiteca at gmail.com
Fri Jun 30 02:17:09 PDT 2006
Are you attempting to identify the access point / gateway that a user
is logging in from?
On 6/30/06, LondonCowgirl E <london_cowgirl at hotmail.com> wrote:
> I would like to send the SyslogIdent value found in the nocat.conf file (on
> the a/p) to the login.html file. I can then set it as a hidden form value
> and pass it along to my html.
>
> To do this, I edited the Passive.pm file residing on the server as follows:
>
> sub capture_params
> {
> my ( $self, $peer, $request ) = @_;
> return {
> mac => $peer->id,
> token => $peer->token,
> redirect => $request,
> timeout => $self->{LoginTimeout},
> ident => $self->{SyslogIdent}, <----NEW LINE ADDED HERE
> gateway => $peer->socket->sockhost . ":$self->{GatewayPort}"
> };
> }
>
> I also edited the login.html file to include the following line:
>
> <input type="hidden" name="ident" value="$ident">
>
> The "$ident" value is always empty, so something isn't working correctly.
>
> Can anyone assist me with this? Or suggest another way to pull the
> SyslogIdent value from the access point to the login.html page.
>
> Any assistance greatly appreciated.
>
> Carla
>
> _________________________________________________________________
> Be the first to hear what's new at MSN - sign up to our free newsletters!
> http://www.msn.co.uk/newsletters
>
>
> _______________________________________________
> NoCat mailing list
> NoCat at lists.nocat.net
> http://lists.nocat.net/mailman/listinfo/nocat
>
--
Colin A. White
---
E : whiteca at gmail.com
M : +44 (0)7973 198931
W : http://colin.trematon.com
More information about the NoCat
mailing list