We have a misbehaving non-Microsoft LDAP web application. It does not know
how to "not" chase LDAP Referrals. (We're working on that, but a fix is not
imminent.) (A similar case is referenced in a thread called "Bizarre LDAP
referral behavior" [referenced below].)
Here is our situation. When a network link goes down without warning, the
domain controller there is out-of-touch with the rest of the AD domain.
Trouble is, there are seven (7) _ldap SRV records still in DNS, so AD/LDAP
keeps trying to contact the down site when it following LDAP Referrals.
This causes a delay of up to 90 seconds in the application.
We workaround this issue by deleting the 7 _ldap SRV records from the
central site. This allows the application to not experience a delay. When
the site eventually comes back online, it's domain controller re-registers
those 7 _ldap SRV records.
Here are my questions:
- Under normal conditions, if a domain controller is gracefully shutdown,
does it de-register those _ldap records? (I think we only have an issue
when the link goes down without warning.)
- Are there any controlling mechanisms to reduce the 90-second delay when
chasing LDAP referrals to the down site?
- Can I somehow "automatically" have AD remove those SRV records at the
central site, if it know the remote domain controller is unreachable?
- Is there a way that from the central site, we don't see those _ldap SRV
records in DNS? I'm thinking that would stop the LDAP referrals. I
believe I can tell the remote domain controller to NOT register its _ldap
records, but that seems like it would break local applications such as
Outlook.
LDAP SRV records:
mydom.net\_msdcs\dc\_sites\RemoteSite1\_tcp\
SRV record: _ldap
mydom.net\_sites\RemoteSite1\_tcp\
SRV record: _ldap
mydom.net\_tcp\
SRV record: _ldap
mydom.net\_sites\RemoteSite1\_tcp\
SRV record: _ldap
mydom.net\DomainDnsZones\_sites\RemoteSite1\_tcp\
SRV record: _ldap
mydom.net\_sites\RemoteSite1\_tcp\
SRV record: _ldap
mydom.net\DomainDnsZones\_tcp\
SRV record: _ldap
Reference thread:
Bizarre LDAP referral behavior in Windows 2003 AD
microsoft.public.windows.server.active_directory
http://www.servernewsgroups.net/group/microsoft.public.windows.server.active_directory/topic961.aspx