Australian cloud for business software — built and run in Sydney since 2002

NetLeverage
NetLeverage

VPN error 691: user name, password or authentication protocol

Technical article
Troubleshooting

About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.

Windows error 691 appears after the client reaches the remote access server but authentication fails. Microsoft’s wording covers both bad credentials and a disallowed authentication protocol—common with MS-CHAPv2 on RRAS when LmCompatibilityLevel on the authenticating domain controller blocks the handshake. Distinguish 691 from error 812, where client and server auth methods do not match, and from error 809, where the server never answers.

What the symptom means

Microsoft documents error 691 as:

The remote connection was denied because the user name and password combination you provided is not recognized, or the selected authentication protocol is not permitted on the remote access server.

Failed attempts with a domain account can increment bad password count and trigger account lockout even when the real fault is protocol mismatch. Microsoft’s MS-CHAPv2 article says the fault can arise when LmCompatibilityLevel on the authenticating domain controller was changed from the default (for example, value 5 refuses NTLM):

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\LmCompatibilityLevel

Resolution on the RRAS side, when you must keep MS-CHAPv2, is to enable Enable NTLMv2 Compatibility with DWORD = 1 under:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\RemoteAccess\Policy

You may need to reload NPS after policy changes. Microsoft notes that testing with PAP is for troubleshooting only.

Our own advice: do not leave PAP enabled in production.

Likely causes (our reading)

Cause What you see How to confirm
Wrong password 691 immediately; lockout after repeats Successful sign-in elsewhere; AD lockout events
Auth protocol not allowed on RRAS Correct password still fails Server VPN auth methods vs client profile
LmCompatibilityLevel too strict on authenticating DC Domain users fail MS-CHAPv2 Read LSA value on the DC (check only)
Enable NTLMv2 Compatibility off on RRAS CHAP-based VPN fails after upgrade DWORD under RemoteAccess\Policy (admin)
809 masked as “auth” in user reports Never gets to logon UI Rule out UDP 500/4500 first

Prove the cause before changing anything

These steps only read.

1. Capture the exact message. Confirm 691, not 812 or 13801.

2. Check account lockout (read-only). Ask identity administrators whether the user is locked or over bad-password threshold after repeated 691 attempts.

3. Read client VPN properties. Note which authentication protocol the connection uses (for example MS-CHAP v2). Do not switch to PAP except in a controlled test window.

4. On the authenticating domain controller (administrator, read-only), read LmCompatibilityLevel without writing:

Get-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Lsa" -Name LmCompatibilityLevel

On the RRAS server, read the Remote Access policy key if it exists:

Get-ItemProperty -Path "HKLM:\System\CurrentControlSet\Services\RemoteAccess\Policy" -ErrorAction SilentlyContinue

Fix

Reset password or unlock account (identity admin) — description only

Microsoft’s 691 text covers bad credentials. If proof shows a bad password or lockout, identity administrators reset or unlock the account through your directory service. A password reset cannot be undone: the previous secret is gone; the user must sign in with the new password and update any stored VPN credentials. This article does not give a directory-service change runbook.

Enable NTLMv2 Compatibility on the RRAS server (administrator)

On the RRAS server, record whether Enable NTLMv2 Compatibility already exists and its present value before you add or change it:

Get-ItemProperty -Path "HKLM:\System\CurrentControlSet\Services\RemoteAccess\Policy" -Name "Enable NTLMv2 Compatibility" -ErrorAction SilentlyContinue | Out-File "$env:USERPROFILE\remoteaccess-ntlmv2-before.txt"

If remoteaccess-ntlmv2-before.txt is empty, the value did not exist.

Risk: the next step changes RRAS authentication policy in the registry. Clients may authenticate differently immediately; incorrect values can weaken expected security behaviour until the named value is removed or restored.

Create or set Enable NTLMv2 Compatibility as DWORD 1 under HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\RemoteAccess\Policy per Microsoft’s MS-CHAPv2 article. Microsoft notes you may need to reload NPS.

To undo it: if the value did not exist before (empty saved file), delete it by name:

reg delete "HKLM\System\CurrentControlSet\Services\RemoteAccess\Policy" /v "Enable NTLMv2 Compatibility" /f

If it existed with another data value, set it back to the value recorded in remoteaccess-ntlmv2-before.txt, then reload NPS again. Deleting or restoring the value is itself a change—use the same change window discipline.

LmCompatibilityLevel on the authenticating DC (check only)

Microsoft’s article explains that a non-default LmCompatibilityLevel on the authenticating domain controller can cause this failure. The documented fix is Enable NTLMv2 Compatibility on RRAS. Read the DC value as evidence only. Do not edit LmCompatibilityLevel from this article.

PAP test (testing only)

Microsoft warns that PAP is for testing only. If your organisation allows a one-off proof:

Record the client profile’s current authentication method from the VPN properties UI (our navigation: Settings → Network & Internet → VPN → your connection → Advanced options), then screenshot or note the server-side auth methods your administrator shows you. Write down, in a note you keep with the change record (for example vpn-691-auth-before.txt): the exact client authentication method before the test, whether the server allowed PAP before the test, and today’s date.

Risk: enabling PAP sends credentials in a form unsuitable for production. Turn it off immediately after the test.

Temporarily allow PAP on the client profile only while the server also permits it, attempt connect, then revert both sides to the methods recorded in vpn-691-auth-before.txt.

To undo it: set the client authentication method back to the exact value in vpn-691-auth-before.txt, and if an administrator temporarily enabled PAP on the server, disable it again to the prior server setting recorded there.

Confirm the fix

  1. VPN connects with 691 gone using the normal MS-CHAPv2 (or org-standard) method.
  2. Bad password count on the account is not rising (read the count only; do not try wrong passwords).
  3. Registry notes on the RRAS server are archived if production values differ from before.

What to watch afterwards

  • NPS policy updates can reintroduce protocol mismatch (812).
  • StrongSwan or other non-RRAS gateways use different identity rules—see IKEv2 PSK identity for that stack.
  • Leaving PAP enabled after a test is a critical finding in audit.

Risks and limits

These steps have not been lab-tested.

Our own advice: registry edits on production RRAS belong in change windows with backup domain controllers available. Microsoft’s article targets RRAS and MS-CHAPv2; IKEv2 certificate auth uses different error codes. Client-only tweaks cannot fix server-side “protocol not permitted.”

Sources