Hello Aaron -

At 3:56 -0800 01/1/17, Aaron Nabil wrote:
>Is this code in Handler.pm doing the most reasonable thing?  The way it
>works now, if you have a rewrite username that lowercases, people can
>log in muliple times with username, Username, USERNAME, etc.
>
>In our environment, they can also log in multiple times with username and
>[EMAIL PROTECTED]
>
>  # Get the username before any rewriting. Need this to
>  # match users in the session database
>  my $original_username = $p->{OriginalUserName};
>
>...
>
>  $sessdb->add($original_username, $nas_id, $nas_port, $p);
>
>
>Locally I'll probably change it to something like...
>
>  my $original_username = $p->getUserName;
>

The reason it is done this way is to be able to query the NAS(s) in 
the event you have a NasType defined in the Client(s) clause(s). If 
you don't need to query the NAS(s), you can change it to whatever 
suits. That is why we usually suggest that you use an SQL session 
database, because you can redefine the SQL queries to do whatever you 
require.

regards

Hugh

-- 

NB: I am travelling this week, so there may be delays in our correspondence.

Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, Interbiller, TACACS+, PAM, external, etc, etc.
Available on Unix, Linux, FreeBSD, Windows 95/98/2000, NT, MacOS X.

===
Archive at http://www.starport.net/~radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

Reply via email to