|
Yeah I was trying to avoid Jeremy From: Almeida Pinto,
Jorge de [mailto:[EMAIL PROTECTED] On Behalf Of Almeida Pinto, Jorge de It is possible... you only have to do it
another way... query AD for the object that matches a certain
sAMAccountName ------------------------------------------------------------------- sDomainDNSW2Kx = "ADCORP.LAN" ssAMAccountName = "JORGE" Set oConnection = CreateObject("ADODB.Connection") Set oCommand.ActiveConnection = oConnection ------------------------------------------------------------------- cheers, Jorge From:
[EMAIL PROTECTED] on behalf of Burkes, Jeremy [Contractor] Nevermind, just found the answer to my own
question, and it is no, must use the persons CN, no other attributes are
accepted, good to know. Thanks for the potential help. Jeremy From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Burkes, Jeremy [Contractor] Everyone,
I am trying to write a _vbscript_ to connect to a user account using the
samaccountname attribute to update some info. Is this even possible and
if so can someone provide a code sample, I would think it would look something
like this for Test in the Microsoft domain:
LDAP://sAMAccountName=Test, OU=Users,DC=Microsoft,DC=COM or
LDAP://sAMAccountName=Test,CN=Users,DC=Microsoft,DC=COM
Then again, maybe this is not even possible. If not should I use ADO
instead even though I am returning 1 record with each query, seems inefficient
way to me when I can just use an ADSI pointer. Jeremy -------------------------- |
- RE: [ActiveDir] VBSCRIPT ADSI IADs Get Method Almeida Pinto, Jorge de
- RE: [ActiveDir] VBSCRIPT ADSI IADs Get Me... Burkes, Jeremy [Contractor]
- RE: [ActiveDir] VBSCRIPT ADSI IADs Get Me... Steve Rochford
- RE: [ActiveDir] VBSCRIPT ADSI IADs Ge... joe
- RE: [ActiveDir] VBSCRIPT ADSI IAD... Alain Lissoir
- RE: [ActiveDir] VBSCRIPT ADSI IADs Get Me... McCann, Danny
