473,238 Members | 1,780 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,238 software developers and data experts.

facing an issue querying AD using C#

Hello,

I am facing an issue while querying Active directory using C# code with
system.DirectoryServices namespace.

Here is the path for my LDAP -
"LDAP://CN=XY - C++/Unix and other, OU=Automatic,OU=DLs,DC=domain,DC=com";

I have replaced the / character with\/- but still is giving error while
querying. Please help me to resolve this.

Also is there any way to query on the distribution lists from a given active
directory path?

Thank you.
Suhas Vengilat

Aug 27 '08 #1
4 1498
Hello Suhas,
"LDAP://CN=XY - C++/Unix and other,
OU=Automatic,OU=DLs,DC=domain,DC=com";
have you tried "LDAP://CN=\"XY - C++/Unix and other\", OU=Automatic,OU=DLs,DC=domain,DC=com";

Regards

Frank

--------------------------------
Frank Werner-Krippendorf
fr***@krippendorf-online.ch
Aug 27 '08 #2
We have Active Directory here, and I am curious as to what all I could do
with it as a developer. I'm not really sure what AD is or what it is for, and
our IT guy doesn't know too much about it either other than how to install
programs on it.

What do you do with AD?

"Suhas Vengilat" wrote:
Hello,

I am facing an issue while querying Active directory using C# code with
system.DirectoryServices namespace.

Here is the path for my LDAP -
"LDAP://CN=XY - C++/Unix and other, OU=Automatic,OU=DLs,DC=domain,DC=com";

I have replaced the / character with\/- but still is giving error while
querying. Please help me to resolve this.

Also is there any way to query on the distribution lists from a given active
directory path?

Thank you.
Suhas Vengilat
Aug 27 '08 #3
What's the error?

For searching AD look at the DirectorySearcher class.

On Aug 27, 6:06*am, Suhas Vengilat
<SuhasVengi...@discussions.microsoft.comwrote:
Hello,

I am facing an issue while querying Active directory using C# code with
system.DirectoryServices namespace.

Here is the path for my LDAP -
"LDAP://CN=XY - C++/Unix and other, OU=Automatic,OU=DLs,DC=domain,DC=com";

I have replaced the / character with\/- but still is giving error while
querying. Please help me to resolve this.

Also is there any way to query on the distribution lists from a given active
directory *path?

Thank you.
Suhas Vengilat
Aug 27 '08 #4
jp2msft,

Everything you can do in the AD tools for managing accounts can pretty
much be done in code.

On Aug 27, 7:41*am, jp2msft <jp2m...@discussions.microsoft.comwrote:
We have Active Directory here, and I am curious as to what all I could do
with it as a developer. I'm not really sure what AD is or what it is for,and
our IT guy doesn't know too much about it either other than how to install
programs on it.

What do you do with AD?

"Suhas Vengilat" wrote:
Hello,
I am facing an issue while querying Active directory using C# code with
system.DirectoryServices namespace.
Here is the path for my LDAP -
"LDAP://CN=XY - C++/Unix and other, OU=Automatic,OU=DLs,DC=domain,DC=com";
I have replaced the / character with\/- but still is giving error while
querying. Please help me to resolve this.
Also is there any way to query on the distribution lists from a given active
directory *path?
Thank you.
Suhas Vengilat
Aug 27 '08 #5

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

Similar topics

6
by: Greg | last post by:
I am working on a project that will have about 500,000 records in an XML document. This document will need to be queried with XPath, and records will need to be updated. I was thinking about...
5
by: Shane | last post by:
I wonder if someone has any ideas about the following. I am currently producing some reports for a manufacturing company who work with metal. A finished part can contain multiple sub-parts to...
3
by: laurentc via AccessMonster.com | last post by:
Hi. I have an issue with my Access project. I have rather big tables of data (about 11 000 rows). These tables are historical product quotations, so they are very simple : - MyDate...
0
by: Kidan | last post by:
I'm having an issue with a .NET 2.0 winforms application. The application runs in the taskbar, at all times querying a webservice, and when the webservice returns data, it prints out that data...
0
by: =?Utf-8?B?Um9jaw==?= | last post by:
Does Microsoft ADSI provider support LDAP with SSL for querying Sun Directory Server using ASP Code running on IIS 6.0? I was successfull in querying LDAP for Sun One Directory Server with...
2
by: Rey | last post by:
Howdy all. Using visual web developer (VB) on xp pro box. My problem with with a web form that on accessing the calendar control causes a postback that moves the cursor back to the txtFirstName...
5
by: psbasha | last post by:
Hi, Currently I am using Active Python 2.4.2 IDLE.I am facing the following issue. - When I modify the code in different modules and execute the main module ,and if any error is coming in some...
2
by: RajSharma | last post by:
Hi, I am facing a problem regarding querying thru a large table having millions of rows....... Its hanging in between while querying for all those rows Can anybody suggest me a query regarding :...
8
tharden3
by: tharden3 | last post by:
Hey all, I need some help with PHP code for paging my products on my site. I posted questions asking for help in the past, and was directed to this tutorial for help. The code that the tutorial gives...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.