473,796 Members | 2,603 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PLS HELP: Active Directory search dialog

Hi,

I'm trying to find a way to call a standard ActiveDirectory search
dialog from my C# app, so i can pick a domain or computer user an
dreturn it to the app. It's a search like one showing when you call:

rundll32 dsquery,OpenQue ryWindow

I'm sure there is a Win32 API method to do that but i can't find one.

Any ideas would be highly appreciated!

Thank you,
Andrey
Mar 15 '07 #1
3 5794
Hi Andrey,

As far as I know, there are many methods we can use for querying Active
Directory in .net application. But I'm afraid it is not possible to call
the standard Active Directory Search Dialog and return the result to .net
application. If you need this feature, I think we should have to create a
dialog to query Active Directory and return the selected user or computer
manual.
Such as the following sample from codeproject website.
http://www.codeproject.com/dotnet/activedirquery.asp
[Querying Active Directory using .NET classes and LDAP queries]

Also I will try to performance more research these days to check whether
there is any other simple way to achieve this and reply you if I get any
information.

Thanks for your understanding,
Sincerely,
Wen Yuan

Mar 16 '07 #2
Hi Andrey,
Thanks for your waiting.

I have received clarification from our product development team.

Active Directory Search Dialog is part of the Object Picker dialogs. It's
not directly accessible from C#. It's all native code, with no plans to
port to managed code or the S.DS namespace...Thi s type of dialog is not
generally accessible to applications. You would have to use the .NET
namespaces for AD to recreate the dialog box and its functionality, as in
my first reply.

If you have anything unclear or any more question on this issue, please
feel free to update here. I'm glad to help you.

Have a great day,
Sincerely,
Wen Yuan

Mar 19 '07 #3
WenYuan Wang wrote:
Hi Andrey,
Thanks for your waiting.

I have received clarification from our product development team.

Active Directory Search Dialog is part of the Object Picker dialogs. It's
not directly accessible from C#. It's all native code, with no plans to
port to managed code or the S.DS namespace...Thi s type of dialog is not
generally accessible to applications. You would have to use the .NET
namespaces for AD to recreate the dialog box and its functionality, as in
my first reply.

If you have anything unclear or any more question on this issue, please
feel free to update here. I'm glad to help you.

Have a great day,
Sincerely,
Wen Yuan
Hi Wen,

I just created my own search dialog based on the link you provided.

Thank you,
Andrey
Mar 19 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3948
by: Toufani | last post by:
Hi everybody, I want to retrieve information about objects in active directory windows 2000 and their properties. I got some codes that don't work absolutely. for example I can't retrieve users list and group list separatedly.there is my code that downloaded from the internet : public class LdapAuthentication { private string _path;
1
3314
by: Amadelle | last post by:
Hi all, I am so desparately in need of some guidance! After two days of struggling I still can't connect to the Active Directory server. I have used so many different ways and so many different string paths and I still don't have a successful connection. Things I have tried: Using Directory Searcher: DirectorySearcher ds = new DirectorySearcher(); ds.SearchRoot = new DirectoryEntry();
1
3896
by: tangus via DotNetMonster.com | last post by:
Hello all, I'm really struggling with getting some Active Directory code to work in ASP.NET. Can you please provide assistance? I am executing the following code: Dim enTry As DirectoryEntry = New DirectoryEntry("LDAP://domain") Dim mySearcher As New DirectorySearcher(enTry) Dim resEnt As SearchResult mySearcher.Filter = ("(objectClass=*)") mySearcher.SearchScope = SearchScope.Subtree
3
2655
by: Adrian Parker | last post by:
At the moment, we have a simple user id / password entry screen to login to our website, the data credentials are held in our database. We've now been asked to integrate with active directory so that users on the lan who are already logged in via active directory no longer need to log into the website, but automatically are logged in using their network userid (which should match the old website login). I can see how I could prompt for...
1
3725
by: Rahul | last post by:
Hi Everybody I have some problem in my script. please help me. This is script file. I have one *.inq file. I want run this script in XML files. But this script errors shows . If u want i am attach this script files and inq files. I cant understand this error. Please suggest me. You can talk with my yahoo id b_sahoo1@yahoo.com. Now i am online. Plz....Plz..Plz...
2
4699
by: P Webster | last post by:
We recently moved a web site that validated user credentials in Active Directory from IIS 5.1 to IIS 6, and the validation code no longer works. The web.config file is set to Windows authentication because all we do is verify the user on the login form so we can redirect them to the appropriate page based on their group. The code to authenticate is: Public Function IsAuthenticated(ByVal domain As String, ByVal username As String, ByVal...
0
1347
by: Matt | last post by:
Hi, I am looking for an Active Directory object selection for ASP.net 2. My ASP.net page has a text field to enter a user's or computer's LDAP path directly. And a "Find..." button that shall display an Active Directory search GUI like the dialog shown on a Windows Server 2003 under "Active Directory Users and Computers - Find...". I could not find an ASP.net server control for this. I know that I can search the Active Directory using...
0
5415
by: Chung Leong | last post by:
In this brief tutorial I'll describe how you retrieve information from an Active Directory through the OLE-DB extension. While it is possible to use the LDAP extension to achieve the same goal, as you will see using Microsoft's OLE-DB provider is much easier. You will need to download and install the OLE-DB extension. Here's the location once again: http://sourceforge.net/project/showfiles.php?group_id=171247&package_id=198554. See my...
6
9933
by: jarice1978 | last post by:
Hello, I have been scanning the internet for a few days now. That is not working. So now it is time to post! I have read a few other posts on here about authentication but they do not match exactly. We currently have an intranet app built in a mixture of asp and asp.net 1.1 and 2.0 written in VB .Net. We have a form where the user logs in and it authenticates against active directory successully in 2 ways: 1. The admin resets the...
0
9535
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10242
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10200
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10021
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6800
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5453
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4127
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2931
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.