Posted: Fri Jul 28, 2006 13:47 Post subject: Captive portal, ipkg, jffs, and other headaches
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
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
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
thanks, simba
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
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).
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