[ previous ] [ next ] [ threads ]
 
 From:  "Alex M" <radiussupport at lrcommunications dot net>
 To:  "Monowall Support List" <m0n0wall at lists dot m0n0 dot ch>
 Subject:  RE: [m0n0wall] How to communicate with Mono
 Date:  Sat, 23 Feb 2008 13:27:52 -0500
Wow that hell more then a sample code. Now I have to striped it down to the
basics :)
But thanks for sharing ;-)

-----Original Message-----
From: wildcat [mailto:wildcat at espix dot org] 
Sent: Monday, February 18, 2008 7:24 AM
To: Alex M
Subject: Re: [m0n0wall] How to communicate with Mono

Sample code with phpcurl:

To put config into m0n0wall:
http://m0n0wall-cmi.sourceforge.net/docs/developers/__filesource/fsource_obj
ects_config_libconfig.obj.php.html#a1281

To get config from m0n0wall:
http://m0n0wall-cmi.sourceforge.net/docs/developers/__filesource/fsource_obj
ects_config_libconfig.obj.php.html#a1350


cheers,


Alex M wrote:
> cURL seams to be what we need :) I'll check if its installed on my
servers. 
> Maybe you can post sample code ;) 
> 
> -----Original Message-----
> From: wildcat [mailto:wildcat at espix dot org] 
> Sent: Saturday, February 16, 2008 6:50 PM
> To: Alex M
> Subject: Re: [m0n0wall] How to communicate with Mono
> 
> Alex M wrote:
> > One of the way to do it is to use ftp like request to get access to mono
> box
> > (ex: http://usernam:password at monobox dot com/system_advanced.php)
> > 
> > Thtas wht im trying to do now to manage CP user. Unfotrunatly that only
> > works under linux bash scripting. I'm still trying to make it work under
> > PHP.
> 
> Should be possible with CURL lib in php like I'm doing the
> backup/restore in m0n0wall-CMI.
> 
> see http://php.net/curl for more info...
> 
> 
> 
> > 
> > However if u know ASP.net then u can do it quite easy.
> > 
> > -----Original Message-----

> > Sent: Friday, February 15, 2008 10:56 AM
> > To: Lee Sharp; m0n0wall at lists dot m0n0 dot ch
> > Subject: Re: [m0n0wall] How to communicate with Mono
> > 
> > Yes, it would be a possibility, but i prefer to use the local database
of
> > Mono instead of the another-machine-in-the-infrastructure radius one.
The

> > third-application decides we need a new user, it will ask for the user
to
> my
> > app. and this one to Mono. The same if we need to delete a CP user, etc.
> > 
> > So that i was thinking of using HTTP commands but perhaps, as Wildcat
> says,
> > the backup/restore XML configuration file should be an easier idea,
> > althought a little bit more radical too :)
> > 
> > Carlos.
> > 
> > 2008/2/15, Lee Sharp <leesharp at hal dash pc dot org>:
> > >

> > > > Hello,
> > > >
> > > > i would like to develop an interface to reproduce the captive portal
> > > options

> user,
> > > Mono
> > > > will do this. How should i interact with Mono, using the HTTP
commands
> > > or is
> > > > there a better way?
> > >
> > >
> > > It sounds like what your are trying to do is normally done with a
radius
> > > database, and any kind of radius tool.
> > >
> > >
> > >                         Lee
> > >
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: m0n0wall dash unsubscribe at lists dot m0n0 dot ch
> > For additional commands, e-mail: m0n0wall dash help at lists dot m0n0 dot ch
> 
> -- 
> Gouverneur Thomas - wildcat
> http://thomas.gouverneur.name
> http://www.espix.org
> PGP key ID: 0x35E698C2
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: m0n0wall dash unsubscribe at lists dot m0n0 dot ch
> For additional commands, e-mail: m0n0wall dash help at lists dot m0n0 dot ch

-- 
Gouverneur Thomas - wildcat
http://thomas.gouverneur.name
http://www.espix.org
PGP key ID: 0x35E698C2