(RADIATOR) Accounting in sql and local file authentication

Luis Marquez luism at digitalpath.net
Thu Mar 11 12:50:00 CST 2004


Thanks for the advice! I removed the handler and left AuthByPolicy 
ContinueAlways and now everything seems to work.

-Luis


Frank Danielson wrote:
> Luis-
> 
> You have a hanlder inside of a realm. This won't work. You should not
> normally use realms and handlers inside of the same config. Try something
> like this example. There is a good discussion of the bahviour of handlers in
> section 6.16 of my Radiator manual.
> 
> <AuthBy SQL>
> 	 Identifier Remote-SQL
> 	 DBSource dbi:Oracle:dbname
> 	 DBUsername username
> 	 DBAuth pword
> 	 # Disable authentication
> 	 AuthSelect
> 
> 	 # But do accounting
> 	 AccountingTable ACCOUNTING
> 	 AcctColumnDef	USERNAME,User-Name
> 	 AcctColumnDef	TIME_STAMP,Timestamp,integer
> </AuthBy>
> 
> <AuthBy FILE>
> 	 Identifier Local-File
> 	 Filename %D/users
> 	 # Generate MPPE keys to encrypt pptp vpns
> 	 AutoMPPEKeys Yes
> </AuthBy>
> 
> <Handler Realm=blahblah.com>
>          RewriteUsername tr/A-Za-z0-9_.+&-@//cd
> 
>          AuthByPolicy ContinueAlways
>          AuthBy Remote-SQL
>          AuthBy Local-File
>          
>          # Log accounting to the detail file in LogDir
> 	 AcctLogFileName %L/detail
> 
> </Handler>
> 
> </Handler>
>          <AuthBy FILE>
>                  AutoMPPEKeys yes
>                  Filename %D/static/users
>          </Authby>
> 
>          AcctLogFileName %L/detail
> </Handler>
> 

--
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.


More information about the radiator mailing list