Last post Sep 02, 2010 10:22 AM by Isorah
Jan 25, 2010 11:59 AM|ryan_boyle_cpgi|LINK
I'm attempting to write one aspx page (vb.net back end) that pulls the following using an LDAP query from my active directory and dumps it into either a datagrid or a gridview control.
The fields I want to show from Active directory are;
1. Last Name
2. First Name
5. Telephone number (primary)
I only want to show the "active" users and then again, dump the results in a dataset and populate a datagrid / gridview control.
Does anyone have any sample code of this or can walk me through on how to do this - thanks in advance...
Jan 25, 2010 12:19 PM|Bigtrend|LINK
My knowledge about this task:
1. I realized it without Domain data access - as the integration with our internal time billing system.
2. PowerShell is accessible from .NET applications and it is capable interact with Domain data by appropriate API.
Example of PowerShell scripts for similar purposes:
Jan 27, 2010 06:00 PM|ryan_boyle_cpgi|LINK
Thanks for the quick response - is there anyway you (or anyone else) have example code for vb.net (asp.net 2.0) -- as what i'm looking to do is build an aspx page (with a vb.net back end) that shows the information i'm pulling from the LDAP query on a datagrid
/ gridview control and allows the users to sort / scroll through the grid.
If you have any examples that would be great.
Jan 29, 2010 01:30 PM|Bigtrend|LINK
Accessing users list from LDAP by VB:
Some more code in VB for LDAP management:
And another code sample:
Unfortunately VB is not the most popular language for these purposes - in C# we have much more examples:(
Jan 30, 2010 12:45 PM|Kamran Safavi|LINK
Depending on the number of users in your AD you could end up bogging down your Active Directory server by trying to return all users.
You might want to investigate using a Virtual List View search with the .NET DirectorySearcher class which allows you to limit the number of users returned. Then as a user pages through a grid, you can return 50 or so users at a time and avoid pegging your
domain controller's CPU at 100% for 10 minutes :)
Aug 28, 2010 09:16 AM|TinaKessler|LINK
tags: [url=http://www.voipreview.org/Business_Telephone_Systems/Phone_Services.aspx]Business Voip Phone System[/url] [url=http://www.voipreview.org/cost-effective-business-internet-phone]Cost Effective Business Internet Phone[/url] [url=http://www.voipreview.org/cost-effective-business-voip-system]Cost
Effective Business Voip System[/url] Starting to work on a similar project and found research based online classes through microsoft on active directory, virtual list, that are very helpful..wealth of info there...
Sep 02, 2010 05:11 AM|Isorah|LINK
I am doing a similar project but in C#, does anyone have a link to the code for this in C#?
Sep 02, 2010 06:37 AM|madan535|LINK
Sep 02, 2010 06:38 AM|madan535|LINK
Sep 02, 2010 10:22 AM|Isorah|LINK
Thanks :) thats it!