Re: Sending SyslogIdent value to Login.html
"Colin White" <[email protected]> Fri, 30 Jun 2006 10:17:09 +0100
| Newsgroups | gmane.network.nocat |
|---|---|
| Message-ID | <[email protected]> |
Are you attempting to identify the access point / gateway that a user is logging in from? On 6/30/06, LondonCowgirl E <[email protected]> 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 > [email protected] > http://lists.nocat.net/mailman/listinfo/nocat > -- Colin A. White --- E : [email protected] M : +44 (0)7973 198931 W : http://colin.trematon.com