Ascend Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (ASCEND) radiusdbm file and reading and writing



-----BEGIN PGP SIGNED MESSAGE-----

On Sat, 17 Jan 1998, Terrelle Shaw wrote:

> Has anyone used anyother way to read and write to the radiusdbm files for
> updating user profiles? I'm looking into writing a frontend to the users
> database file but not sure how to proceed.  Any help would be appreciated..

I once wrote a caching extension to Merit RADIUS to do that - on-the-fly
synchronisation between multiple authentication databases.

Most of the code in builddbm is reusable - pair_parse does all the hard
work of translating back-and-forth from the dictionary. Your program can
just call this to do the syntax checking.

The hardest part is doing database locking between the running daemons and
your updating program. I used semaphores - very fast and very reliable,
much more so than filesystem locks.

- --
Josh Bailey (mailto:jbailey@ascend.com.au)

Regional Technical Specialist, Asia-Pacific  Voice:        +61-3-9656-7071
Ascend Communications, Inc (xtn. 67071)      Fax:          +61-3-9656-7003
Level 38, ANZ Tower, 55 Collins St           Mobile:       +61-417-128-921
Melbourne, Australia                         PGP:    http://pgp.ai.mit.edu


-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv

iQB1AwUBNMKK58yBE5tx+aP1AQHdFgMAjZSJXdVQ9CisSIKJH+qEMYr/3KVR2xYU
/w5qF7iixjISRFm3oWVmIlUzsfRTbUaoWstwmEUl/v7OKBaePAy3Eif1it9xppfu
R5Miet8NLGEfmywbCuw+GsV23pGA9vBb
=5Jir
-----END PGP SIGNATURE-----
++ 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: