-----Original Message-----
From: Jorgensen, Marty [mailto:MartyJ@q...]
Sent: 07 April 2000 17:14
To: 'support@w...'
Subject: ADSI CDO programming with ASP, 1908
Anybody know how I can pass variables into this code from page 78?
' Variables
Set server = "XCHG01"
Set domain = "MEMBER"
Set userID = "ziggys"
' Use the custom Component to return the Exchange version of SID for NT
Account
' Don't forget to register the component ADSITools.dll
Set objSIDComp = Server.CreateObject("ADSITools.ExNTSID")
' Pass in the SERVERNAME and DOMAIN and Primary NT Account we want to add
varID = objSIDComp.GetMySID("XCHG01", "MEMBER", "ziggys")
' Write the Primary NT Account called AssocNTAccount with Ex SID of NT
' varID needs to pass as a variant for Put Function so we us () to do it
objUser.Put "Assoc-NT-Account", (varID)
What I mean is the line where varID is defined, I have to hardcode
"XCHG01",
the domain name "MEMBER", and the userID "ziggys", I want to be able to
use
variables in there, but when I do that, it doesn't work. If they're
hardcoded, it works fine. Shouldn't this work?
varID = objSIDComp.GetMySID(server, domain, userID)