Board index » Visual Studio » LDAP query problems
|
edspyhill01
|
LDAP query problems
Visual Studio6
Hi there, I am having a bit of trouble with Windows XP machines running my login script. The script errors on on the line: Set CurrentUser = GetObject("LDAP://" & ADSysInfo.UserName) saying the domain does not exist. Although the same script works perfectly well on my win 2k machines. There is however a complication, the network we run has 2 VLANs 1 trusted and 1 untrusted. We have ACLs which allow the trusted side to establish communication with the untrusted side but not visa versa. There is no ICMP traffic allowed accross the network either. Therefore if I want a win2k or winXP machine to connect to a domain on the untrusted side of the network from the trusted side I have to put an entry in the hosts and lmhosts file as the machines can be found by IP but not by name. With these 2 files Windows 2k machines login to the domain without any problems however the XP machines throw up Event ID 15 autoenrollment failed and Event ID 1053 Userenv unable to locate domain controller, but they still login and retain all domain functionality. There is no way I can change the ACLs at we have around 200 on induvidual sites and the company responsible charge £50 to make and changes to each one. But I really need to get this login script working accross the VLAN. So basically my question is, is there another way to query the current user from AD with vbs without: Set CurrentUser = GetObject("LDAP://" & ADSysInfo.UserName) or some other variation on this? - |
