			ICRADIUS FAQ
 
Here are some of the most commonly asked questions on the mail list,
and the answers to them.
 
 
q1     I HAVE INSTLLED MYSQL SUCCESSFULLY, BUT I GET A SEGMENTATION
        FAULT WHEN I TRY TO RUN ICRADIUS.
a1 
This is most likely a problem with the dictionary.usr file.  If you
use USR NAS's, then you must do the following to correct the problem:
 
        BEFORE you try to load dictionary.usr execute the following
        queries.
 
        NOTE: If you have already loaded the file, then do this.
                DELETE FROM dictionary;
                This will remove everything from the table.
 
        insert into dictionary values ('','VENDOR','USR','429','','');
 
        Then run the dictimport on dictionary.usr
 
        Then execute the following sql queries:
 
        update dictionary set vendor = "USR" where type = "ATTRIB_NMC";
        update dictionary set type = "ATTRIBUTE" where type = "ATTRIB_NMC";
 
        Now go ahead and run dictimport on dictionary.
 


 
q2     WHEN I RUN ICRADIUS I GET THE FOLLOWING ERROR.
                "could not find libmysqlclient.so.6"
a2 
This is a problem with /etc/ld.so.conf  To fix it, you must add a line
to this file that specifies the path to libmysqlclient.so.6  Then run
ldconfig as root.


 
 
q3     WHEN I UPGRADED FROM 0.8 TO 0.9 I GET A SEGMENTATION FAULT
 
a3
First if you use USR equipment, check 6.1 above. This could also be cause
by an old table nas table definition. Execute these queries to fix the problem.
This will also update the radacct table, since it has changed as well.
 
        mysql> alter table nas add column community varchar(50);
        mysql> alter table nas add column snmp varchar(10);
        mysql> update nas set community = 'public', snmp = 'on';
 
Fix radacct table:
        mysql> alter table radacct change column AcctDelayTime AcctStartDelay int(12);
        mysql> alter table radacct add column AcctStopDelay int(12);
        mysql> update radacct set AcctStopDelay = 0;




q4	I HAVE READ ALL THE DOCUMENTATION AND I STILL CANNOT GET DEFAULT ENTRIES TO WORK

q4
Below is an example of what a setup using DEFAULT looks like:

        radgroupcheck
	+------+------------+-------------------+---------------+
	| id   | GroupName  | Attribute         | Value         |
	+------+------------+-------------------+---------------+
	| 1    | DEFGROUP   | Auth-Type         | System        |
	| 2    | DEFGROUP   | Simultaneous-Use  | 1             |
	+------+------------+-------------------+---------------+

        radgroupreply
	+------+------------+-------------------+---------------+
	| id   | GroupName  | Attribute         | Value         |
	+------+------------+-------------------+---------------+
	| 1    | DEFGROUP   | Framed-IP-Address | 1.2.3.4       |
	| 2    | DEFGROUP   | Framed-IP-NetMask | 255.255.255.0 |
	+------+------------+-------------------+---------------+

	usergroup
	+----+----------+-----------+
	| id | UserName | GroupName |
	+----+----------+-----------+
	|  1 | DEFAULT  | DEFGROUP  |
	+----+----------+-----------+

This will check the system /etc/passwd for the user and if they authenticate will use the entries from
radgroupreply as the reply items to the NAS.




q5	WHY CAN I NOT ADD NAS OR REALM DEFINITIONS WITH radius.cgi 

a5
Because I have not had a chance to write this code yet! Hopfully it will be done soon!




q6	IS THERE AN ARCHIVE OF THE MAILING LIST ANYWHERE

a6
YES! Its at: http://radius.innercite.com/archive





q7	MY LOG SAYS 'No username []' AND USERS CANNOT AUTHENTICATE

a7
You probably forgot to load the dictionary files into the database. Use the suppied script
dictimport.pl to load the neccesary dictionary files.





q8	AFTER I LOGIN TO THE radius.cgi IT SAYS SESSION EXPIRED

a8
The cookie is failing to be set in your browser. Make sure $cookiedomain
is set to the domain of your webserver. Ex: $cookiedomain = ".mydomin.com";

Also make sure your browser is set to accept cookies.





q9	I GET 'MYSQL Error: Cannot get result' AFTER ANY SQL STATEMENTS AND THEN radiusd DIES

a9
There was a change the MySQL API that caused this problem on
mysql >= 3.22.24. The fix has been incorporated into ICRADIUS  0.12.





q10	I AM TRYING TO ADD A REALM AS 'LOCAL' BUT ITS NOT WORKING

a10
You need to have a nas table entry with the nasname and shortname of 'LOCAL'





q11	WHAT IS THE FORMAT FOR THE 'Expiration' and 'Activation' ATTRIBUTE?

a11
Its is 3 letter month, 2 digit day, and 4 digit year. Ex: 'Mar 07 2000'





