Joe,

It's really not that hard.  All you need to do is:
  For each password entry:
   INSERT INTO radcheck (UserName, Attribute, Value) VALUES("USERNAME",
"Crypt-Password", "PASSWORD);

   INSERT INTO usergroup (UserName, GroupName) VALUES("USERNAME",
"GROUPNAME");

Of course you need to setup usergroups, such as:

INSERT INTO radgroupreply (GroupName, Attribute, Value, prio)
VALUES("GROUPNAME", "ATTRIBUTE", "VALUE", 0);

You can also add attributes for each username:
INSERT INTO radreply (UserName, Attribute, Value) VALUES ("USERNAME",
"ATTRIBUTE", "VALUE");

Although, I do have problems with my setup, anyone know if any of this
might be my problem?

Regards,
Josh

> I have a simple question:
> 
> How do I insert a radius user into MySQL's radius tables?  I don't see 
> much documentation out there for this process.  What we're trying to do 
> is create some automated account migration from the flat file to the 
> database, and also automated account setup.  Can anyone help me out?
> 
> Joe



- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to