Jump to content

Recommended Posts

Posted

Здравствуйте!

Установлена и настроена связка mp5+freeradius на FreeBSD. очень хочется использовать для авторизации юзеров свою програмку, как сделать что бы радиус отправлял логин/пароль этой програмуле, я моя програмка отвечала 1(если правильные логин/пароли) плюс необходимые данные отсылала(например ip-адрес при конекте). или же 0 - если авторизация не прошла

Posted

savio

решение идеалогически неверное - форк на каждый запрос.

 

 

И прямо из конфига фрирадиуса

 #
#  The Perl script to execute on authorize, authenticate,
#  accounting, xlat, etc.  This is very similar to using
#  Exec-Program-Wait = "/path/foo.pl", but it is persistent,
#  and therefore faster.
#

 

      #
        exec {
                wait = yes
                input_pairs = request
        }

        #
        #  This is a more general example of the execute module.
        #
        #  This one is called "echo".
        #
        #  Attribute-Name = `%{echo:/path/to/program args}`
        #
        #  If you wish to execute an external program in more than
        #  one section (e.g. 'authorize', 'pre_proxy', etc), then it
        #  is probably best to define a different instance of the
        #  'exec' module for every section.
        #

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 и с Политикой конфиденциальности.