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的全稱是全局編錄服務器,顧名思義,就是實現目錄訪問的功能。如果需要了解更多點,

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