Jump to content

Recommended Posts

Posted

Всем привет.

На Freeradius приходти некий параметр в аттрибуте Cisco-AVPair.

Но в одном пакете может быть несколько аттрибутов Cisco-AVPair,

а в sql запросе freeradius отправляет только то, что пришло в первом аттрибуте.

 

Конфиг радиуса (sql.conf):

...

authorize_check_query = "exec auth '%{SQL-User-Name}', '%{Cisco-AVPair}'"

...

 

Вот дебаг:

rad_recv: Access-Request packet from host 10.0.0.1:4916, id=29, length=77

User-Name = "user"

User-Password = ""

Cisco-AVPair = "test"

Cisco-AVPair = "xpgk-routing-request=1"

Processing the authorize section of radiusd.conf

modcall: entering group authorize for request 0

modcall[authorize]: module "preprocess" returns ok for request 0

radius_xlat: 'user'

rlm_sql (pgsql-voip): sql_set_user escaped user --> 'user'

radius_xlat: 'exec auth 'user', 'test' '

...

 

Помогите, как распознать параметр, который приходит в Cisco-AVPair?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...
На сайте используются файлы cookie и сервисы аналитики для корректной работы форума и улучшения качества обслуживания. Продолжая использовать сайт, вы соглашаетесь с использованием файлов cookie и с Политикой конфиденциальности.