Jump to content

Recommended Posts

Posted (edited)

Добрый день!!

Настраиваю FreeRadius2 , но что то не выходит аутентификация по chap, в логах такая ошибка

 

    Thu May 21 09:43:35 2009 : Info: Invalid operator for item Service-Type: reverting to '=='
    Thu May 21 09:43:35 2009 : Auth: Login incorrect (rlm_chap: Clear text password not available): 
    [test/<CHAP-Password>] (from client 212.212.32.121 port 262 cli 172.16.0.129)

 

 

В файле /usr/local/etc/raddb/modules/chap прописал следующее

 

    chap {
            authtype = CHAP}

 

 

В файле /usr/local/etc/raddb/hints

 

    DEFAULT Suffix == ".ppp", Strip-User-Name = Yes
            Hint = "PPP",
            Service-Type == Framed-User,
            Framed-Protocol == PPP

 

 

Юзер прописан так файле /usr/local/etc/raddb/users

 

    script-test User-Password  == "test", Pool-Name := "private_ip_pool"

 

 

Вывод Radiusd -X относительно chap

 

    including configuration file /usr/local/etc/raddb/modules/chap
    Module: Linked to module rlm_chap
     Module: Instantiating chap

Edited by dm765
Posted

Осталась только вот эта ошибка

Thu May 21 09:43:35 2009 : Auth: Login incorrect (rlm_chap: Clear text password not available): 
[test/<CHAP-Password>] (from client 212.212.32.121 port 262 cli 172.16.0.129)

Posted (edited)
Осталась только вот эта ошибка

Thu May 21 09:43:35 2009 : Auth: Login incorrect (rlm_chap: Clear text password not available): 
[test/<CHAP-Password>] (from client 212.212.32.121 port 262 cli 172.16.0.129)

А как хранятся пользователи/пароли? CHAPу нужны нешифрованные пароли или в обратимом хеше.

Edited by vmv4
Posted

Пользователи хранятся файле /usr/local/etc/raddb/users

 

script-test User-Password  == "test", Pool-Name := "private_ip_pool"

 

Пробовал так, не помогло

script-test Auth-Type := CHAP, Cleartext-Password == "test", Pool-Name := "private_ip_pool"

 

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