簡介
本文檔介紹如何查詢使用者對映以檢查使用者ID是否與正確的AD使用者匹配。
背景資訊
當ADSync進程在聯結器上發生時,它會將所有必需的active directory資料匯出到磁碟上的檔案,並且它們通常是人可讀的(文本)。
查詢電腦上的當前使用者
- 在使用者電腦上,開啟命令提示符並運行:
- 對於Windows:
nslookup -type=txt debug.opendns.com.
- 對於Linux/Mac:
dig txt debug.opendns.com.
- 輸出類似於:
nslookup -type=txt debug.opendns.com.
Server: 192.168.1.10
Address: 192.168.1.10#53
Non-authoritative answer:
debug.opendns.com text = "server your-opendns-va"
debug.opendns.com text = "appliance id 007a2c2d"
debug.opendns.com text = "host id a9b331e8f177c757b151c900df98d861"
debug.opendns.com text = "user id 4907f8d4a18f122bf8f8b2709dae99ab"
在聯結器上查詢相應的使用者
- user id欄位是我們尋找的資訊,請注意該id,本例中為:4907f8d4a18f122bf8f8b2709dae99ab
- 現在,登入到運行聯結器元件的伺服器
- 導航至C:\Program Files\OpenDNS\OpenDNS Connector\ADSync
- 開啟檔案UserStruct.ldif
- 搜尋從nslookup命令獲取的字串:4907f8d4a18f122bf8f8b2709dae99ab
- 查詢與使用者關聯的Hash檔案(本例中為John Doe),輸出類似於:
dn: CN=John Doe,OU=Users,OU=Corp,DC=Example,DC=com
changetype: add
memberOf: CN=Test-Group,OU=Groups,OU=Users,OU=Corp,DC=Example,DC=com
memberOf: CN=Staff,OU=Groups,OU=Users,OU=Corp,DC=Example,DC=com
Hash: 4907f8d4a18f122bf8f8b2709dae99ab