473,473 Members | 4,185 Online
Bytes | Software Development & Data Engineering Community
Create 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,OpenQueryWindow

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 5764
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...This 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...This 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
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...
1
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...
1
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 =...
3
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...
1
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...
2
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...
0
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...
0
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...
6
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...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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...
0
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 ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.