Dim dl As IADs
Dim NameSpace As IADsOpenDSObject
Set NameSpace = GetObject("WinNT:") ' this line only works with LDAP: for
some reason!
Set dl = NameSpace.OpenDSObject("WinNT://domain/username", "username",
"password", 0)
Debug.Print dl.Name
PS: Also is there a way to retrieve a unique ID for each object/group?
Frederick Shotton
Aeneid Inc.
For your other question, the .Name properties of global groups and users
are unique within the domain, but member servers can create duplicate names
in their local account databases. You cannot get to an NT 3/4 account's
SID using ADSI.
Richard Ault
--------------------
> From: "Frederick Shotton" <fsho...@aeneid.com>
> Subject: using OpenDSObject