Note ¯ Lucent InterNetworking Systems recommends that you create a single user profile and test RADIUS authentication and authorization for that user. If the test is successful, create and test profiles representative of other user types before proceeding to create all your user profiles.
Caution ¯ Do not place comments within a user profile. Comments in a user profile prevent any reply item following the comment from being processed and sent to the client. Place comments either before or after the user profile.
Caution ¯ Modifying the contents of the dictionary file incorrectly can cause RADIUS to fail to authenticate users correctly or cause other problems.
Caution ¯ Do not use white space within a username. In RADIUS 2.1, access-requests are rejected if the username contains a space or tab. If a user enters a username with trailing spaces or tabs, the access-request is rejected.
ann Password = "8f4kv$s", NAS-Port = 23, Group = "engineer"
Note ¯ If no check items are included in the user profile, the user is rejected.
Caution ¯ You must place DEFAULT profiles at the end of the users file. RADIUS stops scanning profiles when a matching DEFAULT profile is found and ignores any user profiles located after a DEFAULT user profile.
Framed-IP-Address = 255.255.255.254,
DEFAULT1 Auth-Type = System, Called-Station-Id = 9255551234
DEFAULT Auth-Type = System, Prefix = "P"
Framed-IP-Address = 255.255.255.254,
DEFAULT Auth-Type = System, Suffix = "%S"
Framed-IP-Address = 255.255.255.254,
Note ¯ Although it is not considered a check item, be sure that the username appears as the first item on the first, or check item, line of the user profile.
To indicate that a user's password is stored in the RADIUS users file, use the Local Auth-Type.
To set the user's password, use the Password check item as shown in the following example line from a user profile:
bob Auth-Type = Local, Password = "ge55ep"
Note ¯ If no Auth-Type is specified in a profile, then the RADIUS server assumes Auth-Type = Local. Typically, you include the Password check item. If you do not include the Password item--that is, if no check items are specified in the profile--then the user is rejected.
To indicate that a user's password is stored in a system password file, use the System Auth-Type:
System can be a password file in UNIX, such as /etc/passwd , /etc/shadow , or a password map in NIS or NIS+. When the RADIUS server receives a username-password pair from the client and the Auth-Type = System, the server queries the operating system to determine if there is a matching username-password pair.
The System Auth-Type is equivalent to the Password = "UNIX" check item in RADIUS server version 1.16, which is also permitted in RADIUS server versions 2.0 and 2.1 for backward compatibility:
To specify that the user's password is to be authenticated by ActivCard, use the ActivCard Auth-Type:
See Chapter 6, "Installing and Configuring ActivCard," for instructions.
To specify that the user's password is to be authenticated by a SecurID ACE/Server, use the SecurID Auth-Type:
To use a SecurID passcode, the RADIUS server must be configured as an ACE/Client and you must have an ACE/Server configured--either on the same or a different host. See Chapter 7, "Installing and Configuring SecurID," for instructions.
To reject the user's authentication attempt without having to delete the user profile from the users file, use the Reject Auth-Type:
The Reject Auth-Type feature enables you to disable the user account temporarily.
Note ¯ The RADIUS server rejects any access-request with an unknown Auth-Type and logs an error message.
1. Specify the date of expiration using the Expiration check item.
The date must be specified in " Mmm dd yyyy" format, as in the following example:
bob Password = "ge55gep", Expiration = "Dec 04 1996"
2. Edit the Password-Expiration and Password-Warning values in the dictionary to meet your security needs.
VALUE Server-Config Password-Expiration 30
VALUE Server-Config Password-Warning 5
The first parameter, Password-Expiration, turns on expiration if the value is greater than 0 (zero), but has no other effect.
Password-Warning controls when users are notified that their accounts are about to expire. In the example above, users receive warning messages when they log in, starting 5 days before their password expiration date.
You can turn account expiration off by making these two lines in the RADIUS dictionary into comments.
Note ¯ A mechanism to permit users to change their passwords is outside the scope of RADIUS.
3. If you modified the dictionary file, stop and restart the radiusd daemon.
Note ¯ Crypt-Password can be used with scripted logins or with PAP. It cannot be used with CHAP.
Pliesel Auth-Type = System, Prefix = "P"
Framed-IP-Address = 255.255.255.254,
DEFAULT Auth-Type = System, Suffix = "%slip"
Framed-IP-Address = 255.255.255.254,
Framed-IP-Address = 255.255.255.254,
DEFAULT Auth-Type = System, Suffix = "%slip"
Framed-IP-Address = 255.255.255.254,
mario Password = "ge55gep", Called-Station-Id = "5105551234"
Note ¯ Use of the Called-Station-Id check item requires that the Called-Station-Id attribute be included in the access-request. A PortMaster 4 running ComOS 4.0 or later and a PortMaster 3 running ComOS 3.7 or later send this attribute--if it is available--to the RADIUS server as part of the access-request. Other PortMaster products running ComOS 3.7 or later send this information as part of the access-request over ISDN Basic Rate Interfaces (BRIs). If the Called-Station-Id attribute is not sent, the Called-Station-Id check item fails to match and the user is rejected.
cissy Password = "ge55gep", Calling-Station-Id = "2095555678"
Note ¯ Use of the Calling-Station-Id check item requires that the Calling-Station-Id attribute be included in the access-request. A PortMaster 4 running ComOS 4.0 or later and a PortMaster 3 running ComOS 3.7 or later send this attribute--if it is available--to the RADIUS server as part of the access-request. Other PortMaster products running ComOS 3.7 or later send this information as part of the access-request if the user is connecting to an ISDN BRI port. If the Calling-Station-Id attribute is not sent, the Called-Station-Id check item fails to match and the user is rejected.
bob Password = "ge55gep", NAS-Port = 23
bob Password = "ge55gep", NAS-IP-Address = 192.168.1.54, NAS-Port-Type = ISDN
babar Auth-Type = System, Connect-Rate = 28800
DEFAULT Auth-Type = Reject, Connect-Rate = 14399
Note ¯ Use of the Connect-Rate check item requires that the Connect-Info attribute be included in the access-request. The PortMaster 4 running ComOS 4.0 or later and the PortMaster 3 running ComOS 3.7 or later send the Connect-Info attribute as part of the access-request. If Connect-Info is not sent, the Connect-Rate check item is ignored.
bob Auth-Type = System, Framed-Protocol = PPP
ann Auth-Type = System, Group = "engineer", Group = "hardware"
5105551234 Service-Type = Call-Check, Calling-Station-Id = "5105551234"
¯ For example, a service provider can offer toll-free dial-up service and minimize toll charges incurred over the toll-free number. Call-Check allows the service provider to answer the call based upon the Calling-Station-Id (the number from which the call originated). If a call does not come from a calling station assigned to the toll-free service, the PortMaster returns a busy signal rather than accepting the call. The service provider avoids incurring charges associated with answering the call if the caller (calling station) is not defined for this service. This service also provides an additional means of security by ensuring that a user dials in from a specified number, removing the need for dialback users.
¯ Another example of a service class support is guest dial-up, where a service provider allows guests to dial up via a specified called number--Called-Station-Id.
TCP-Clear tunnels are similar to Layer 2 Tunneling Protocol (L2TP) tunnels, but are available only on PortMaster products. TCP-clear tunnels can be established for SLIP, asynchronous, and PPP connections.
Item | Options | Explanation |
---|---|---|
Callback-Id | Location name in double quotation marks (" ") | Specify only for Service-Type = Callback-Framed-User. Location must be in PortMaster location table. |
Callback-Number | Phone number in double quotation marks (" ") | Specify only for Service-Type = Callback-Login-User. |
Filter-Id | Filter name | Filter name to be used for packet or access filtering on the interface. |
Framed-Compression | None | If this reply item is omitted, Van Jacobson TCP/IP header compression is used. |
Van-Jacobson-TCP-IP | Van Jacobson TCP/IP header compression is used for the connection. Default. | |
Framed-IP-Address | IP Address | The user's IP address. |
Framed-IP-Netmask | Netmask | The user's netmask. |
Framed-IPX-Network | Dotted decimal IPX network number | IPX network number. |
Framed-MTU | Number | Number of bytes in maximum transmission unit (MTU). |
Framed-Protocol | PPP | PPP is used for the connection. Can also be used as a check item. |
SLIP | SLIP is used for the connection. | |
Framed-Route | Destination IP address | The IP address of the destination network. |
Gateway IP address | The IP address of the gateway to the destination network. | |
Metric | The number of routing hops to the destination network. Also known as the hop count. | |
Framed-Routing | None | Disables RIP on the interface. |
Broadcast | The interface sends RIP updates. | |
Listen | The interface listens for RIP updates. | |
Broadcast-Listen | The interface sends and listens for RIP updates. | |
Idle-Timeout | In seconds | Specifies the idle time limit for a session. |
Login-IP-Host | IP address | Address of the remote host. |
Login-Service | Telnet | Establishes a Telnet connection to the remote host. |
Rlogin | Establishes an rlogin connection to the remote host. | |
TCP-Clear | Establishes a TCP clear connection to the remote host. | |
PortMaster | Establishes a connection to the remote host using the PortMaster login service. | |
Login-TCP-Port | TCP port number | TCP port number of the Login-Service. |
Menu | Menu name in double quotation marks (" ") | Defines a menu in a user record. See Chapter 5, "Configuring RADIUS Menus." |
Port-Limit | Number of B channels for ISDN Multilink PPP or Multilink V.120 | Specifies the maximum number of B channels a user can use. |
Session-Timeout | In seconds | Specifies the time limit for a session. |
Service-Type | Administrative-User | Grants user full access to all configuration commands. |
Callback-Login-User | Calls user back and connects via Telnet, rlogin , PortMaster, or TCP-Clear login service. | |
Callback-Framed-User | Calls user back and establishes a framed connection (PPP or SLIP). Location must be specified in PortMaster location table. | |
Framed-User | User uses PPP or SLIP for the connection. Can also be used as a check item. | |
Login-User | User connects via Telnet, rlogin , PortMaster, or TCP-Clear login service. | |
NAS-Prompt-User | Grants user limited access to commands (nonconfiguration only). | |
Outbound-User | User makes outbound connections via Telnet. Can also be used as a check item. | |
Termination-Menu | Menu name in double quotation marks (" ") | Menu to display after service is terminated. |
Service-Type | Explanation |
---|---|
Administrative-User | The PortMaster grants the user a full administrative login--as if the user had logged in using !root . The user has full configuration ability and access to all operating system commands. This Service-Type is available only with ComOS 3.5 or later versions. for more information about this value, see "Granting a User Administrative Rights" on page 4-24. |
Callback-Framed-User | The PortMaster verifies the user's identity by disconnecting the port and dialing the user back using a specified location table entry. When the user's identity is verified, PPP or SLIP is used for the connection. To specify the callback location, see "Using Callback to Authenticate a User" on page 4-24. |
Callback-Login-User | The PortMaster verifies the user's identity by disconnecting the port and dialing the user back at a specified number. The user's identity must be verified before the connection is permitted. To specify the callback location, see "Using Callback to Authenticate a User" on page 4-24. |
Call-Check | You can enable services without authenticating the user at the point of entry on a PortMaster that supports an ISDN Primary Rate Interface (PRI), such as the PortMaster 3. You must also configure the call-check feature on the PortMaster. For more information on this value, see "Call-Check" on page 4-17. |
Framed-User | The user makes a connection via PPP or SLIP. See "Configuring a PPP or SLIP User" on page 4-25. |
Login-User | The user connects via the Telnet, rlogin , or PortMaster service (in.pmd ), or via TCP-Clear (netdata ). See "Configuring a Login User" on page 4-31 |
NAS-Prompt-User | The PortMaster grants the user a limited administrative login. A PortMaster user can use the following commands: ifconfig , ping , ptrace , reboot , reset , set console , set debug , show , traceroute , and any nonconfiguration commands. The following commands are not permitted on a PortMaster: add , delete , erase , save , tftp , and any set commands except set console or set debug . This Service-Type is available only with ComOS 3.5 or later versions. See "Granting a User Administrative Rights" on page 4-24. |
Outbound-User | The user uses Telnet for outbound connections. See "Granting a User Outbound Telnet Access" on page 4-34. |
Note ¯ If the RADIUS for UNIX server is used with a NAS other than a PortMaster product, the Administrative-User and NAS-Prompt-User Service-Types must not be used unless the other vendor's implementation of these types is compatible with the Lucent InterNetworking Systems implementation. The remainder of this appendix explains how to set reply items on a PortMaster NAS. Remember, you must own at least one PortMaster product to legally use Lucent RADIUS.
Service-Type = Administrative-User
Service-Type = NAS-Prompt-User
Service-Type = Callback-Framed-User,
Note ¯ To create location table entries, see the information on configuring dial-out locations in the PortMaster Configuration Guide.
Service-Type = Callback-Login-User,
Callback-Number = "9,1-800-555-1234"
Note ¯ If PPP negotiates an MTU for the connection, the Framed-MTU setting is ignored.
Framed-IP-Address = 172.28.1.1
Note ¯ To create an assigned address pool for the PortMaster, use the set assigned_address Ipaddress command on the PortMaster, where Ipaddress is the first IP address in the address pool. See the PortMaster Configuration Guide for more information on assigned address pools.
Framed-IP-Address = 192.168.10.232,
Framed-IP-Netmask = 255.255.255.192
Note ¯ This reply item requires ComOS 3.5 or later. You must use the set user-netmask on command to enable the PortMaster to use the netmask value. If the command set user-netmask off has been issued on the PortMaster, the default subnet mask of 255.255.255.255 is applied to all connections regardless of what the RADIUS server returns. Before using this reply item, read about the set user-netmask command in the PortMaster Configuration Guide or the PortMaster Command Line Reference.
Framed-IP-Address = 172.28.1.1,
Framed-Route = "172.28.1.0 172.28.1.1 1"
Framed-IP-Address = 172.28.1.1,
Framed-Route = "172.28.1.0/28 172.28.1.1 1"
Framed-IPX-Network = 0.18.52.86
# hex - convert ip addresses to hexadecimal and vice versa
Note ¯ To configure filters on a PortMaster, see the information on configuring filters in the PortMaster Configuration Guide. Filters specified in RADIUS for UNIX can also be dynamically loaded via ChoiceNet. For more information see the ChoiceNet Administrator's Guide.
Specify Callback-Login-User when you want to call the user back to at a specified telephone number before authorizing service. See "Using Callback to Authenticate a User" on page 4-24.
Service-Type = Callback-Login-User,
Callback-Number = "9,1-800-555-1234"
Service-Type = Callback-Login-User,
Callback-Number = "9,1-800-555-1234"
Login-IP-Host = 255.255.255.255,
Note ¯ Access filters only restrict the host(s) a user can access. They do not restrict what the user can access from that host.
roxy Password = "ge55gep", Service-Type = Outbound-User
Command> set s1 device /dev/network
Note ¯ Idle-Timeout and Session-Timeout values are specified in seconds in the RADIUS user profiles. Timeout values set directly on the PortMaster using the PortMaster command line interface or the PMVisionTM graphical user interface (GUI) are specified in minutes , by default.
Note ¯ An Idle-Timeout value of 0 in the user profile is overridden by the Idle-Timeout setting configured on the PortMaster. Any Idle-Timeout value in the user profile greater than zero overrides the Idle-Timeout setting configured on the PortMaster.
Note ¯ The effectiveness of the Idle-Timeout reply item can be reduced if RIP is active on the user's interface because updates are sent every 30 seconds, keeping the port active rather than idle. See "Configuring RIP on the User's Interface" on page 4-29 for information on using the RIP reply item.
DEFAULT Auth-Type = System, NAS-IP-Address = 10.10.10.1, NAS-Port = 10
Note ¯ If you want to disconnect the line when the service ends, do not use the Termination-Menu attribute.
red Password = "9pg$lac", NAS-Port-Type = ISDN
Note ¯ The Port-Limit reply item only limits multilink connections. It does not prevent simultaneous logins.
1. Looks up a password based on the User-Name.
2. Uses MD5 to encrypt the password, the CHAP ID octet, and the CHAP challenge.
3. Compares the result to the CHAP-Password.
4. If the items in Steps 2 and 3 match, the server sends an access-accept packet to the PortMaster. If there is no match, the server sends back an access-reject packet.
2. Set passwords in clear text; they must not be encrypted.
3. Turn off PAP and turn on CHAP by using the following commands on the PortMaster:
Note ¯ After the users file has been converted to the .dbm format, you must run builddbm again if you make any changes to the user profiles.
Framed-IP-Address = 255.255.255.254,
Framed-Compression = Van-Jacobson-TCP-IP,
Note ¯ To create an assigned address pool, see the PortMaster Configuration Guide.