SIGN UP
MEMBER LOGIN:
TECHNOLOGIES
Active Directory in VB.NET
ADO.NET in VB.NET
Algorithms and VB.NET
ASP.NET AJAX in VB.NET
ASP.NET using VB.NET
Assemblies in VB.NET
COM Interop in VB.NET
Cryptography in VB.NET
Crystal Reports in VB.NET
Database & DBA
Deployment in VB.NET
Design & Architecture
DirectX with VB.NET
Enterprise Development
Games in VB.NET
GDI+ in VB.NET
General
LINQ with VB.NET
Mobile Dev in VB.NET
Multithreading in VB.NET
Networking with VB.NET
Office and VB.NET
Printing in VB.NET
Remoting in VB.NET
Reports in VB.NET
Security in VB.NET
Silverlight using VB.NET
Speech in VB.NET
Strings, Arrays in VB.NET
Tablet PC
Tablet PC with VB.NET
VB.NET Articles
VB.NET Exception Handling
VB.NET FAQ
VB.NET How do I
VB.NET Language
VB.NET Tutorials
VB.NET Windows Service
VBA
Visual Basic 11
Visual Basic 2010
Visual Basic Language
WCF with VB.NET
Web Controls in VB.NET
Web Dev in VB.NET
Web Forms with VB.NET
Web Service in VB.NET
Windows Controls
Windows Forms VB.NET
Workflow in VB.NET
WPF using VB.NET
XAML in VB.NET
XML in VB.NET
FORUMS
BLOGS
Use of Excel.AddUnique Method in MS Excel to D ...
Use of PPT.ApplyTheme.BackgroundStyle in MS P ...
Use of PPT.InteractWithChartLocation in MS Pow ...
Simple Web Report With Pivot Table and Linq to ...
Print A Chart into a Byte Stream
Using New Audio Player Class With VB.NET
Display Top Ten Percent Item and bottom Ten pe ...
Use of PPT.ConvertTextToSmartArt in MS PowerP ...
How to Find Backup Folder Data Location Using ...
Calendar Control In WPF
ARTICLE
Working with Directory Services in VB.NET: Part 1
Posted by
Sapna
in
Articles
|
Visual Basic Language
on
September 09, 2010
Tags:
VB.NET
,
Directory Services
,
Directory Services in VB.NET
In this article I will explain you about Working with Directory Services in VB.NET.
Tweet
1386
0
0
Reader Level:
Microsoft has provided the Active Directory Service Interface (ADSI), an API for directory services, for many years. ADSI allows us to access the directory services of various network providers in a distributed computing environment, and it presents a single set of directory service interfaces for managing network resources. We can list and manage the resources in a directory service via the ADSI service, but we do not need to know where the actual resource is located. We can use ADSI to perform common administrative tasks such as searching resources like computers, users, printers, shares, and groups on an enterprise computer network.
When you install a Windows 2000 domain controller and are creating a new forest and domain, you install the Active Directory (and optionally an Active Directory-integrated DNS if one does not exist), in which all resource information is stored. The Windows 2000 Active Directory allows you to store information about all kinds of resources such as computers, groups, printers, shares, users, and so on. If you want to surf through an Active Directory, you would use the basic program named LDP.EXE from theWindows2000 support tools, in the Windows 2000 CD's support directory. Active Directory is a database that has a storage structure similar to that of the Registry-namely, hierarchical rather than relational. This statement is also valid for other LDAP (Lightweight Directory Access Protocol ) servers and stores. You can also think of it as an XML Document Object Model tree. Every object inside Active Directory is created based on a schema object type, has an LDAP path relative to the root, and has particular attributes such as name and global unique identifier (GUID). The created objects of valid schema types reside as nodes in the Active Directory tree.
Figure 21.2 shows a simple model of an Active Directory tree and node. (Note that the same logic applies to all LDAP servers such as Microsoft Internet Information Server.)
Figure 21.2: Active Directory Data and Search Model Root
The DirectoryEntry class presents a node or object in the Active Directory hierarchy. The Add method creates a request to create a new entry in the container. The Find method returns the child with the specified name. The Remove method deletes a child DirectoryEntry from this collection. Table 21.11 describes the members of the DirectoryEntry class.
Table 21.11: DirectoryEntry Class Members
The DirectorySearcher class performs queries against the Active Directory. But of the systemsupplied ADSI providers like LDAP, Internet Information Services (IIS), and Novell NetWare Directory Service (NDS), only LDAP supports searching. The Filter property of the DirectorySearcher class gets or sets the LDAP filter string format. The FindAll method in the DirectorySearcher class executes the search and returns a collection of entries found. Table 21.12 describes the members of the DirectorySearcher class.
Table 21.12: DirectorySearcher Class Members
Conclusion
Hope this article would have helped you in understanding Working with Directory Services in VB.NET.
Remaining part of this article you will see in my next article.
Login
to add your contents and source code to this article
share this article :
Working with Directory Services in VB.NET: Part 1
Tags:
VB.NET
,
Directory Services
,
Directory Services in VB.NET
VB.NET Framework Security Tools
Tags:
VB.NET
,
Security Tools
,
VB.NET Framework Security Tools
Related Articles
Working with Directory Services in VB.NET: Part 2
Files and Directories in VB.NET
Directory and DirectoryInfo Classes in VB.NET
How to start or stop a Windows Service using VB.NET
Working with directory class in VB.NET
post comment
TOP LEADERS
View All
TRENDING UP
Use of Excel.AddUnique Method in MS Excel to Display Unique Numbers in Ranges
Use of PPT.ApplyTheme.BackgroundStyle in MS PowerPoint 2010 to Apply Themes & Backgrounds
Use of PPT.InteractWithChartLocation in MS PowerPoint 2010 to Change Chart Locations
Simple Web Report With Pivot Table and Linq to Entity
Print A Chart into a Byte Stream
Using New Audio Player Class With VB.NET
Display Top Ten Percent Item and bottom Ten percent Item
Use of PPT.ConvertTextToSmartArt in MS PowerPoint 2010 to Convert Text into SmartArt
How to Find Backup Folder Data Location Using GetSpecialLocation in MS OneNote 2010
Calendar Control In WPF
View All
Sponsored by
Become a Sponsor
MOST LIKED ARTICLE
Web based Chat application in VB.NET
Scroll text using timer in VB.NET
Input Controls in ASP.Net
Finding the first and last day of the month in VB.NET
Loading a Form Icon in VB.NET
TAG CLOUD
.NET
ADO.NET
app_themes
ASP.NET
C
C#
Database
Datagrid
Design
DirectoryServices
games
GridView
Images
jquery
MVC
Silverlight
Silverlight 5
Thread
try
tutorials
VB.NET
WCF
Windows Forms
WPF
XML
PREMIUM SPONSORS
Dynamic PDF
ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications.
Dynamic PDF
ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications. Visit DynamicPDF here
Sponsored by
Become a Sponsor