IADS in vb.net

How can I use IADS to access and manipulate active directory in visual studio using vb.net, this was so easy using visual studio 6.0....

Thanks!
remorknevetsAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

kamichieCommented:
VB.NET has integrated Active Directory Handling, meaning you just need to put in a few imports, and use the appropriate objects. I'm posting a link to a simple tutorial that should help out.

http://www.vbdotnetheaven.com/Sections/ActiveDirectory.asp
remorknevetsAuthor Commented:
How can I enumerate all users using directory services in vb.net?  I know how to use the LDAP path to display and update attributes for a specific user, but how can I move through the users in LDAP?  ie, a next button...
kamichieCommented:
Active Directory Object Browser written in vb.net with full source code

http://www.codeproject.com/dotnet/ActiveDONavigator.asp?df=100&forumid=175468&exp=0&select=1191150

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

kamichieCommented:
Should look something like this though

ldapquerystring = "LDAP://" & DistName

ds.SearchRoot = New DirectoryEntry(ldapquerystring)
ds.PageSize = 1000

Dim dsResult As DirectoryServices.SearchResult

i1 = ds.FindAll.Count
iterations = i1 / 1000

For iterCount = 1 To iterations
objContainer = GetObject(ldapquerystring)
For Each objUser In objContainer
i1 = 0 'reset the test value
strName = objUser.Name
i1 = strName.Length
If i1 > 0 Then
strDesc = objUser.Description
userFN = objUser.Get("givenName")
userSN = objUser.Get("sn")
userDesc = objUser.Get("description")
userCAI = objUser.Get("cvx-cai")
userBillCAI = objUser.Get("cvx-BillingCAI")
userDispN = objUser.Get("displayName")
outline = strName & "%" & userFN & "%" & userSN & "%" &
userDesc & "%" & userCAI & "%" & userBillCAI & "%" & userDispN & "%" &
DistName
WriteIt(outline)
End If
Next 'ObjUser
objContainer = GetObject(ldapquerystring)
Next 'Itercount
remorknevetsAuthor Commented:
kmichie, what references  need to be imported in Visual Studio .net for your code to work?
kamichieCommented:
System.DirectoryServices should be all you need
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming

From novice to tech pro — start learning today.