On a windows 200 computer you can look at this registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DomainCache

for a list of known domains.

Or you can look here: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters It is not an LDAP name but you could parse it and build the name you want.

[ 11. March 2003, 20:55: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/