i have installed freeradius and set up mikrotik to use accounts in radius to login via telnet ssh. default group is read. i can not find any info how to set up radius to assign some users to group full. i am using freeradius + postgres backend.
have any 1 tried it ?
radreply table (i have tried changing Mikrotik-Group to Group and operator to = and == with no effect)
id | username | attribute | op | value
----+----------+----------------+----+-------
2 | kostek | Mikrotik-Group | := | 1
from dictionary.mikrotik (shipped with freeradius)
# this attribute is unused
ATTRIBUTE Mikrotik-Group 3 string
freeradius says that Mikrotik-Group is no longer used (confusing)
in witch table should i input this value (radreply, radgroupcheck, radgroupreply) and how it should look like (operator)?
maybe you could post me some debug infor from mikrotik user manager and mikrotik device that speaks with user manager. maybe then i would figure out something
The ‘radusergroup’ table is only used inside FreeRADIUS for assigning RADIUS users to ‘RADIUS groups’, and then returning a set of replies to said group. ie:
[sql] expand: SELECT id, username, attribute, value, op FROM radreply WHERE username = '%{SQL-User-Name}' ORDER BY id -> SELECT id, username, attribute, value, op FROM radreply WHERE username = 'ukasz' ORDER BY id
rlm_sql_mysql: query: SELECT id, username, attribute, value, op FROM radreply WHERE username = 'ukasz' ORDER BY id
rlm_sql: Failed to create the pair: Invalid octet string "full" for attribute name "Mikrotik-Group"
rlm_sql (sql): Error getting data from database
i have also tried with MT-Group and same error
do i need to have anything in radusergroup table ?
ii freeradius 2.1.10+dfsg-2 a high-performance and highly configurable RADIUS server
ii freeradius-common 2.1.10+dfsg-2 FreeRADIUS common files
ii freeradius-mysql 2.1.10+dfsg-2 MySQL module for FreeRADIUS server
ii freeradius-utils 2.1.10+dfsg-2 FreeRADIUS client utilities
ii libfreeradius2 2.1.10+dfsg-2 FreeRADIUS shared library
ii libradius1 0.3.2-13 /bin/login replacement with RADIUS. Shared lib to used by programs
ii radiusclient1 0.3.2-13 /bin/login replacement which uses the RADIUS protocol for authentication
OMG it is so SICK. i have found that in debian not all dictionaries are included in directory /usr/share/freeradius/dictionary file (witch holds $INCLUDE lines per vendor dictionary)
i was missing $INCLUDE dictionary.mikrotik line
any way thx for your quick response. much apicieated.