Send Reject When User Logged In Already

Ivan Kalik tnt at kalik.net
Mon Nov 2 13:09:13 CET 2009


> Here is the debug output:
>
> ......
> ++[mschap] returns ok
> +- entering group session {...}
> [sql]   expand: %{User-Name} -> usertr2048
> [sql] sql_set_user escaped user --> 'usertr2048'
> [sql]   expand: SELECT COUNT(*)                              FROM
> radacct                              WHERE username =
> '%{SQL-User-Name}'                              AND acctstoptime IS
> NULL -> SELECT COUNT(*)                              FROM radacct
>                         WHERE username = 'usertr2048'
>             AND acctstoptime IS NULL
> rlm_sql (sql): Reserving sql socket id: 1
> [sql]   expand: SELECT radacctid, acctsessionid, username,
>                    nasipaddress, nasportid, framedipaddress,
>                      callingstationid, framedprotocol
>               FROM radacct                                WHERE
> username = '%{SQL-User-Name}'                                AND
> acctstoptime IS NULL -> SELECT radacctid, acctsessionid, username,
>                            nasipaddress, nasportid, framedipaddress,
>                              callingstationid, framedprotocol
>                       FROM radacct
> WHERE username = 'usertr2048'                                AND
> acctstoptime IS NULL
> checkrad: Net::Telnet 3.00+ CPAN module not installed
> rlm_sql (sql): Released sql socket id: 1
> [sql] Failed to check the terminal server for user 'usertr2048'.
> ++[sql] returns fail
> +- entering group post-auth {...}
> .......
>
> So it says checkrad: Net::Telnet 3.00+ CPAN module not installed.
> Meanwhile the radutmp line in session section of
> /sites-available/default file is commented out, sql line is in charge.

If you don't want checkrad.pl to check with NAS (ie only look in the
radacct table) set nastype as other in clints.conf.

Ivan Kalik
Kalik Informatika ISP




More information about the Freeradius-Users mailing list