Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

February 12, 2009 12:00 AM

Q: How are Active Directory (AD) security group memberships replicated between different domain controller (DC) AD instances? Does AD handle replications differently in Windows Server 2003 than in Windows 2000?

Windows IT Pro
InstantDoc ID #101227
Rating: (1)

A: An important deficiency of the way AD implements groups in Win2K is that a group's membership attribute is always completely replicated between DCs each time a group membership change occurs. Even if you make a change as small as adding or removing a single user to or from a group, AD will replicate the complete group membership, because in Win2K AD group membership is a multivalue AD attribute and multivalue attributes are replicated as a single data blob. In Win2K AD, the smallest unit of replication is the object attribute, which is still much more granular than in Windows NT 4.0, where the smallest replication unit is the object itself.

AD attribute-level replication isn't perfect. In addition to transferring more data over the wire than required, another problem with attribute-level replication is that when two administrators are updating the same group membership almost simultaneously on different DCs, one of the administrator's changes will be overwritten by the other's as the changes are replicated between the two DCs. In AD in Win2K, the last writer wins and the first writer's changes are lost.

Windows Server 2003 AD replication introduces an important new feature, linked value replication (LVR), which resolves the problems mentioned above. Thanks to LVR, the individual values of a multi-value attribute can be replicated separately between AD DC instances. LVR reduces AD replication traffic and usage of network bandwidth, processor, and memory resources.

An important detail is that LVR is available only if the Windows 2003 forest is in the Windows 2003 interim or native functionality level—your forest shouldn't include Win2K DCs. Memberships of groups that are carried over from Win2K to Windows 2003 don't take advantage of LVR automatically. After you upgrade your AD forest to Windows 2003 and switch its functionality level, legacy groups can still cause group membership change losses. Also, those groups' memberships will still be replicated using the legacy attribute-level replication mechanism.

To convert legacy group members to LVR members, you must remove the members and add them back again. You can easily do so by piping the output of the Dsget command (use the -members switch) as input to the Dsmod command (use the -chmbr switch to replace all memberships in a group). For example, to convert a legacy group called mygroup, use the following command, making sure to use the correct Fully Qualified Domain Name (FQDN) you want to convert:

dsget group <FQDN of MyGroup> -members | dsmod group <FQDN of MyGroup> -chmbr

You should never remove or add more than 5,000 members in a single operation, or AD might report replication errors, because an update to the AD database must be written in a single transaction and a single transaction is limited to approximately 5,000 entries. This weakness is caused by an underlying limit in Jet, the AD database engine. If you have automated group management in your AD, you should ensure that your provisioning or group management systems understand this limitation. The 5,000 entry limit also exists in Windows Server 2008.

Related Content:

ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.