Home
Explore
Tags
Contribute
Home
»
VB.NET
»
VISUAL BASIC LANGUAGE
Working with Directory Services in VB.NET: Part 1
Posted in
VB.NET
|
VISUAL BASIC LANGUAGE
on
November 08, 2019
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.
3069
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.)
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.
Related Articles
Working with Directory Services in VB.NET: Part 2
Web Services and ASP.NET in VB.NET
Start or Stop a Windows Service using VB.NET
Files and Directories in VB.NET
Enumerate Directory Using VB.NET
How To Get Root Directory Using VB.NET
Discovery of Web Services
Delete Directory Using VB.NET
How To Move a Directory Using VB.NET
Web Services and ASP.NET using VB language: Part 2
Categories
ACTIVE DIRECTOTRY IN VB.NET
ALGORITHMS AND VB.NET
ARRAY IN 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
FILE IN VB.NET
GAMES IN VB.NET
GDI+ IN VB.NET
GENERAL
LINQ WITH VB.NET
MOBILE DEV IN VB.NET
MULTITHREADING IN VB.NET
NETWORKIN 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
STRING IN VB.NET
TABLET PC
VB.NET ADO.NET
VB.NET ARTICLE
VB.NET EXCEPTION HANDLING
VB.NET FAQ
VB.NET HOW DO I
VB.NET LANGUAGE
VB.NET TUTORIALS
VB.NET WINDOWS SERVICES
VBA
VISUAL BASIC 10
VISUAL BASIC LANGUAGE
WCF WITH VB.NET
WEB CONTROL IN VB.NET
WEB DEV IN VB.NET
WEB FORM WITH VB.NET
WEB SERVICES IN VB.NET
WINDOWS CONTROLS
WINDOWS FORMS IN VB.NET
WORKFLOW IN VB.NET
WPF IN VB.NET
XAML IN VB.NET
XML IN VB.NET
More Articles
Algorithm Generate Fibonacci Series in VB.NET
Algorithm - Factorial of an Number in VB.NET
Algorithm Quadrant in VB.NET
Algorithm Circular Queue in VB.NET
Algorithm Queues in VB.NET
Algorithm Stack in VB.NET
Algorithm Concept in VB.NET
How to use .NET Assemblies in VB.NET
How to create assembly in VB.NET
VB.NET Create Instance of a Type Dynamically
Select and Delete Ink in Tablet PC in VB.NET
Using Tablet PC Ink on Windows Controls in VB.NET
Tablet PC Frequently Asked Question in VB.NET
Setting Ink Overlay Properties in Tablet PC in VB.NET
VB.NET Advanced Controls of Mobile Internet
MediaElement control in Windows Phone 7
Image Brush Background set in Windows Phone 7
Mobile Mail sending Application in ASP.NET using VB.NET
Mobile Banking Application in ASP.NET using VB
I-MODE Client and Mobile Programming in VB.NET
Basic User Interface Controls of Mobile Internet in VB.NET
Basics of the Mobile Internet Toolkit using VB.NET
A glance at .NET Framework 3.0 in VB.NET
Reflection in VB.NET
Custom Exception Handling in VB.NET
Exception Handling in VB.NET
Inheritance in VB.NET
Retrieving Environment Variables in VB.NET
Introduction of Visual Studio 2008 in VB.NET: Part 1
VB.NET Select statement in SQL query
Dialog Box in VB.NET
Windows Registry in VB.NET
Get Current Time Zone in VB.NET
VB.NET Balloon Tooltip
Binding a ComboBox in VB.NET
Image as Button Background in VB.NET
Button State in VB.NET
Operating System Version in VB.NET
How many users are using the site at a same time?
BorderThickness Value in WPF
VB.NET display data in the FormView control
Add Web Server Controls to a PlaceHolder control at run time
DropDownList control through data binding in VB.NET
DropDownList control that contains items in VB.NET
How do I open a URL in a new Browser Window in ASP.NET?
Display an XmlNode contents in a DataGrid?
Delete a directory in VB.NET
Create and Save Bitmap Image in VB.NET?
VB.NET Constants
Variables in VB.NET
© 2020 DotNetHeaven. All rights reserved.
TERMS & CONDITIONS
|
CONTACT US
|
REPORT ABUSE