Click here to Skip to main content
15,891,423 members
Articles / Web Development / ASP.NET

Using Active Directory In ASP.NET - Enumerate Active Directory Users

Rate me:
Please Sign up or sign in to vote.
2.64/5 (18 votes)
10 Feb 20021 min read 229.2K   3.8K   78  
An article on using DirectoryServices namespace to enumerate Active Directory Users
<%@ Page language="c#" Codebehind="ADSITools.aspx.cs" AutoEventWireup="false" Inherits="ASPNet_App.ADSITools" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>Softomatix - ADSITools</title>
		<meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<link rel="stylesheet" type="text/css" href="SoftomatixStyles.css">
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="ADSITools" method="post" runat="server">
			<div class="pageTitle" align="center">Softomatix - Active Directory Tools</div>
			<div class="leftPane" style="Z-INDEX: 100">
				<div class="leftPaneSectionTitle">
					Utilities
				</div>
				<div class="leftPaneSectionList">
					<ul>
						<li>
							<asp:LinkButton Runat="server" ID="wndDumpUserSchema" OnClick="DumpUserSchema_Click" Text="Dump User Schema"></asp:LinkButton>
						<li>
							<asp:LinkButton Runat="server" ID="wndDumpUsersList" OnClick="DumpUserList_Click" Text="Dump Users List"></asp:LinkButton>
						<li>
							<asp:LinkButton Runat="server" ID="wndDumpGroupsList" OnClick="DumpGroupList_Click" Text="Dump Groups List"></asp:LinkButton>
						</li>
					</ul>
				</div>
			</div>
		</form>
		<div class="rightPane" style="Z-INDEX: 101">
			<asp:Panel Runat="server" ID="wndReportPanel">
				<asp:Label id="Label1" Runat="server" Font-Bold="True" EnableViewState="False" BackColor="#999966">Click in the left pane to select a tool.</asp:Label>
			</asp:Panel>
		</div>
	</body>
</HTML>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
United States United States
To learn more about us, Please visit us at http://www.netomatix.com

Comments and Discussions