rlm_expr(5) FreeRADIUS Module rlm_expr(5)NAME
rlm_expr - FreeRADIUS Module
DESCRIPTION
The rlm_expr module allows the server to perform limited mathematical calculations. This module is not called directly in any section, it
is invoked through the dynamic expansion of strings.
For example, some NAS boxes send a NAS-Port attribute which is a 32-bit number composed of port, card, and interface, all in different
bytes. To see these attributes split into pieces, you can have an entry in the 'users' file like:
DEFAULT
Vendor-Interface = `%{expr: %{NAS-Port} / (256 * 256)}`,
Vendor-Card = `%{expr: (%{NAS-Port} / 256) %% 256}`,
Vendor-Port = `%{expr: %{NAS-Port} %% 256}`
where the attributes Vendor-Interface, Vendor-Card, and Vendor-Port are attributes created by either you or a vendor-supplied dictionary.
The methematical operators supported by the expression module are:
+ addition
- subtraction
/ division
%% modulo remainder
* multiplication
& boolean AND
| boolean OR
() grouping of sub-expressions
NOTE: The modulo remainder operator is '%%', and not '%'. This is due to the '%' character being used as a special character for dynamic
translation.
NOTE: These operators do NOT have precedence. The parsing of the input string, and the calculation of the answer, is done strictly left to
right. If you wish to order the expressions, you MUST group them into sub-expression, as shown in the previous example.
All of the calculations are performed as unsigned 32-bit integers.
CONFIGURATION
modules {
...
expr {
}
...
}
...
instantiate {
...
expr
...
}
SECTIONS
instantiate
FILES
/etc/raddb/radiusd.conf
SEE ALSO radiusd(8), radiusd.conf(5)AUTHOR
Chris Parker, cparker@segv.org
5 February 2004 rlm_expr(5)
Check Out this Related Man Page
rlm_always(5) FreeRADIUS Module rlm_always(5)NAME
rlm_always - FreeRADIUS Module
DESCRIPTION
The rlm_always module provides a simple way to "always" return a value during the processing of a configuration section. The module does
nothing other than return a configured value.
The main configuration item to be aware of is:
rcode This module will always return with the rcode specified. The default, if none specified is: fail (RLM_MODULE_FAIL).
The valid options are:
reject RLM_MODULE_REJECT
fail RLM_MODULE_FAIL
ok RLM_MODULE_OK
handled
RLM_MODULE_HANDLED
invalid
RLM_MODULE_INVALID
userlock
RLM_MODULE_USERLOCK
notfound
RLM_MODULE_NOTFOUND
noop RLM_MODULE_NOOP
updated
RLM_MODULE_UPDATED
CONFIGURATION
modules {
...
always ok {
rcode = ok
}
...
}
...
authorize {
...
redundant {
sql1 # try to find the user in sql1
sql2 # try to find the user in sql2
ok # if still not found, it's OK.
}
...
}
SECTIONS
authorization, authentication, postauthentication, preaccounting, accounting, preproxy, postproxy
FILES
/etc/raddb/radiusd.conf
SEE ALSO radiusd(8), radiusd.conf(5)AUTHOR
Chris Parker, cparker@segv.org
3 February 2004 rlm_always(5)
I've been successfully running a daily cron script to backup certain things on my server but just recently I started getting input/output errors for everything. For each directory the script tries to backup I now get this:
cp: accessing `/mnt/backup/**dir**/': Input/output error (8 Replies)
hi ,
i m new to unix and i don no how to print this format
i have output file like
THE DOMAIN NAME VPORCL01 FOR THE HOSTNAME Ram-pc
Port=1533
Port=9000
Listener Port=9100
THE DOMAIN NAME VPORCL02 FOR THE HOSTNAME Ram-pc
Port=7000
Port=9000
Listener Port=9100
but i sholud print... (7 Replies)
Any help appreciated. I am connecting (FTP) to a NAS PRO box that is currently installed on one of our subnets in Hong Kong from a Solaris
system running Solaris 10 (our backup server). The NAS box has a backup job that backs up all user documents locally. I am trying to ftp the docs from the NAS... (4 Replies)
Hi,
I"m trying to achieve the following:
I have a NAS which holds all my pictures, and have it mounted on my xbmc as a network share. I want to automatically synchronize my pictures (NAS -> xbmc, one direction).
But, during the synchronization I want to resize the pictures to make them... (7 Replies)
Hi, I'm new to Solaris 11. The goal is to set up a ZFS raid-Z2 NAS.
These are the instructions I've been trying to follow, with no luck:
"Setting Up an OpenSolaris NAS Box: Father-Son Bonding"
(not allowed to post URL)
Issues:
1) Root access is evidently required but I don't... (8 Replies)
Hello,
I am planning to build a NAS server next week and i was wondering which OS to use.
As i see the two most common are FreeNAS and Ubuntu server + samba.
What do you think?Do you hava any experience on that?Any other idea?
Thanks! (5 Replies)
Hi,
I am facing chgrp issue for a directory on a NAS mounted partation.
issue details :
user1 belongs to two groups grp1(primary) and grp2(secondary) not able to change directory group to secondary.
WORKING on /tmp
#mkdir /tmp/a
#ls -ld /tmp/a
drwxr-xr-x 2 user1 grp1 117 Mar 24... (7 Replies)
All,
I wanted to get others opinions on providing root access to vendors. I have a vendor that is claiming to need full root sudo access to complete a one time system set up for their software. The system is on our corporate network and we never provide this level of access. Not only that,... (7 Replies)
I'm trying to get into the world of home file servers (or an NAS, I'm not really sure what the difference is) and there's a lot of information on how to start. There are a few things that I would like to see, get a feel for, and hear other peoples' opinions on.
What are some of the best... (5 Replies)
In AIX servers, for mounting NAS mount points only 1021 1022 1023 are used as source ports on more than 300 servers while destination port on storage end is 2049, is there any settings on servers where these ports are defined for mounting NAS mount points? Any body faced this scenario?
Thanks (16 Replies)
Good Morning,
I have 2 Solaris 9 machines sharing a NAS, and need to have users to be able to log in from the 2nd machine and get to all of their files on the NAS that were created on the 1st machine.
So far its working ok, but when users log in to the second machine, their user IDs show... (20 Replies)