
January 21st, 2004, 07:05 AM
|
|
Registered User
|
|
Join Date: Jan 2004
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
check credentials
Hi,
I have the foll.problem:
I wrote a vbs script wich tries to connect to one computer with diferrent credentials like:
providername = "WinNT:"
computername ="mycomputername"
username = "myusername"
set getprovider = GetObject(providerName)
ADsPath = "WinNT://"&computername&"/"&username
set conect = getprovider.OpenDSObject _(ADsPath,newUserName,newPassword,0)
and now the problem is:
If I logon as local user the credentials are validated
If I logon as domain user connection cannot be done even with correct credentials
I tried before ADsPath="WinNT://"&computername&",computer" but that syntax never validate credentials what means connection is done even with wrong ones
Any hints?
Thanks,
dumitru
|