The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]




Версия для распечатки Пред. тема | След. тема
Новые ответы [ Отслеживать ]
FreeRADIUS users operators '==' vs ':=', !*! Alliance, 03-Дек-12, 18:11  [смотреть все]
Добрый день, Помогите пожалуйста разобраться с операторами пользователей в FreeRADIUS.
Фаил /etc/raddb/users содержит пользователей для аутентификации.
Пример: shad Cleartext-Password := "test".
В чём разница между оператором ":=" и "==".
Официальная документация больше запутала чем помогла:
Attribute := Value
        Always matches as a check item, and replaces in the  configuration
        items  any    attribute  of  the same name.  If no attribute of that
        name appears in the request, then this attribute is added.
        As a reply item, it has an identical meaning, but  for  the  reply
        items, instead of the request items.
Attribute == Value
        As    a  check item, it matches if the named attribute is present in
        the request, AND has the given value.
        Not allowed as a reply item.
На форумах я встречал и такую запись: shad Auth-Type := Local, User-Password == "test".
Но у меня она не работает. Сервер возвращает Reject.

Спасибо.

  • FreeRADIUS users operators '==' vs ':=', !*! Дум Дум, 08:36 , 04-Дек-12 (1)
    • FreeRADIUS users operators '==' vs ':=', !*! Alliance, 20:15 , 04-Дек-12 (2)
      > http://www.opennet.me/base/cisco/radius.txt.html
      > Там есть

      Спасибо огромное, многие проблемы решил благодаря статье.
      Но вот попробовал использовать следующий метод:
      user    Auth-Type := Local, User-Password == "testing"
      Результат Reject с логом:
      WARNING: Found User-Password == "...".
      WARNING: Are you sure you don't mean Cleartext-Password?
      ...........................................................
      [pap] WARNING! No "known good" password found for the user.  Authentication may fail because of this.
      ++[pap] returns noop

      <man rlm_pap> кое-что прояснил:
      It  is important to understand the difference between the User-Password and Cleartext-Password attributes.  The Cleartext-Password attribute is the "known good" password for the user. Simply  supplying  the  Cleartext-Password  to  the server  will result in most authentication methods working.  The User-Password attribute is the password as typed in by the user on their private machine. The two are not the same, and should be treated very differently.

      Получается что Cleartext-Password нужно использовать вместо User-Password.




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру