Captive portal, ipkg, jffs, and other headaches

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
briansrapier
DD-WRT Novice


Joined: 28 Jul 2006
Posts: 8

PostPosted: Fri Jul 28, 2006 13:47    Post subject: Captive portal, ipkg, jffs, and other headaches Reply with quote
Good morning.

I'm just getting started with DD-WRT. I'm not new to Linux, just this flavor of it...

I have a Linksys WRTSL54GS That I loaded DD-WRT v23 sp1 on and have the basic stuff working. I want to do captive portal authentication, but I want to use an existing Oracle db to do it. The big dilemma is that the db is running on Win2K3 server.

At this point I figured that Chillispot and FreeRADIUS are my better options, but I'm not sure if I'm headed the right direction. My thoughts were to enable Chillispot, FreeRADUIS, and Lighttpd on the router and point FreeRADIUS at the Oracle db on the server to avoid having to purchase a 3rd party RADIUS server to run on Windows. But, my lack of familiarity with DD-WRT has me in a pinch.

First, I wanted to install FreeRADIUS, but ipkg gave me complaints about jffs. So I enabled it and everything is installing under /jffs. OK... Next, I wanted to install the Lighttpd component, just to see if I could get that piece working before I moved onto the Chili config. When I tried to launch Lighttpd from init.d, it can't find the config file because it's looking in /etc/ and not /jffs/etc/. I tried modifying the OPTIONS in /jffs/etc/default/lighttpd and the init.d file to rediect to the proper tree. That, however, failed to work. When I launched it manually:

lighttpd -f /jffs/etc/lighttpd.conf

I get:

lighttpd: can't resolve symbol 'mmap64'

Which, I assume, is related to the /jffs/ problem.

Am I going about this the right way? Although DD-WRT itself appears to be very refined, the documentation seems to be very limited. But, the same goes for Chillispot and FreeRADIUS.

Is this ( DD-WRT:Chillispot:FreeRADIUS:Lighttpd ) possible? Anyone ever tried authenticating from an Oracle DB?

Thanks.

_________________
"An adventure is never an adventure
when it's happening. Challenging
experiences need time to ferment,
and an adventure is simply physical
and emotional discomfort recollected
in tranquility." -- Tim Cahill
Sponsor
Simba
DD-WRT Novice


Joined: 28 Jul 2006
Posts: 4

PostPosted: Fri Jul 28, 2006 15:20    Post subject: Reply with quote
hi...

im also trying to run lighttpd for a while with no success until now :(

i editet all options-files... installed the libs from the dd-wrt-packages (libopenssl, libpcre) - and the only error i get is "Aborted"... without any further information Confused
i already asked in the openwrt-forums and they deleted my post because i asked something about another firmware...

so... really any help is appreciated Rolling Eyes
thanks, simba
briansrapier
DD-WRT Novice


Joined: 28 Jul 2006
Posts: 8

PostPosted: Fri Jul 28, 2006 21:06    Post subject: Reply with quote
Since DD-WRT can be accessed through a browser, it's obvious that there is a webserver already installed:

/usr/sbin/httpd
/etc/config/http-redirect.*

Is there a way to add cgi-bin support and reconfigure it so it can be used for the hotspotlogin.cgi page?

_________________
"An adventure is never an adventure
when it's happening. Challenging
experiences need time to ferment,
and an adventure is simply physical
and emotional discomfort recollected
in tranquility." -- Tim Cahill
briansrapier
DD-WRT Novice


Joined: 28 Jul 2006
Posts: 8

PostPosted: Mon Jul 31, 2006 14:53    Post subject: Reply with quote
Whether this helps anyone else, it remains to be seen, but, I'm posting my notes here...

I've made a little progress with the help of Google and otehr forums.


HTTPD - I found this link somewhat helpful:

http://www.dd-wrt.com/wiki/index.php/WEB_server

It talks about changes to the bundled httpd server, possibly to run Chillispot. The more informative part was the command line switches to use an alternate Server / Document root. I'm still digging for info on the conf settings.

FREERADIUS - is now installed. I had to add the LD_LIBRARY_PATH variable to the /jffs/etc/init.d/radiusd startup script to point to the proper libraries under /jffs (this may be overkill).

LD_LIBRARY_PATH=/lib:/usr/lib:/jffs/lib:/jffs/usr/lib:/jffs/usr/lib/freeradius
export LD_LIBRARY_PATH

Even with these changes, I'm still having startup errors that I haven't been able to yet resolve:

# /jffs/etc/init.d/radiusd start
radiusd: can't resolve symbol 'ctime_r'

Chillispot - I found a guy doing pretty much what I want to do, but using OpenWRT. I plan on PMing him to get his input.

_________________
"An adventure is never an adventure
when it's happening. Challenging
experiences need time to ferment,
and an adventure is simply physical
and emotional discomfort recollected
in tranquility." -- Tim Cahill
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum