KRB_AP_ERR_MODIFIED is the Kerberos error Windows logs when a server receives a service ticket it cannot decrypt: the ticket was encrypted with one password, and the server holds a different one. On a domain network it shows up as a failed connection to a file share, a web site or another server, sometimes with an unexpected prompt for a username and password. Microsoft’s event text points to a few causes: a name that leads to the wrong machine or account, a service account whose password no longer matches, and an SPN registered on the wrong account. Start by finding the exact server name the failed connection used.
How this guide was made: it is compiled from Microsoft’s troubleshooting article and Microsoft Q&A community threads, checked on November 30, 2026; user-posted fixes are labelled as such.

What KRB_AP_ERR_MODIFIED means and when it appears
According to Microsoft’s event text, the error means the password used to encrypt the Kerberos service ticket is not the same as the password on the target server. In other words, the ticket was issued, but the server cannot open it. Microsoft documents this error in its article Kerberos client receives KRB_AP_ERR_MODIFIED error (original KB number 558115). Its details are written for Windows Server 2003 and IIS 6; the checks for newer domains further down come from answers on Microsoft Q&A.
Microsoft names these causes:
- Identically named machine accounts in the target realm and the client realm. Microsoft calls this a common cause (its example realm is domain.com).
- When you open an IIS 6 site that uses Windows Integrated Authentication, the error may come from a DNS name resolution mismatch (common in NLB environments with multiple IPs or network adapters), from the user lacking local NTFS permission, or from an application pool with poor permission settings.
With NLB, opening the cluster by its virtual IP or virtual name may prompt for a username and password, and the error is written to the local system event log.
Documented checks for an IIS 6 site
These steps apply only if the error appears when you open an IIS 6 site that uses Windows Integrated Authentication. Microsoft lists them in this order:
- Check that IIS has correct NTFS settings. Microsoft points to its Integrated Windows Authentication (IIS 6.0) documentation for this.
- Check that each cluster node has correct DNS settings.
- Check that each node has correct application pool settings. Microsoft points to its Configuring Application Pool Identity with IIS 6.0 documentation.
- Check that Internet Explorer has a correct security setting.
Microsoft also lists Internet Information Services Diagnostic Tools as a related resource for this error.
User-reported fixes for KRB_AP_ERR_MODIFIED
Everything in this section comes from user reports and answers on Microsoft Q&A, some of them marked on the thread as AI-generated. Work through them from the least invasive check to the most invasive.
1. Find the exact name that failed
An AI-generated answer on a Microsoft Q&A thread about this error suggests testing with the same hostname or alias the client or application really uses. Find the Kerberos Event ID 4 entry for the failed connection and note the server name, the target name (SPN) and any related Kerberos or KDC events. The same answer says that comparing Event IDs 4, 14, 16 and 27 across the client, the target server and the domain controller for one failed attempt helps tell decryption failures from clock and encryption-type problems. To request a ticket for that exact name and then view the result, it gives this command:
klist get <service-class>/<exact-hostname>
Run klist again afterwards to see the result.
2. Check DNS and name resolution
- A community answer on another thread says to check that DNS is configured correctly and that names resolve without mismatches.
- If the server name is not fully qualified, the quoted event text says to look for identically named server accounts in both domains, or to use the fully qualified name. The same answer advises using the FQDN when the client and target domains differ.
- The AI-generated answer suggests resolving the exact target name from both the client and the target server, and checking for a CNAME or load-balanced name that points to an unintended host:
nslookup <exact-target-name>
It also suggests checking that the client and target can find a domain controller:
nltest /dsgetdc:<domain-name> /force /kdc
One reporter in a thread about Windows 10 clients traced the cause to DNS in their own environment. A short DHCP lease meant DNS scavenging did not remove old records, so one client’s name resolved to another client’s IP. This was the reporter’s own finding and is specific to that setup.
3. Check the service account password
The quoted event text lists a service account password that differs from the one configured on the KDC as a cause. A community answer says to confirm the password is synchronised between the service and the KDC, and to update it if it was changed recently. This applies only if the password was changed recently.
4. Check where the SPN is registered
The quoted event text names a target SPN registered on an account other than the one the service runs under as a cause. The AI-generated answer explains why this breaks things: the KDC encrypts the ticket with the key of the account holding the SPN, and the real server cannot decrypt it. Run these from an elevated command prompt on a domain controller:
- Query the exact SPN to see where it is registered and whether it is duplicated:
setspn -Q <exact-SPN> - List the SPNs on the account that should hold it:
setspn -L <DOMAIN\ExpectedAccount> - If you have several trusted forests, search for the exact SPN across them:
setspn -X <exact-SPN>
A custom service account’s SPN must be unique across the forest, and across associated forests in a multi-forest environment.
Risk before changing anything: removing the wrong SPN can be disruptive. First confirm which identity the target service currently runs under. Keep the output of the setspn -Q and setspn -L commands above as your record of the current state. Do the next two steps only if the SPN is registered on the wrong account.
- Remove it from the wrong account:
setspn -D <exact-SPN> <WrongAccount> - Add it to the correct account:
setspn -S <exact-SPN> <CorrectAccount>. The answer prefers-Sover-Abecause-Schecks for duplicates before adding.
Wait for AD replication to finish before testing again.
5. Compare encryption types
A community answer says an encryption type mismatch can cause this error. It suggests checking the msDS-SupportedEncryptionType attribute on users and computers to confirm that the machine and service accounts use the same encryption type. The AI-generated answer on the other thread also lists a DNS alias, an account-key mismatch and clock skew as possible causes.
Azure Virtual Desktop and Microsoft Entra Kerberos
This concerns only administrators of Azure Virtual Desktop or Microsoft Entra Kerberos setups. An AI-generated answer on the Q&A thread says a valid service ticket does not prove the resource can decrypt it. It suggests checking whether the synchronised Microsoft Entra Kerberos resource key still matches the current AD DS account key, especially after an account password change. A user in that thread reported the error together with an incorrect or duplicate Service Principal Name.
What to collect before asking for help
- The Kerberos Event ID 4 entry for the failed connection, with the server name and the target name or SPN it shows.
- Whether the failing name is fully qualified, and what DNS returns for it from both the client and the server.
- Where the SPN is registered, and which account the service runs under.
- Whether a service account password changed recently.
- Whether the failure involves an IIS 6 site, an NLB virtual name or Azure Virtual Desktop.
Other users have posted similar reports. One saw the error in the event logs of several domain controllers, with a server and a target of the form cifs/<host>.sd.shared. One saw it only on Windows Server 2012 domain controllers after promoting a Windows Server 2019 domain controller into a domain that had two 2012 domain controllers. For both, the SPN and DNS checks above are the place to start. How Driverswin compiles and checks guides is described in the Driverswin editorial policy.
Sources
- Kerberos client receives KRB_AP_ERR_MODIFIED error – Windows Server | Microsoft Learn
- The Kerberos client received a KRB_AP_ERR_MODIFIED error – Microsoft Q&A
- The Kerberos client received a KRB_AP_ERR_MODIFIED error from the server – between Win10 clients – Microsoft Q&A
- KRB_AP_ERR_MODIFIED after promoting new DC – Microsoft Q&A
- KRB_AP_ERR_MODIFIED Error Code – Microsoft Q&A
