DC与GC的区别

DCGC的区别

 

DCDomain Controller

GCGlobal Catalog

GC是做什么的, 有什么特点详见下面的话:

In a multi-domain forest the Active Directory database becomes partitioned. That is, each domain maintains a list of only those objects that belong in that domain. So, for example, a user created in Domain A would be listed only in Domain A's domain controllers. Global catalog (GC) servers are used to provide a global listing of all objects in the Forest. The Global catalog is held on domain controllers configured as global catalog servers. Global Catalog servers replicate to themselves all objects from all domains and hence, provide a global listing of objects in the forest. However, in order to minimize replication traffic and to keep the GC's database small, only selected attributes of each object are replicated. This is called the partial attribute set (PAS). The PAS can be modified by modifying the schema and marking attributes for replication to the GC.

 

简单来说, 多个域的情况下, 每个域都会有自己的DC, DC中维护自己域当中的对象. 当需要跨域查询对象的时候, 一个个的查询DC是不恰当的, Active Directory采用的方式是建立一个Global Catalog(GC), 查询一个对象的时候最保险的方法就是查询GC. 它维护着一个列表, 存储着各个域的所有对象. 但是为了让GC的数据库小一些, 其中就只存储某些必要的属性. 所以在查询GC的时候, 返回的对象并不包含所有的属性.

 

可以在command prompt中使用如下的命令来测试一下从DCGC索取对象时的结果差异.

 

•连接DC: ldifde -f output.txt -r ("cn=<username>")

•连接GC: ldifde -f output.txt -r ("cn=<username>") -t 3268

明显GC返回的结果中属性要少很多, 比如TitleDepartment. 因为默认情况下这两个属性的In Global Catalogfalse.

http://en.wikipedia.org/wiki/Active_Directory

http://msdn.microsoft.com/en-us/library/ms675490%28VS.85%29.aspx

http://msdn.microsoft.com/en-us/library/ms680037%28VS.85%29.aspx

-----------------------------------------------------------------------------

 

DC是域控制器,GC是DC的一个角色。打个不切当的比方,DC是人,GC就好比一只手。就这么简单。GC的全称是全局编录服务器,顾名思义,就是实现目录访问的功能。如果需要了解更多点,

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章