Re: Kerberos Issue

From: Steven L Umbach (n9rou_at_nospam-comcast.net)
Date: 04/08/05


Date: Fri, 8 Apr 2005 00:24:07 -0500

Great! Thanks for reporting back what worked and good job sorting it
t. --- Steve

"Ralish" <Ralish@discussions.microsoft.com> wrote in message
news:B87A13F2-5D56-45EC-85E6-416E22E9446A@microsoft.com...
> The Solution has been found!
> Details below:
>
> The Problem:
> At some point, the Kerberos Key for the PDC System Account was
> disrupted/corrupted/deleted (I have since found out why, and it is pretty
> unlikely it would happen to anyone else).
>
> As a result, the 'Kerberos Key Distribution' Service would start-up, and
> then all future network services would attempt to start-up, authenticate
> with
> Kerberos through the System Account, and fail. This resulted in Active
> Directory failing to load the GC and correctly start-up, as well as all
> services dependent to some extent on AD to fail as well (DNS (Unable to
> load
> zones off Active Directory), DHCP (Unable to communicate with DNS),
> CertSrv
> (Unable to communicate with AD), etc...).
>
> The returned error was a Pre-Authentication Failure from Kerberos, which
> seems to indicate in my case the System Account Key is out of sync with
> the
> Kerberos stored key.
>
> I've spent the last week diagnosing Kerberos and System Events/Debugging
> Kerberos/and using all sorts of obsure command line tools to try and solve
> the problem, but the solution is quite easy.
>
> Simply, you must 'reset' the PDC System Account on the DC using the
> netdom.exe tool from the Windows Server 2003 Support Tools (on the
> Installation Media). Before doing so, you MUST disable the Kerberos Key
> Distribution Center Service (set to disabled and stop). Once the account
> is
> reset, reboot the machine, and reenable Kerberos.
>
> Kerberos will 'resync' with the new System Account.
>
> The following KB Article describes the procedure:
> http://support.microsoft.com/default.aspx?scid=kb;en-us;325850
>
> I've learnt a lot from this, particularly about Kerberos, hopefully this
> solution will help anyone else experiencing similar problems as well.
>
> Ty for all help, it got me looking in the right places, and wouldn't have
> solved this without it.
>
> Yours gratefully,
>
> Ralish
>
> "Steven L Umbach" wrote:
>
>> First make sure that this domain controller is in synch with the other
>> domain controllers for time. Be sure to check
>> day/date/month/AM&PM/year/time
>> zone. Verify that it can ping the other domain controllers by at least
>> their
>> IP address and the others can ping it. Then verify that it is correctly
>> configured for dns in that it points to the domain pdc fsmo and then
>> itself
>> as preferred dns servers and make sure that there are no ISP dns servers
>> in
>> the list. Temporarily configure your domain zone to accept dynamic
>> updates
>> but NOT secure updates if you have that configured. Use nslookup on your
>> problem dc to make sure it can find the dns servers you have configured
>> for
>> it. If you get an error about it can not find the name of the dns servers
>> that just means that you do not have a reverse lookup zone configured but
>> it
>> still should be able to find the dns servers and resolve names through
>> them.
>> Use nslookup and enter your domain name as in mydomain.com and you should
>> get back IP addresses of your domain controllers [at least some of them]
>> if
>> your dns is working correctly and use it to verify it can find _srv
>> records
>> for your domain as shown below. If that works then on the problem dns
>> server, after you make any dns configuration changes, run the command
>> netdiag /fix and then restart the netlogon service. After a few minutes
>> run
>> netdiag again to see if your dns errors have gone away. It may help to
>> reboot the computer. You must get dns sorted out first. The links below
>> may
>> help. --- Steve
>>
>> http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B291382 ---
>> AD
>> dns FAQ.
>> http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B219289
>> http://support.microsoft.com/?kbid=260371
>> http://support.microsoft.com/?kbid=241515
>>
>> Using Nslookup
>> 1. From your DNS server, type nslookup at a command prompt.
>> 2. Type set type=all, and then press ENTER.
>> 3. Type _ldap._tcp.dc._msdcs.domainname (where domainname is the
>> name
>> of your domain), and then press ENTER.
>> Nslookup returns one or more SRV service location records in the
>> following
>> format
>> hostname.domainname internet address = ipaddress
>>
>>
>> "Ralish" <Ralish@discussions.microsoft.com> wrote in message
>> news:08F28FAA-BAEB-4EB6-A617-2DCFB4917F78@microsoft.com...
>> > Thank-you for all correspondence. It is greatly appreciated.
>> > I have completed a netdiag and dcdiag as suggested and here is the
>> > output:
>> >
>> > NetDiag:
>> > Computer Name: LFN-SVR-1
>> > DNS Host Name: lfn-svr-1.LFN.net
>> > System info : Windows 2000 Server (Build 3790) --- Surprised this
>> > hasn't
>> > been
>> >
>> > noticed and fixed ;)...
>> > Processor : x86 Family 6 Model 8 Stepping 6, GenuineIntel
>> > List of installed hotfixes :
>> > Q147222
>> > Netcard queries test . . . . . . . : Passed
>> > Per interface results:
>> > Adapter : LFN Network Connection
>> > Netcard queries test . . . : Passed
>> > Host Name. . . . . . . . . : lfn-svr-1
>> > IP Address . . . . . . . . : 192.168.0.2
>> > Subnet Mask. . . . . . . . : 255.255.255.0
>> > Default Gateway. . . . . . : 192.168.0.1
>> > Primary WINS Server. . . . : 192.168.0.2
>> > Dns Servers. . . . . . . . : 192.168.0.2
>> > 127.0.0.1
>> > AutoConfiguration results. . . . . . : Passed
>> > Default gateway test . . . : Passed
>> > NetBT name test. . . . . . : Passed
>> > No remote names have been found.
>> > WINS service test. . . . . : Passed
>> > Global results:
>> > Domain membership test . . . . . . : Passed
>> > NetBT transports test. . . . . . . : Passed
>> > List of NetBt transports currently configured:
>> > NetBT_Tcpip_{889147D6-99FA-410E-A4F8-E95AD376DBCF}
>> > 1 NetBt transport currently configured.
>> > Autonet address test . . . . . . . : Passed
>> > IP loopback ping test. . . . . . . : Passed
>> > Default gateway test . . . . . . . : Passed
>> > NetBT name test. . . . . . . . . . : Passed
>> > Winsock test . . . . . . . . . . . : Passed
>> > DNS test . . . . . . . . . . . . . : Failed
>> > [WARNING] Cannot find a primary authoritative DNS server for
>> > the
>> > name
>> > 'lfn-svr-1.LFN.net.'. [WSAEADDRNOTAVAIL ]
>> > The name 'lfn-svr-1.LFN.net.' may not be registered in DNS.
>> > [WARNING] Cannot find a primary authoritative DNS server for
>> > the
>> > name
>> > 'lfn-svr-1.LFN.net.'. [WSAEADDRNOTAVAIL ]
>> > The name 'lfn-svr-1.LFN.net.' may not be registered in DNS.
>> > [WARNING] Cannot find a primary authoritative DNS server for
>> > the
>> > name
>> > 'lfn-svr-1.LFN.net.'. [ERROR_TIMEOUT]
>> > The name 'lfn-svr-1.LFN.net.' may not be registered in DNS.
>> > [WARNING] The DNS entries for this DC are not registered correctly
>> > on
>> > DNS server '0.0.0.0'. Please wait for 30 minutes for DNS server
>> > replication.
>> > [FATAL] No DNS servers have the DNS records for this DC registered.
>> > Redir and Browser test . . . . . . : Passed
>> > List of NetBt transports currently bound to the Redir
>> > NetBT_Tcpip_{889147D6-99FA-410E-A4F8-E95AD376DBCF}
>> > The redir is bound to 1 NetBt transport.
>> > List of NetBt transports currently bound to the browser
>> > NetBT_Tcpip_{889147D6-99FA-410E-A4F8-E95AD376DBCF}
>> > The browser is bound to 1 NetBt transport.
>> > DC discovery test. . . . . . . . . : Passed
>> > DC list test . . . . . . . . . . . : Passed
>> > Trust relationship test. . . . . . : Skipped
>> > Kerberos test. . . . . . . . . . . : Failed
>> > [FATAL] Kerberos does not have a ticket for
>> > host/lfn-svr-1.LFN.net.
>> > LDAP test. . . . . . . . . . . . . : Passed
>> > Bindings test. . . . . . . . . . . : Passed
>> > WAN configuration test . . . . . . : Skipped
>> > No active remote access connections.
>> > Modem diagnostics test . . . . . . : Passed
>> > IP Security test . . . . . . . . . : Skipped
>> > Note: run "netsh ipsec dynamic show /?" for more detailed
>> > information
>> > The command completed successfully
>> >
>> > NOTES:
>> > 1. The DNS Server Test Failure is because AD is not starting up (error
>> > loading the GC, as a result of Kerberos Auth Failure, and hence, DNS
>> > can
>> > not
>> > load zones (stored in the AD)).
>> > 2. The Kerberos Failure seems to indicate that there is no key stored
>> > for
>> > the DC (LFN-SVR-1). Interestingly, I ran netdiag twice (second time
>> > output
>> > to
>> > file to c/p here), and first time round, this line was also listed in
>> > Kerberos Failure:
>> > '[FATAL] Kerberos does not have a ticket for krbtgt/LFN.net.'
>> > This would mean the TGT key for the LFN.net realm is gone (from my VERY
>> > basic knowledge of Kerberos inner workings). Wouldn't this account for
>> > the
>> > Authentication issues, how would I go about regenerating the TGT for
>> > the
>> > realm?
>> >
>> > DCDiag:
>> > Domain Controller Diagnosis
>> > Performing initial setup:
>> > Done gathering initial info.
>> > Doing initial required tests
>> > Testing server: LFN\LFN-SVR-1
>> > Starting test: Connectivity
>> > The host 6b610473-2182-402d-9273-67cea2ce7610._msdcs.LFN.net
>> > could
>> > not be resolved to an
>> > IP address. Check the DNS server, DHCP, server name, etc
>> > Although the Guid DNS name
>> > (6b610473-2182-402d-9273-67cea2ce7610._msdcs.LFN.net) couldn't
>> > be
>> > resolved, the server name (lfn-svr-1.LFN.net) resolved to the
>> > IP
>> > address (192.168.0.2) and was pingable. Check that the IP
>> > address
>> > is
>> > registered correctly with the DNS server.
>> > ......................... LFN-SVR-1 failed test Connectivity
>> > Doing primary tests
>> > Testing server: LFN\LFN-SVR-1
>> > Skipping all tests, because server LFN-SVR-1 is
>> > not responding to directory service requests
>> > Running partition tests on : ForestDnsZones
>> > Starting test: CrossRefValidation
>> > ......................... ForestDnsZones passed test
>> > CrossRefValidation
>> > Starting test: CheckSDRefDom
>> > ......................... ForestDnsZones passed test
>> > CheckSDRefDom
>> > Running partition tests on : DomainDnsZones
>> > Starting test: CrossRefValidation
>> > ......................... DomainDnsZones passed test
>> > CrossRefValidation
>> > Starting test: CheckSDRefDom
>> > ......................... DomainDnsZones passed test
>> > CheckSDRefDom
>> > Running partition tests on : Schema
>> > Starting test: CrossRefValidation
>> > ......................... Schema passed test CrossRefValidation
>> > Starting test: CheckSDRefDom
>> > ......................... Schema passed test CheckSDRefDom
>> > Running partition tests on : Configuration
>> > Starting test: CrossRefValidation
>> > ......................... Configuration passed test
>> > CrossRefValidation
>> > Starting test: CheckSDRefDom
>> > ......................... Configuration passed test
>> > CheckSDRefDom
>> > Running partition tests on : LFN
>> > Starting test: CrossRefValidation
>> > ......................... LFN passed test CrossRefValidation
>> > Starting test: CheckSDRefDom
>> > ......................... LFN passed test CheckSDRefDom
>> > Running enterprise tests on : LFN.net
>> > Starting test: Intersite
>> > ......................... LFN.net passed test Intersite
>> > Starting test: FsmoCheck
>> > Warning: DcGetDcName(TIME_SERVER) call failed, error 1355
>> > A Time Server could not be located.
>> > The server holding the PDC role is down.
>> > Warning: DcGetDcName(GOOD_TIME_SERVER_PREFERRED) call failed,
>> > error
>> > 1355
>> > A Good Time Server could not be located.
>> > ......................... LFN.net failed test FsmoCheck
>> >
>> > Notes:
>> > 1. DNS Failure is due to DNS Zones not loading (see Note 1 from
>> > 'netdiag').
>> > 2. The FsmoCheck errors concerning W32Time appear to be due to the Time
>> > Server being unable to communicate with AD.
>> >
>> > Once again, thank-you for your continued help. I hope this is useful. I
>> > have
>> > checked EventID.net as usual against errors as well as the MS
>> > KnowledgeBase
>> > and other sites.
>> >
>> > "Ralish" wrote:
>> >
>> >> I have been tearing my hair out over an issue with this Windows Server
>> >> 2003
>> >> machine for days now. Thankfully, I have made some progress in
>> >> diagnosing
>> >> the
>> >> problem, but I am unsure how to proceed.
>> >>
>> >> In short, the Active Directory service starts up, but is unable to
>> >> load
>> >> the
>> >> global catalog - citing access denied.
>> >>
>> >> Furthermore, as a result, all services that depend on Active
>> >> Directory,
>> >> such
>> >> as DNS, DHCP, Certificate Services, etc... are unable to establish
>> >> communication and fail as well.
>> >>
>> >> I have tracked the issue down to an authentication issue with
>> >> Kerberos.
>> >>
>> >> The system appears to be unable to authenticate as itself, with the
>> >> Security
>> >> Log flooded with Events from 'Security' with Event ID '675':
>> >>
>> >> Pre-authentication failed:
>> >> User Name: LFN-SVR-1$
>> >> User ID: LFN\LFN-SVR-1$
>> >> Service Name: krbtgt/LFN.NET
>> >> Pre-Authentication Type: 0x2
>> >> Failure Code: 0x18
>> >> Client Address: 127.0.0.1
>> >>
>> >> LFN-SVR-1 is the name of the machine and LFN is the short domain name.
>> >>
>> >> I have also downloaded the MS Resource Tools Kit - and used klist.exe.
>> >>
>> >> klist tickets - Informs me that there are 0 cached tickets...
>> >> klist tgt - 'Error calling function LsaCallAuthenticationPackage: 0
>> >> The operation completed successfully.
>> >> Substatus: 0x8009030e
>> >>
>> >> Any and all help would be greatly appreciated in solving this problem.
>> >>
>> >> Yours hopefully,
>> >>
>> >> Ralish
>>
>>
>>



