Re: Customization of RADIUS reply

2012-09-18 Thread Alan DeKok
Václav Pernica wrote: > I tried to use unlang in dialup.conf or radiusd.conf, It helps to read the documentation. You can't use unlang like that. The places where it *can* be used are documented. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Re: Customization of RADIUS reply

2012-09-18 Thread Václav Pernica
Hello Alan DeKok.wrote: > > Not easily in 2.2. > What is the "not easy" approach? (in general) Fajar wrote: > > see "man unlang" for details. Depending on what you need and how you > configure your system, you might also be able to use Realm instead of > User-Name, or use regex for co

Re: Customization of RADIUS reply

2012-09-18 Thread Alan DeKok
Václav Pernica wrote: > It works now, I just changed the number to lower value. NO. Don't do that. All of the attribute numbers are allocated, and have pre-existing meanings. Re-using a number is WRONG. It can cause all kinds of problems. > And you are right, it is written there (even by ca

Re: Re: Customization of RADIUS reply

2012-09-18 Thread Fajar A. Nugraha
On Tue, Sep 18, 2012 at 2:44 PM, Václav Pernica wrote: > One more question. Is there some easy way, how to use different SQL queries > (authorize_check_query, authorize_reply_query) depending on the user name > prefix or suffix. > > E.g.: > user_name@domain1 -> use SQL queries 1 > user_name@doma

Re: Re: Customization of RADIUS reply

2012-09-18 Thread Václav Pernica
Hello Alan Thanks for your hint. > Read the file you edited: raddb/dictionary It works now, I just changed the number to lower value. And you are right, it is written there (even by capitals..) One more question. Is there some easy way, how to use different SQL queries (authorize_check_qu

Re: Customization of RADIUS reply

2012-09-17 Thread Alan DeKok
Václav Pernica wrote: > I’m configuring the FreeRADIUS together with the Oracle DB. I need to > get the user authenticated and in the reply provide the parameter > "mailbox_fullname" from the DB. Does the RADIUS client understand that attribute? > The Oracle DB has for my purpose only one view