I am sure that this is a very basic question, but I cannot seem to find a decent answer using google search: I have a large users.db file with a dummy user at the start and at the end. I basically want to write a perl script that will check that both these users are present in the users.db file, thus ensuring that my users.db file built fine with rlm_dbm_parse. I thought of just using radclient to do an auth for these 2 users, but I cannot find any docs on what return codes to check for when auth is ok or failed. I am sure I am missing something obvious here, but I am fairly new to radius and any suggestions would be greatly appreciated. Thanks! Koos -- View this message in context: http://freeradius.1045715.n5.nabble.com/Check-that-user-auths-ok-tp5001077p5... Sent from the FreeRadius - User mailing list archive at Nabble.com.
koos wrote:
I have a large users.db file with a dummy user at the start and at the end. I basically want to write a perl script that will check that both these users are present in the users.db file, thus ensuring that my users.db file built fine with rlm_dbm_parse.
There's no need to use rlm_dbm. In 2.1.x, the "users" file is hashed in memory for speed. It is *very* fast, and it can be re-loaded on the fly. And why are you using these dummy users to check if the DB built with rlm_dbm_parse? Why not look at the output of rlm_dbm_parse? Alan DeKok.
participants (2)
-
Alan DeKok -
koos