This article describes the symptoms, cause, and resolution steps for situations where AD operations fail with error 5: Access is denied.
- We're sorry but JFC International doesn't work properly without JavaScript enabled. Please enable it to continue. We are no longer support old browsers.
- Navigation Top 100 Best Telegram channels to follow in 2020 All channels list Telegram bots list All Telegram chats list Telegram Stickers At TelegramList.com you can find the best lists.
SPECIFICATIONS Message Construction Tufted, Cut Pile Face Fiber Type 6,6 Nylon Twisted and Heat set for Maximum Performance Finished Face Weight 21.5 oz/yd² Yarn Ply 2 Ply Stitches/Row 9 stitches per inch Gauge 1/8” Gauge Pile Height 18/64” Density 72 stitches per sq. Inch Stain Repel/Stain Resist/Soil Release KMT™ Proprietary.
Original product version: Windows Server 2012 R2
Original KB number: 2002013
Symptoms
DCDIAG reports that Active Directory Replications test has failed with error status code (5): access is denied.
Testing server: <site name><destination dc name>
Starting test: Replications
Replications Check
[Replications Check,<destination DC name] A recent replication attempt failed:
From <source DC> to <destination DC>
Naming Context: <directory partition DN path>
The replication generated an error (5):
Access is denied.
The failure occurred at <date> <time>.
The last success occurred at <date> <time>.3 failures have occurred since the last success.DCDIAG reports that DsBindWithSpnEx() failed with error 5.
REPADMIN.EXE reports that the last replication attempt has failed with status 5.
REPADMIN
commands that commonly cite the status 5 include but aren't limited to:REPADMIN /KCC
REPADMIN /REPLICATE
REPADMIN /REPLSUM
REPADMIN /SHOWREPL
REPADMIN /SHOWREPS
REPADMIN /SYNCALL
Sample output from
REPADMIN /SHOWREPS
showing inbound replication from CONTOSO-DC2 to CONTOSO-DC1 failing with the replication access was denied error is shown below:Default-First-Site-NameCONTOSO-DC1
DSA Options: IS_GC
Site Options: (none)
DSA object GUID: b6dc8589-7e00-4a5d-b688-045aef63ec01
DSA invocationID: b6dc8589-7e00-4a5d-b688-045aef63ec01INBOUND NEIGHBORS
DC=contoso, DC=com
Default-First-Site-NameCONTOSO-DC2 via RPC
DSA object GUID: 74fbe06c-932c-46b5-831b-af9e31f496b2
Last attempt @ <date> <time> failed, result 5 (0x5):
Access is denied.
<#> consecutive failure(s).
Last success @ <date> <time>.NTDS KCC, NTDS General, or Microsoft-Windows-ActiveDirectory_DomainService events with the status 5 are logged in the directory service event log.
Active Directory events that commonly cite the 8524 status include but aren't limited to:
Event Source Event String NTDS General 1655 Active Directory attempted to communicate with the following global catalog and the attempts were unsuccessful. NTDS KCC 1925 The attempt to establish a replication link for the following writable directory partition failed. NTDS KCC 1926 The attempt to establish a replication link to a read-only directory partition with the following parameters failed. The replicate now command in Active Directory Sites and Services returns Access is denied.
Right-clicking on the connection object from a source DC and choosing replicate now fails with Access is denied. The on-screen error message text and screenshot is shown below:
Dialog title text: Replicate Now
Dialog message text:
The following error occurred during the attempt to synchronize naming context <%directory partition name%> from Domain Controller <Source DC> to Domain Controller <Destination DC>:Access is denied
The operation will not continue
Buttons in Dialog: OK
Cause
Valid root causes for error 5: access is denied include:
- The RestrictRemoteClients setting in the registry has a value of 2.
- The Access this computer from network user right isn't granted to the Enterprise Domain Controllers group or the administrator triggering immediate replication.
- The CrashOnAuditFail setting in the registry of the destination DC has a value of 2.
- There's a time difference between the Key Distribution Center (KDC) used by the destination DC and the source DC. The time difference exceeds the maximum time skew that's allowed by Kerberos defined in Default Domain policy.
- There's an SMB signing mismatch between the source and destination DCs.
- There's an LMCompatiblity mismatch between the source and destination DCs.
- Service principal names are either not registered or not present because of simple replication latency or a replication failure.
- UDP formatted Kerberos packets are being fragmented by network infrastructure devices like routers and switches.
- The secure channel on the source or destination DC is invalid.
- Trust relationships in the trust chain are broken or invalid.
- The KDCNames setting in the
HKLMSystemCurrentControlSetControlLSAKerberosDomains
section of the registry incorrectly contains the local Active Directory domain name. - Some network adapters have a Large Send Offload feature.
- Antivirus software that uses a mini-firewall network adapter filter driver on the source or destination DC.
Active Directory errors and events like those cited in the symptoms section of this KB can also fail with error 8453 with similar error string Replication Access was denied. The following root cause reasons can cause AD operations to fail with 8453: replication access was denied but don't cause failures with error 5: replication is denied:
- NC head not permitted with the replicating directory changes permission.
- The security principal starting replication not a member of a group that has been granted replicating directory changes.
- Missing flags in the
UserAccountControl
attribute includingSERVER_TRUST_ACCOUNT
andTRUSTED_FOR_DELEGATION
. - RODC promoted into domain without having first run
ADPREP /RODCPREP
.
Resolution
AD Replication failing with error 5 has multiple root causes. Solve the problem initially using tools like:
- DCDIAG
- DCDIAG /TEST: CheckSecurityError
- NETDIAG that exposes common problems
If still unresolved, walk the known causes list in most common, least complex, least disruptive order to least common, most complex, most disruptive order.
Run DCDIAG, DCDIAG /TEST:CheckSecurityError, and NETDIAG
The generic DCDIAG runs multiple tests.
DCDIAG /TEST:CheckSecurityErrors
was written to do specific tests (including an SPN registration check) to troubleshoot Active Directory operations replication failing with:
- error 5: access is denied
- error 8453: replication access was denied
DCDIAG /TEST:CheckSecurityErrors
isn't run as part of the default execution of DCDIAG.
- Run DCDIAG on the destination DC
- Run DCDIAG /TEST:CheckSecurityError
- Run NETDIAG
- Resolve any faults identified by DCDIAG and NETDIAG. Retry the previously failing replication operation. If still failing, continue to the long way around.
The long way around
RestrictRemoteClients
value is set to 2This registry value
RestrictRemoteClients
is set to a value of 0x2 inHKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindows NTRPC
.To resolve this issue:
Disable the policy that enforces this setting.
Delete the
RestrictRemoteClients
registry setting and reboot.For more information on this setting, see RestrictRemoteClients registry key is enabled.
The
RestrictRemoteClients
registry value is set by the following group policy setting:Computer Configuration > Administrative Templates > System > Remote Procedure Call - Restrictions for Unauthenticated RPC clients
A registry value of 0x2 is applied if the policy setting is enabled and set to Authenticated without exceptions.
This option allows only authenticated RPC clients to connect to RPC servers running on the computer on which the policy setting is applied. It doesn't permit exceptions. If you select this option, a system can't receive remote anonymous calls using RPC. This setting should never be applied to a domain controller.
Check Access this computer from network rights.
In a default installation of Windows, the default domain controllers policy is linked to the domain controllers OU container. It grants the access this computer from network user right to the following security groups:
Local Policy Default Domain controllers policy Administrators Administrators Authenticated Users Authenticated Users Everyone Everyone Enterprise Domain Controllers Enterprise Domain Controllers [Pre-Windows 2000 compatible Access] [Pre-Windows 2000 compatible Access] If Active Directory operations are failing with error 5: access is denied, verify that:
- Security groups in the list above have been granted the access this computer from network right in default domain controllers policy.
- Domain controller computer accounts are located in the domain controllers OU.
- Default domain controllers policy is linked to the domain controllers OU or alternate OUs hosting computer accounts.
- Group policy is applying on the destination domain controller currently logging error 5.
- Deny Access this computer from network user right hasn't been enabled or doesn't reference failing direct or nested groups.
- Policy precedence, blocked inheritance, WMI filtering, or the like, is NOT preventing the policy setting from applying to DC role computers.
Policy settings can be validated with RSOP.MSC but
GPRESULT /Z
is the preferred tool because it's more accurate.Note
Local policy takes precedence over policy defined in Sites, Domains, and OU.
Note
At one time it was common for administrators to remove the enterprise domain controllers and everyone groups from the access this computer from network right in default domain controllers policy. Removing both is fatal. There is no reason to remove enterprise domain controllers from this right as only DCs are a member of this group.
CrashOnAuditFail
= 2AD Replication fails when
HKLMSystemCurrentControlSetControlLSACrashOnAuditFail
= has a value of 2,A
CrashOnAduitFail
value of 2 is triggered when the Audit: Shut down system immediately if unable to log security audits setting in Group Policy has been enabled, and the local security event log becomes full.Active Directory domain controllers are especially prone to maximum capacity security logs when auditing has been enabled, and the size of the security event log has been constrained by the Do not overwrite events (clear log manually) or Overwrite as needed options in Event Viewer or group policy equivalents.
User Action:
If
HKLMSystemCCSControlLSACrashOnAuditFail
= 2:- Clear the security event log (save to alternate location as required)
- Re-evalaute any size constraints on the security event log, including policy-based settings.
- Recreate
CrashOnAuditFail (REG_DWORD)
= 1 - Reboot
On seeing a
CrashOnAuditFail
value of 0 or 1, some CSS engineers have resolved access is denied errors by again clearing the security event log, deletingthe CrashOnAuditFail
registry value, and rebooting the destination DC.Related Content: Manage auditing and security log.
Excessive time skew
Kerberos policy settings in the default domain policy allow for a 5-minutes difference (default value) in system time between KDC domain controllers and a Kerberos target server to prevent replay attacks. Some documentation states that time between the client and the Kerberos target must have time within five minutes of each other. Others state that in the context of Kerberos authentication, the time that matters is the delta between the KDC used by the caller and the time on the Kerberos target. Also, Kerberos doesn't care that system time on the relevant DCs matches current time. It only cares that relative time difference between the KDC and target DC is inside the maximum time skew (default five minutes or less) allowed by Kerberos policy.
In the context of Active Directory operations, the target server is the source DC being contacted by the destination DC. Every domain controller in an Active Directory forest (currently running the KDC service) is a potential KDC. So you'll need to consider time accuracy on all other DCs against the source DC including time on the destination DC itself.
Two methods to check time accuracy include:
AND
Look for LSASRV 40960 events on the destination DC at the time of the failing replication request that cites a GUIDed CNAME record of the source DC with extended error:
0xc000133: the time at the Primary Domain Controller is different than the time at the Backup Domain Controller or member server by too large an amount.
Network traces capturing the destination computer connecting to a shared folder on the source DC (and other operations) may show the on-screen error an extended error has occurred. But a network trace shows:
KerberosV5:TGS Request Realm > TGS request from source DC
KerberosV5:KRB_ERROR - KRB_AP_ERR_TKE_NVV (33) > TGS response where KRB_AP_ERR_TKE_NYV > maps to Ticket not yet validThe TKE_NYV response indicates that the date range on the TGS ticket is newer than time on the target, indicating excessive time skew.
Note
W32TM /MONITOR
only checks time on DCs in the test computers domain so you'll need to run this in each domain and compare time between the domains.Note
If system time was found to be inaccurate, make an effort to figure out why and what can be done to prevent inaccurate time going forward. Was the forest root PDC configured with an external time source? Are reference time sources online and available on the network? Was the time service running? Are DC role computers configured to use NT5DS hierarchy to source time?
Note
When the time difference is too great on Windows Server 2008 R2 destination DCs, the replicate now command in DSSITE.MSC fails with the on-screen error There is a time and / or date difference between the client and the server. This error string maps to error 1398 decimal / 0x576 hex with symbolic error name ERROR_TIME_SKEW.
Related Content: Setting Clock Synchronization Tolerance to Prevent Replay Attacks.
SMB signing mismatch
The best compatibility matrix for SMB signing is defined by four policy settings and their registry-based equivalents:
Policy setting Registry Path Microsoft network client: Digitally sign communications (if server agrees) HKLMSYSTEMCCSServicesLanmanworkstationParametersEnablesecuritysignature Microsoft network client: Digitally sign communications (always) HKLMSYSTEMCCSServicesLanmanworkstationParametersRequiresecuritysignature Microsoft network server: Digitally sign communications (if server agrees) HKLMSYSTEMCCSServicesLanmanserverParametersEnablesecuritysignature Microsoft network server: Digitally sign communications (always) HKLMSYSTEMCCSServicesLanmanserverParametersRequiresecuritysignature Focus on SMB signing mismatches between the destination and source domain controllers with the classic cases being the setting enabled or required on one side but disabled on the other.
Note
Internal testing showed SMB signing mismatches causing replication to fail with error 1722: The RPC Server is unavailable.
UDP formatted Kerberos packet fragmentation
Network routers and switches may fragment or completely drop large UDP formatted network packets used by Kerberos and EDNS0 (DNS). Computers running Windows 2000 and Windows 2003 operating system families are vulnerable to UDP fragmentation comparing to computers running Windows Server 2008 and 2008 R2.
User Action:
From the console of the destination DC, ping the source DC by its fully qualified computer name to identify the largest packet supported by the network route.
If the largest non-fragmented packet is less than 1,472 bytes, either (in order of preference)
Modify your network infrastructure to properly support large UDP frames. It may require a firmware upgrade or config change on routers, switches, or firewalls.
OR
Set maxpacketsize (on the destination DC) to the largest packet identified by the PING -f -l command less 8 bytes to account for the TCP header and reboot the modified DC.
OR
Set maxpacketsize (on the destination DC) to a value of '1' which triggers Kerberos to use a TCP. Reboot the modified DC to make the change take effect.
Retry the failing Active Directory operation
Invalid Secure channel / Password Mismatch
Validate the secure channel with
nltest /sc: query
ornetdom verify
.For more information about reset the destination DC's password with
NETDOM / RESETPWD
, see How to use Netdom.exe to reset machine account passwords of a Windows Server domain controller.User Action:
Disable the KDC service on the DC being rebooted.
From the console of the destination DC, run NETDOM RESETPWD to reset the password for the destination DC:
Ensure that likely KDCs AND the source DC (if in the same domain) inbound replicate knowledge of the destination DCs new password.
Reboot the destination DC to flush Kerberos tickets and retry the replication operation.
Invalid trust
If AD replication is failing between DCs in different domains, verify trust relationships health along the trust path
When able, use the NETDIAG Trust Relationship test to check for broken trusts. NETDIAG identifies broken trusts with the following text:
Trust relationship test. . . . . . : Failed Test to ensure DomainSid of domain <domainname> is correct. [FATAL] Secure channel to domain <domainname> is broken. [<%variable status code%>]
For example, you have a multi-domain forest containing:
- root domain
Contoso.COM
- child domain
B.Contoso.COM
- grandchild domain
C.B.Contoso.COM
- tree domain in same forest
Fabrikam.COM
If replication is failing between DCs in grandchild domain
C.B.Contoso.COM
and tree domainFabrikam.COM
, verify trust health in the following order:- between
C.B.Contoso.COM
andB.Contoso.COM
- between
B.Contoso.COM
andContoso.COM
- between
Contoso.COM
andFabrikam.COM
If a short cut trust exists between the destination domains, the trust path chain doesn't have to be validated. Instead validate the short cut trust between the destination and source domain.
Check for recent password changes to the trust with
Repadmin /showobjmeta * <DN path for TDO in question>
Trusted Domain Object (TDO) verify that the destination DC is transitively inbound replicating the writable domain directory partition where trust password changes may take place.Commands to reset trusts:
From root domain PDC:
From Child domain PDC:
- root domain
Invalid Kerberos realm - PolAcDmN / PolPrDmN (no repro when article written)
Copied from Domain controller is not functioning correctly.
- Start Registry Editor.
- In the left pane, expand Security.
- On the Security menu, select Permissions to grant the Administrators local group Full Control of the SECURITY hive and its child containers and objects.
- Locate the
HKEY_LOCAL_MACHINESECURITYPolicyPolPrDmN
key. - In the right pane of Registry Editor, select the <No Name>: REG_NONE entry one time.
- On the View menu, select Display Binary Data. In the Format section of the dialog box, select Byte.
- The domain name appears as a string in the right side of the Binary Data dialog box. The domain name is the same as the Kerberos realm.
- Locate the
HKEY_LOCAL_MACHINESECURITYPolicyPolACDmN
registry key. - In the right pane of Registry Editor, double-click the <No Name>: REG_NONE entry.
- In the Binary Editor dialog box, paste the value from PolPrDmN. (The value from PolPrDmN will be the NetBIOS domain name).
- Restart the domain controller.
Invalid Kerberos realm - KdcNames
User Action:
- On the console of the destination DC, run REGEDIT.
- Locate the following path in the registry:
HKLMsystemccscontrollsakerberosdomains
. - For each <fully qualified domain> under
HKLMsystemccscontrollsakerberosdomains
, verify that the value forKdcNames
refers to a valid external Kerberos realm and NOT the local domain or another domain in the same Active Directory forest.
Network Adapters with IPv4 Large Send Offload enabled:
User Action:
- Open Network Adapter card properties.
- Select Configure button.
- Select Advanced tab.
- Disable IPv4 Large Send Offload.
- Reboot.
Great first CWT Session - shakin' the OJ Tree! Hi All,We did a super job at the 9am session. At the bottom is a typical quote; folks are noticing. Special tnx to K4BAI for the FQP plug- Tnx OM!See you all at 3pm; I'll be using W4FCG , trying
| |
CWopsT N4FP/M Single Op LP CWops Mini-CWT Test - 1300Z Apr 21Call: N4FP/MOperator(s): N4FPStation: N4FPClass: Single Op LPQTH: Ocala, FLOperating Time (hrs): .7Summary: Band QSOs------------ 160: 80:
| |
ARLB012 Clear Frequencies Requested for Net Providing 24/7 Coverage of Saint Vincent Volcanic Eruption SB QST @ ARL $ARLB012ARLB012 Clear Frequencies Requested for Net Providing 24/7 Coverageof Saint Vincent Volcanic EruptionZCZC AG12QST de W1AWARRL Bulletin 12 ARLB012From ARRL
| |
Looking for a FQP County Sweep or 1x1 Sweep? Check out these Terrific Tools! Hello FQP Foo Fighters,For those of you looking to maximize your chances for a Florida QSO Party... County Sweep, and/or1x1 N4 S-H-A-R-K Spelling Bee Sweep, be sure to check out our super duper
| |
Reminder - Today is CWT 'OJ FL' Day! GM FCG Friends,Just a brief reminder that today is CWT 'OJ FL' Day - let's chum the waters a bit for our QSO Sharks before FQP. Hope to see you in one or more sessions. GL es vy 73,Chris, NX4N
| |
Re: [FQP] K0RC Excel workbook for 2021 FQP Rev 11.01 available now Terrific - Tnx Bob! I'm always amazed at the features of this tool.FQP Fans - I hope you'll check it out; way cool stuff whether you're tracking a sweep or even post-FQP mobile analysis.vy
| |
Check your windshield wipers While you are doing your 'pre-flight' check for the FQP this weekend, please be sure to check your windshield wipers. The forecast is for heavy rain in NFL Saturday. Streaky windshield wipers always
| |
FQP Propagation possiblities! Hello FQP’ers… By K5KG George · #8110 · | |
Re: Permatex Anti-Seize Lubricant (8 oz.) Thanks for the info everybody! I have a'Guaranteed to Never Run Out' size of Penetrox A that I've been using forever. I stick a screwdriver down in the bottle and stir it up before I use it but
| |
Re: 2021 Pre-FQP CWT Private FCG Announcement - OJ FL Bob,There are still those like myself on the CWTs who don't use N1MM and a history file. That is NOT a feature of contest software SkookumLogger for MAC. In fact, it has a built in log
| |
Re: Permatex Anti-Seize Lubricant (8 oz.) I always use it liberally on antenna components.I also use it on all my garden hoses and the attached spigots and nozzles which if untreated seem to seize permanently unless lubed.
| |
Re: 2021 Pre-FQP CWT Private FCG Announcement - OJ FL Agree with both Terry & Jeff, I clearly see my error in thinking. I've treated the CWTs as contests, which they really are not. With pure honor system, there is no incentive to correctly log
| |
Re: Permatex Anti-Seize Lubricant (8 oz.) Terry - I've mostly used NoAlox, because it's handy to pick up at Home Depot, but Permatex is also excellent. I ordered some, in fact, and will pick it up after work.
| |
Re: Permatex Anti-Seize Lubricant (8 oz.) I generally use Penetrox, since it's easy to buy at Home Depot. I've used Permatex in the past, and IIRC, it's a bit thicker. Might not be true, though; it was awhile ago.
| |
Re: Permatex Anti-Seize Lubricant (8 oz.) What would be the difference between the Permatex anti seize and Penetrox A which I've been using for years as well? Less messy? Lol......DaveNN4TTSent from my not-so-new OnePlus 6T on
| |
Re: Permatex Anti-Seize Lubricant (8 oz.) Steve, Have been using Permatex Anti-Seize for years. It is a 'must use' here in Florida for any bolt, nut or joint you might want to take apart in the future.
| |
Permatex Anti-Seize Lubricant (8 oz.) If you're planning in building some antennas, this is great to use. Apply generously, and you'll be able to disassemble that antenna at anypoint in the future, and ensure good conduction the entire
| |
Re: CWT OJ/FL A wise man you are, Tom! Tnx/73 By NX4N Chris · #8100 · | |
Re: 2021 Pre-FQP CWT Private FCG Announcement - OJ FL Agree 100% with Terry. Many also use the weekly CWT's to practice their SO2R and 2SBIQ skills. When I've operated them from Bonaire I have many EU stations (and Russians) who call me that
| |
Re: CWT OJ/FL SRI, not here for FQP, have wedding in Jupiter over the weekend...the price we have to pay instead of operating, HI.GLOJTom-- tangotom@...
|