Radius with Microsoft NPS#
Network Policy Server (NPS) is the RADIUS server of Windows Server. With it, the Radius plugin lets people sign in to the server with their Active Directory name and password, and NPS's policies decide who may.
The parts: the server is the RADIUS client, NPS is the RADIUS server, Active Directory is where NPS looks the user up.
For Active Directory alone, CrushLDAPGroup is the direct way. Go through NPS when RADIUS is your organisation's rule, or when an extension of NPS adds a second factor.
1. Make the server a RADIUS client of NPS#
In the NPS console: RADIUS Clients and Servers › RADIUS Clients › New.
| Field in NPS | Give |
|---|---|
| Friendly name | a name for the server, such as CrushMFT |
| Address (IP or DNS) | the address NPS sees the server come from |
| Shared secret | a long secret. The same goes into the plugin. |
2. Make a network policy#
Policies › Network Policies › New.
| Step in NPS | Give |
|---|---|
| Conditions | who may sign in: usually Windows Groups with the group of people who may use the server. Add Client Friendly Name with the name from step 1, so that the policy is for this server only. |
| Access Permission | Access granted |
| Authentication Methods | the method you choose in the plugin. For MSCHAPv2Authenticator: Microsoft Encrypted Authentication version 2 (MS-CHAP-v2). For PAPAuthenticator: Unencrypted authentication (PAP, SPAP). |
| Constraints | leave NAS Port Type unset, or tick Ethernet: that is the kind the server names |
Move the policy above the general ones: NPS uses the first policy that matches.
3. Optionally: say which group somebody is in#
To give people of different groups different settings on the server, let NPS send the group's name.
In the policy: Settings › RADIUS Attributes › Standard › Add › Filter-Id, with a text of your choice, such as Finance. Make one policy per group, each with its group as the condition and its own Filter-Id.
4. Set the plugin#
Preferences › Plugins › Radius:
| Setting | Value |
|---|---|
| Authenticator Type | the method of step 2 |
| Server Host, Port | the NPS server, 1812 |
| Shared Secret | the secret of step 1 |
| Timeout (s), Retries | 5 and 2 are a calmer start than the usual 1 and 5 |
| what users get | either Radius only used for Authentication, with the users made in the User Manager, or a Home folder location: see what an accepted user gets |
| Radius "Filter-Id" role mapping | for step 3: a role Finance with a user of the User Manager, say finance_template, that carries the folders and settings of that group |
Tick Enabled and Debug, save, and sign in as a test user.
When it does not work#
| What you see | Look at |
|---|---|
| no answer at all, the login takes seconds and fails | the address in step 1 is not the one NPS sees; a firewall between the two blocks UDP 1812; the NPS service does not listen on that address |
| refused at once | the Windows event log of the NPS server, under Network Policy and Access Services: it names the policy that matched and the reason. Often: the user is not in the group, or the authentication method is not ticked in the policy. |
| refused with a reason about the password, though it is right | the shared secrets differ; or the method is CHAP, which Active Directory can check only for accounts whose password is stored in a reversible form. Use MS-CHAP-v2. |
| accepted, but the user is refused by the server | no Home folder location and no user in the User Manager: see the plugin's two ways |
| accepted, but with the wrong settings | the Filter-Id text and the role's text must be the same, letter for letter |
Things to know#
- PAP sends the password protected only by the shared secret. Keep the two servers on a network you trust, or use MS-CHAP-v2.
- Accounts with "must change password at next logon" cannot sign in this way: change the password in Windows first.
- Not in FIPS mode: see the note on the plugin's page.
Not tried for this page#
Nothing was run against an NPS server. The steps in NPS are written from the order the earlier documentation gave and from Microsoft's console as it is known; the names of fields can differ between versions of Windows Server.