Plan NPS as a RADIUS server | Microsoft ·续

User authentication occurs when a user attempting to connect to the network types password-based credentials and tries to log on. NPS receives the credentials and performs authentication and authorization. If the user is authenticated and authorized successfully, and if the client computer successfully authenticated the NPS, the connection request is granted.

Key steps

During the planning for the use of authentication methods, you can use the following steps.

  • Identify the types of network access you plan to offer, such as wireless, VPN, 802.1X-capable switch, and dial-up access.

  • Determine the authentication method or methods that you want to use for each type of access. It's recommended that you use the certificate-based authentication methods that provide strong security; however, it might not be practical for you to deploy a PKI, so other authentication methods might provide a better balance of what you need for your network.

  • If you're deploying EAP-TLS, plan your PKI deployment. This includes planning the certificate templates you're going to use for server certificates and client computer certificates. It also includes determining how to enroll certificates to domain member and non-domain member computers, and determining whether you want to use smart cards.

  • If you're deploying PEAP-MS-CHAP v2, determine whether you want to install AD CS to issue server certificates to your NPSs or whether you want to purchase server certificates from a public CA, such as VeriSign.

Plan network policies

Network policies are used by NPS to determine whether connection requests received from RADIUS clients are authorized. NPS also uses the dial-in properties of the user account to make an authorization determination.

Because network policies are processed in the order in which they appear in the NPS snap-in, plan to place your most restrictive policies first in the list of policies. For each connection request, NPS attempts to match the conditions of the policy with the connection request properties. NPS examines each network policy in order until it finds a match. If it doesn't find a match, the connection request is rejected.

Key steps

During the planning for network policies, you can use the following steps.

  • Determine the preferred NPS processing order of network policies, from most restrictive to least restrictive.

  • Determine the policy state. The policy state can have the value of enabled or disabled. If the policy is enabled, NPS evaluates the policy while performing authorization. If the policy isn't enabled, it isn't evaluated.

  • Determine the policy type. You must determine whether the policy is designed to grant access when the conditions of the policy are matched by the connection request or whether the policy is designed to deny access when the conditions of the policy are matched by the connection request. For example, if you want to explicitly deny wireless access to the members of a Windows group, you can create a network policy that specifies the group, the wireless connection method, and that has a policy type setting of Deny access.

  • Determine whether you want NPS to ignore the dial-in properties of user accounts that are members of the group on which the policy is based. When this setting isn't enabled, the dial-in properties of user accounts override settings that are configured in network policies. For example, if a network policy is configured that grants access to a user but the dial-in properties of the user account for that user are set to deny access, the user is denied access. But if you enable the policy type setting Ignore user account dial-in properties, the same user is granted access to the network.

  • Determine whether the policy uses the policy source setting. This setting allows you to easily specify a source for all access requests. Possible sources are a Terminal Services Gateway (TS Gateway), a remote access server (VPN or dial-up), a DHCP server, a wireless access point, and a Health Registration Authority server. Alternatively, you can specify a vendor-specific source.

  • Determine the conditions that must be matched in order for the network policy to be applied.

  • Determine the settings that are applied if the conditions of the network policy are matched by the connection request.

  • Determine whether you want to use, modify, or delete the default network policies.

Plan NPS accounting

NPS provides the ability to log RADIUS accounting data, such as user authentication and accounting requests, in three formats: IAS format, database-compatible format, and Microsoft SQL Server logging.

IAS format and database-compatible format create log files on the local NPS in text file format.

SQL Server logging provides the ability to log to a SQL Server 2000 or SQL Server 2005 XML-compliant database, extending RADIUS accounting to leverage the advantages of logging to a relational database.

Key steps

During the planning for NPS accounting, you can use the following steps.

  • Determine whether you want to store NPS accounting data in log files or in a SQL Server database.

NPS accounting using local log files

Recording user authentication and accounting requests in log files is used primarily for connection analysis and billing purposes, and is also useful as a security investigation tool, providing you with a method for tracking the activity of a malicious user after an attack.

Key steps

During the planning for NPS accounting using local log files, you can use the following steps.

  • Determine the text file format that you want to use for your NPS log files.

  • Choose the type of information that you want to log. You can log accounting requests, authentication requests, and periodic status.

  • Determine the hard disk location where you want to store your log files.

  • Design your log file backup solution. The hard disk location where you store your log files should be a location that allows you to easily back up your data. In addition, the hard disk location should be protected by configuring the access control list (ACL) for the folder where the log files are stored.

  • Determine the frequency at which you want new log files to be created. If you want log files to be created based on the file size, determine the maximum file size allowed before a new log file is created by NPS.

  • Determine whether you want NPS to delete older log files if the hard disk runs out of storage space.

  • Determine the application or applications that you want to use to view accounting data and produce reports.

NPS SQL Server logging

NPS SQL Server logging is used when you need session state information, for report creation and data analysis purposes, and to centralize and simplify management of your accounting data.

NPS provides the ability to use SQL Server logging to record user authentication and accounting requests received from one or more network access servers to a data source on a computer running the Microsoft SQL Server Desktop Engine (MSDE 2000), or any version of SQL Server later than SQL Server 2000.

Accounting data is passed from NPS in XML format to a stored procedure in the database, which supports both structured query language (SQL) and XML (SQLXML). Recording user authentication and accounting requests in an XML-compliant SQL Server database enables multiple NPSs to have one data source.

Key steps

During the planning for NPS accounting by using NPS SQL Server logging, you can use the following steps.

  • Determine whether you or another member of your organization has SQL Server 2000 or SQL Server 2005 relational database development experience and you understand how to use these products to create, modify, administer, and manage SQL Server databases.

  • Determine whether SQL Server is installed on the NPS or on a remote computer.

  • Design the stored procedure that you'll use in your SQL Server database to process incoming XML files that contain NPS accounting data.

  • Design the SQL Server database replication structure and flow.

  • Determine the application or applications that you want to use to view accounting data and produce reports.

  • Plan to use network access servers that send the Class attribute in all accounting-requests. The Class attribute is sent to the RADIUS client in an Access-Accept message, and is useful for correlating Accounting-Request messages with authentication sessions. If the Class attribute is sent by the network access server in the accounting request messages, it can be used to match the accounting and authentication records. The combination of the attributes Unique-Serial-Number, Service-Reboot-Time, and Server-Address must be a unique identification for each authentication that the server accepts.

  • Plan to use network access servers that support interim accounting.

  • Plan to use network access servers that send Accounting-on and Accounting-off messages.

  • Plan to use network access servers that support the storing and forwarding of accounting data. Network access servers that support this feature can store accounting data when the network access server can't communicate with the NPS. When the NPS is available, the network access server forwards the stored records to the NPS, providing increased reliability in accounting over network access servers that don't provide this feature.

  • Plan to always configure the Acct-Interim-Interval attribute in network policies. The Acct-Interim-Interval attribute sets the interval (in seconds) between each interim update that the network access server sends. According to RFC 2869, the value of the Acct-Interim-Interval attribute must not be smaller than 60 seconds (1 minute), and shouldn't be smaller than 600 seconds (10 minutes), meaning that values over 600 seconds reduce the frequency of updates received by the RADIUS server. For more information, see RFC 2869.

  • Ensure that logging of periodic status is enabled on your NPSs.