Relevant Pages

  • Re: Kerberos Issue
    ... the Kerberos Key for the PDC System Account was ... Kerberos through the System Account, ... zones off Active Directory), DHCP (Unable to communicate with DNS), CertSrv ... > as preferred dns servers and make sure that there are no ISP dns servers in ...
    (microsoft.public.windows.server.security)
  • Re: sys vol check
    ... instead of the local DNS server and two ISP DNS servers. ... I need to configure the DHCP to use all three internal DNS servers ... If DNS zones are AD Integrated are writtable. ...
    (microsoft.public.windows.server.active_directory)
  • Re: sys vol check
    ... You've 3 DC DNS servers one in each Site with different subnets. ... You've A forward lookup Zone named CORP.DLECINC.COM and a reverse lookup ... The clients should use only their local DNSserver in ther NIC ...
    (microsoft.public.windows.server.active_directory)
  • Re: Win2k3 and Slow Logons
    ... > various DNS settings from the server and my router set up. ... for internal DNS servers, but it must NOT be listed on any ... >>>>bad world of the Internet. ...
    (microsoft.public.windows.server.dns)
  • Re: Prevent Caching of real world domain in W2K3 sp1 DNS.
    ... resolve anything usda.gov on either of my main DNS servers. ... and the cache is quite full. ...
    (microsoft.public.windows.server.dns)

Loading