Ascend Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: (ASCEND) radiusdbm file and reading and writing
On Sat, Jan 17, 1998 at 07:14:55PM -0500, reed wade wrote:
>
>
> that's actually on my list of stuff to do "real soon now"
>
> the key/content pairs are pretty straightforward:
>
> username\0 -> password line\nRest of entry (no newlines)\0
>
> so, it should be easy to write a perl script to poke around
> in the database
Hmm, but would result in a DBM-only solution. DBM is weird enough to
make problems on machines with real locking and the DB patches from
this list make radiusd use a better lookup engine than DBM (GDBM may
have worked as well but there never was a patch made available).
IMHO the solution of choice is a set of m4 templates and local hacks
and a source file with a simple syntax aka
HACK(radius-outgoing-ip-fake-for-callback.m4)dnl
BANNER(`banner.m4')dnl
ROUTERCLID(`bla-gate', `123445566', `123.45.67.89', `255.255.255.240')dnl
ROUTERCLID(`foo-gate', `33443322', `123.33.44.88', `255.255.255.0')dnl
POOLUSER(`us1234', `secret', `1')dnl
POOLUSER(`us2345', `nada', `1')dnl
DEFAULT(`defunix.m4')dnl
which is then exploded into real radius source by m4 with help of a number
of template definitions. The definition of ROUTERCLID would create two
profiles, the dial-in and the dial-out profile, it would enter the
appropriate route into the route-n profile and split this one after
maybe 10 routes. After the user file is built it is db[m]ified by
builddb[m] and ready for use. To change a parameter globally you just
change it in the template. Finally make(1) can be used to keep everything
up to date smoothly. Doesn't sound too complicated, does it ? And a concept
like this has made sendmail easy to set up.
--
Kanther-Line: PGP SSH IDEA MD5 GOST RIPE-MD160 3DES RSA FEAL32 RC4
+-o-+--------------------------------------------------------+-o-+
| o | \\\- Brain Inside -/// | o |
| o | ^^^^^^^^^^^^^^ | o |
| o | Andre' Beck (ABPSoft) beck@ibh-dd.de XLink PoP Dresden | o |
+-o-+--------------------------------------------------------+-o-+
++ Ascend Users Mailing List ++
To unsubscribe: send unsubscribe to ascend-users-request@bungi.com
To get FAQ'd: <http://www.nealis.net/ascend/faq>
Follow-Ups:
References: