I know you can add the username and password you use to register your drupal account to a second database using hook_user (module_name_user) by adding
$db_url['default'] = 'mysql://username:password@localhost/databasename';
$db_url['otherdb'] = 'mysql://username:password@localhost/databasename';
to the settings.php file and switching databases and using your sql statement to add the proper information. What I want to know is if something similar can be used when you are logging in so that if the drupal login is correct it will switch databases to the otherdb and make sure it is the same then log you in. I am assuming it would be with hook_acct_login_validate. What I want to do is do this so once you register on the drupal site when you login it will log you in to drupal as well as a freeradius server and be the portal for both. And I can later get the limits working so it would show the user time on line and upload/download bandwidth. This is for internal use to limit bandwidth and I already have the restrict_ip to limit it to 192.168.1.0/24 addresses. I thought about hotspot module but I am trying to get it to work with DD-WRT -> chillispot -> freeradius -> mysql. Any help or suggestions on this would be greatly appreciated.