All source code in .Net Ask a .Net Pro Discussion Forum Categories All jobs in .Net
Working,latest,project,required,quite,degree,
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
.Net Stats

 Code: 666,891. lines
 Jobs: 818. postings

 How to support the site

 
Sponsored by:
Quick Search for:  in language:    
You are in:
 
Login





Latest postings for .Net.
SQL Backup/Restore using SMO
By Visual Soft Computers on 2/6


Click here to see a screenshot of this code!flexi grid
By maytel.mynt on 1/12

(Screen Shot)

Using Excel in VB2010 (VB10)
By Alberto Torres on 2/5


Click here to see a screenshot of this code!SermonNotes
By arifliminto86 on 2/5

(Screen Shot)

Click here to see a screenshot of this code!A.net Programm to add new database
By Rohit Kanugo on 2/5

(Screen Shot)

Access_Database _Add
By Rohit Kanugo on 2/4


Add new DataBase Through Coding for a IT Company
By Rohit Kanugo on 2/4


Click here to see a screenshot of this code!Numbert To Word Conversion Short and Simple Code
By Opal Raj Ghimire on 2/3

(Screen Shot)

Click here to see a screenshot of this code!Monopoly Game
By arifliminto86 on 2/1

(Screen Shot)

Click here to see a screenshot of this code!Write Text to File, Write Binary To File
By brandon teoh on 2/1

(Screen Shot)

Click here to see a screenshot of this code!Movable Resizable Runtime Controls VB2005 Version
By SC Project on 2/1

(Screen Shot)

Desktop Email Client
By Avinash Kumar Sharma on 1/30


Website Source Code Grabber
By Avinash Kumar Sharma on 1/30


Click here to see a screenshot of this code!Auto Scrolling Label Method (autoscrolling textbox)
By Kenny28 on 1/30

(Screen Shot)

EL-Bandido Time Monitoring System Daily Record
By Ian Formanes on 1/30


Click here to see a screenshot of this code!Weather
By Jsvnascar on 1/29

(Screen Shot)

Mini NetMeeting
By Ian Formanes on 1/28


EL-Bandido
By Ian Formanes on 1/27


Click here to see a screenshot of this code!RegionMaker
By silviu petre on 1/27

(Screen Shot)

calculations class
By silviu petre on 1/26


Click here to see a screenshot of this code!Introduction to ADO.NET(OLEDBCO NNECTION)
By jay celeste on 1/21

(Screen Shot)

Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!



 
 
   

Active Directory Helper

Print
Email
 
winzip icon
Submitted on: 9/24/2002 7:15:32 PM
By: Craig Aroa 
Level: Intermediate
User Rating: By 4 Users
Compatibility:C#, VB.NET, ASP.NET, C++.NET

Users have accessed this code 18665 times.
 
(About the author)
 
     Working on my latest project required quite a degree of development against the Active Directory. Not having had any AD experience before slowed me down for a while, but after trawling through lost of news groups etc, I gathered enough information to do what I needed to do. I have developed an ADHelper class that will should take care of most AD requirements, from :- -creating/updating a user -assigning a user to a group -enabling/disabling their account -setting password -checking if a user is valid -loggin in -checking if a user exists -performing queries All while returning DataSets to allow easy binding to datagrids etc. Im by no means an expert, but hopefully this helps some of you facing the same problems that I had. Regards Craig Aroa(craigaroa@hotmail.com)
 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.

Virus note:All files are scanned once-a-day by Planet Source Code for viruses,but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:
1)Re-scan downloaded files using your personal virus checker before using it.
2)NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
1) You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.
 
 Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:
 
Your Vote!

What do you think of this code(in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
2/2/2003 1:37:38 AM ldapguru

if I click on the zip, it does not exit?

(If this comment was disrespectful, please report it.)

 
2/2/2003 1:49:31 AMDerik J. Palacino

Click on the link and it throws a 500.12 Application restarting error?

What's up?
(If this comment was disrespectful, please report it.)

 
2/3/2003 2:59:40 AMtHe_cLeanER

nice code, but a sample project would be nice :)
(If this comment was disrespectful, please report it.)

 
7/29/2003 8:39:48 PM

This code is excellent. It was a life saver for a project that I am working on. Thanks a bunch guy. One suggestion is that you create a VB version of the class, I'd be glad to do it if I had the skills. I had to compile the code into a DLL to get it working but it is phenomenal. You could also add a method to lock and unlock user accounts, and to delete user accounts.

Delio
(If this comment was disrespectful, please report it.)

 
1/20/2004 4:39:17 PM

It's great code, there is one change that I made. I changed the UserExists(string UserName) function to use the true user name instead of the common name deSearch.Filter =
(If this comment was disrespectful, please report it.)

 
1/20/2004 4:40:18 PM

deSearch.Filter = "(&(objectClass=user) (userprincipalname=" + UserName +"@mydomain.com))";
(If this comment was disrespectful, please report it.)

 
1/21/2004 12:42:10 AMCraig Aroa

Im glad you found a good use for it. I havent touched that code for almost 2 years now, so my memory is a little hazy. I found when I first started the project these was hardly any resource around to learn from, so its actually nice to be able to return the favor to all those hard working coders that have been in the same situation.

Happy coding.
(If this comment was disrespectful, please report it.)

 
7/13/2004 5:41:40 AM

thaiyou
(If this comment was disrespectful, please report it.)

 
7/28/2006 7:35:47 PMDry

I had already got the Users and Groups, but was looking for a way to find the Users in the Groups. Thanks for your help. I had to convert it to VB but it works great! Thanks!!
(If this comment was disrespectful, please report it.)

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author from the email account you registered on the site, so you can correspond directly.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
To post feedback, first please login.


 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Games | Feedback | Customize | .Net Home | Site Home | Other Sites | Open Letter from Moderators | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997-2010 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.   Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.