Login | |
|
 |
RE: I am Stuck! - 3/7/2007 2:43:25 AM
|
|
 |
|
| |
dm_4ever
Posts: 2359
Score: 36
Joined: 6/29/2006
From: Orange County, California
Status: offline
|
You said the test I suggested worked which means this line is wrong somehow: dc=corp-nj, dc=mrsassociates, dc=com Change it so it looks more like the test example.
_____________________________
dm_4ever My philosophy: K.I.S.S - Keep It Simple Stupid Read Me: http://www.visualbasicscript.com/m_24727/tm.htm Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: I am Stuck! - 3/7/2007 3:17:36 AM
|
|
 |
|
| |
dm_4ever
Posts: 2359
Score: 36
Joined: 6/29/2006
From: Orange County, California
Status: offline
|
You might have to hard code the domain piece since it isn't on the domain...may even provide alternate credentials. Just ensure this is correct: dc=corp-nj, dc=mrsassociates, dc=com . You can always echo it out on your machine to verify it. Set objRoot = GetObject("LDAP://rootDSE") strDomain = objRoot.Get("defaultNamingContext") WScript.Echo strDomain Alternate credential: objConnection.Properties("User ID") = "Administrator" objConnection.Properties("Password") = "+77m5trgJo!" objConnection.Properties("Encrypt Password") = TRUE objConnection.Properties("ADSI Flag") = 1
_____________________________
dm_4ever My philosophy: K.I.S.S - Keep It Simple Stupid Read Me: http://www.visualbasicscript.com/m_24727/tm.htm Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
|
|