Jump to content

Recommended Posts

Posted

Доброго дня!

Начинаю все с нуля. Сношу радиус, удаляю /etc/raddb, устанавливаю снова. /etc/raddb - девственный. Радиус запускается, ждет соединений. При запуске raduis -X вижу в первых же строках:

including dictionary file /usr/share/freeradius/dictionary

В этом файле, в числе прочего, есть $INCLUDE dictionary.dlink. Содержимое dictionary.dlink:

# -*- text -*-


# Copyright (C) 2015 The FreeRADIUS Server project and contributors
##############################################################################
#
# D-Link Vendor Specific Attributes Dictionary
#
# Created by Sylph Lin <sylph.lin@gmail.com>
#
# Version $Id: fcbfce088111094e6bd9dc9b4ae72215b181e141 $
#
##############################################################################

VENDOR Dlink 171

BEGIN-VENDOR Dlink

ATTRIBUTE Dlink-User-Level 1 integer
ATTRIBUTE Dlink-Ingress-Bandwidth-Assignment 2 integer
ATTRIBUTE Dlink-Egress-Bandwidth-Assignment 3 integer
ATTRIBUTE Dlink-1p-Priority 4 integer
ATTRIBUTE Dlink-VLAN-Name 10 string
ATTRIBUTE Dlink-VLAN-ID 11 string
ATTRIBUTE Dlink-ACL-Profile 12 string
ATTRIBUTE Dlink-ACL-Rule 13 string
ATTRIBUTE Dlink-ACL-Script 14 string

VALUE Dlink-User-Level User-Legacy 1
VALUE Dlink-User-Level User 3
VALUE Dlink-User-Level Operator 4
VALUE Dlink-User-Level Admin 5
VALUE Dlink-User-Level Power-User 6
VALUE Dlink-User-Level Admin-Legacy 15

END-VENDOR Dlink

Если в этом файле вписать всякую чушь, raduis -X ругается:

Errors reading dictionary: dict_init: /usr/share/freeradius/dictionary.dlink[14] invalid entry

То есть файл радиусом читается.
Добавляю в /etc/raddb/users (симлинк на /etc/raddb/mods-config/files/authorize):

user Cleartext-Password := "userpass"
Dlink-User-Level = 3

Получаю:

# Instantiating module "files" from file /etc/raddb/mods-enabled/files
reading pairlist file /etc/raddb/mods-config/files/authorize
/etc/raddb/mods-config/files/authorize[2]: Parse error (check) for entry Dlink-User-Level: Invalid attribute name
Failed reading /etc/raddb/mods-config/files/authorize
/etc/raddb/mods-enabled/files[9]: Instantiation failed for module "files"

Где что не так???
Posted
В 17.04.2021 в 17:55, orlik сказал:

отступ  забыли, должно быть


user Cleartext-Password := "userpass"
     Dlink-User-Level = 3

 

Вот спасибо, добрый человек! Неделю с этой стеной бодался!

Posted
14 часов назад, metalsoft сказал:

Вот спасибо, добрый человек! Неделю с этой стеной бодался!

Вот ещё кстати интересно, а есть ли возможно не в открытом виде (Cleartext-Password) пароли хранить? Или какой то модуль нужен?

 

 

Posted
16 hours ago, hsvt said:

Вот ещё кстати интересно, а есть ли возможно не в открытом виде (Cleartext-Password) пароли хранить? Или какой то модуль нужен?

Можно конечно. google://freeradius users sha

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