|
-
Dec 19th, 2007, 10:17 AM
#1
Thread Starter
New Member
Declare Activeds.dll
Hi,
I'm using Activeds.dll to check for users group and if it doesnt exist then its added to the group. The coding is as follows
Dim sEndUserError As String
Dim myGroup As IADsGroup
Dim myUser As IADsUser
Dim strADSPath As String
sEndUserError = "User " & samAccountName & " was not found on the server " & Domain & "/" & DC & "."
Set myUser = GetObject("WinNT:" & Domain & "/" & samAccountName & ",user")
sEndUserError = "Group " & GroupName & " was not found on the server " & Domain & "."
Set myGroup = GetObject("WinNT:" & Domain & "/" & GroupName & ",group")
If myGroup.IsMember(myUser.ADsPath) Then
IsUserInGroup = True
Else
IsUserInGroup = False
End If
Now the question is without adding reference of Activeds.dll is it possible to use its functionality, by using declare statement for activeds.
What exactly I'm looking for it is to use Declare statement for activeds and how to use that.
-
Dec 19th, 2007, 10:18 AM
#2
Re: Declare Activeds.dll
What is Activeds.DLL?
Is this something that you wrote?
-
Dec 19th, 2007, 11:31 AM
#3
Thread Starter
New Member
Re: Declare Activeds.dll
Hi,
This is actually the dll used for Active directory services. We can add,modify or delete users from AD. It is from Microsoft and usually it takes activeds.tlb
-
Dec 19th, 2007, 02:09 PM
#4
Re: Declare Activeds.dll
Oh, Ok.
Then it should be an easy enought job to set a reference to it, which you will need.
I just tried searching MSDN for an example for you and got this message
 Originally Posted by MSDN
We apologize, but an unknown error has occurred in the forums.
This error has been logged.
I'll try again later.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|