Hello Lee Lan -

> 
> I am using LDAP for authentication.  Right now the accounting information is
> on flat detail files.  I would like to push these accounting info into an
> external database, while still have LDAP to do the authenticatio.  I am
> using mySQL.  Hope would I do that?
> 

It depends somewhat on what else you are doing in your configuration file, but
it is usually simplest to use Handlers:

# configure AuthBy LDAP clause with Identifier

<AuthBy LDAP2>
        Identifier CheckLDAP
        .....
</AuthBy>

# configure AuthBy SQL with Identifier
# note empty AuthSelect 

<AuthBy SQL>
        Identifier SQLAccountingOnly
        DBSource ....
        DBUsername ....
        DBAuth ....
        AuthSelect
        AccountingTable .....
        AcctColumnDef .....
        ......
</AuthBy>

# Handler for accounting

<Handler Request-Type = Accounting-Request>
        AuthBy SQLAccountingOnly
</Handler>

# Handler for authentication

<Handler>
        AuthBy CheckLDAP
</Handler>

hth

Hugh

-- 
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