Hello all. I'm trying to find the right group to post this to and since
it's a coding question (of sorts), hopefully this is the right place. I'm
attempting to run an LDAP query to return the Recipient Update Policies on
an Exchange server using the DirectorySearch er class, but it's not returning
any results. The following is a snippet of code outlining what I'm trying
to do:
DirectorySearch er searcher = new DirectorySearch er();
searcher.Search Root.Path = "LDAP://cn=Recipient
Policies,cn=<or g>,cn=Microsof t
Exchange,cn=Ser vices,cn=Config uration,dc=<dom ain>";
searcher.Filter = "(&(objectClass =msExchRecipien tPolicy))";
SearchResultCol lection matched = searcher.FindAl l(); // nothing is
returned
If I use a utility like "ADSI Edit", I can look at the AD Configuration
naming context and then view the Recipient Update Policies for the
organization, so I know that they do exist. Additionally, if I change my
filter to something like "(&(objectClass =*))", I get a bunch of results but
none of them are for the Recipient Update Policies. Does anybody have an
idea of what I'm doing wrong or if there is a better, more appropriate way
to retrieve the Recipient Update Policies from AD.
Thanks. 1 4221
Figured it out - I should be setting the "searcher.Searc hRoot" property to a
DirectoryEntry object instead of modifying "searcher.Searc hRoot.Path".
dln.
"dln" <dn**********@h otmail.com> wrote in message
news:up******** ********@tk2msf tngp13.phx.gbl. .. Hello all. I'm trying to find the right group to post this to and since it's a coding question (of sorts), hopefully this is the right place. I'm attempting to run an LDAP query to return the Recipient Update Policies on an Exchange server using the DirectorySearch er class, but it's not returning any results. The following is a snippet of code outlining what I'm trying to do:
DirectorySearch er searcher = new DirectorySearch er(); searcher.Search Root.Path = "LDAP://cn=Recipient Policies,cn=<or g>,cn=Microsof t Exchange,cn=Ser vices,cn=Config uration,dc=<dom ain>"; searcher.Filter = "(&(objectClass =msExchRecipien tPolicy))"; SearchResultCol lection matched = searcher.FindAl l(); // nothing is returned
If I use a utility like "ADSI Edit", I can look at the AD Configuration naming context and then view the Recipient Update Policies for the organization, so I know that they do exist. Additionally, if I change my filter to something like "(&(objectClass =*))", I get a bunch of results but none of them are for the Recipient Update Policies. Does anybody have an idea of what I'm doing wrong or if there is a better, more appropriate way to retrieve the Recipient Update Policies from AD.
Thanks. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Tim |
last post by:
Hello,
I'm trying very (too) hard to log uses LDAP (via ADSI) to autheniticate
users in an A2k2 application. We have AD and I have that working
slick. We are in a tranistion from NDS to AD and I would like to get
the NDS side working during the transition. I know the concept of what
required
Microsoft's information is very sparse and incomplete if not wrong.
|
by: Tim |
last post by:
Hello,
I'm trying very (too) hard to log uses LDAP (via ADSI) to autheniticate
users in an A2k2 application. We have AD and I have that working
slick. We are in a tranistion from NDS to AD and I would like to get
the NDS side working during the transition. I know the concept of what
required
|
by: Andrew |
last post by:
Hey all,
Working on revamping our Intranet here and making use of the LDPA, Active
Directory, Directory Services, etc. that .Net provides. I am still fairly
new on this subject, so the problem I have run into I am not sure how to
fix, and really not sure what is causing it.
Here's what is going on (test server - Windows 2003 Server):
I have a page in a folder (under anonymous authentication in IIS6) that has
a link on it that...
|
by: Chad Beckner |
last post by:
I am starting to translate some code from ASP to ASP.NET (VB). I was able
to query ADS to get a users groups that they belong to, and also query a
group and get a list of users. However, I can't seem to get this to work in
VB.Net. Here's what I have:
OLD ASP Code:
Function Get_ADS_Users_For_Group(ADS_Path)
Dim Group_Information
Dim Error_Number
|
by: Bryan |
last post by:
Hello,
I have a asp.net app working with directory services on my Windows XP
development machine. However when I moved the application over to our
production server (Win 2000 Server) it no longer works.
I use this code to try to connect to ldap:
System.DirectoryServices.DirectoryEntry entry = new
System.DirectoryServices.DirectoryEntry(LDAP://corp.mydomain.com,user,pass);
I tried using my user name and password, the domain admin...
| |
by: Gerry Sinkiewicz |
last post by:
Looking for a bit of software that will accept an LDAP query via port 389
and convert it to an
SQL query and return the results to the originating LDAP client.
Basically a dialect converter LDAP query <===> SQL query. The originating
LDAP query will come
from an application server.
Anyone know of such a thing.
I searched, but to no avail, most topics deal with how to query LDAP from
|
by: RJN |
last post by:
Hi
I've written a code that queries Windows LDAP server and works fine, but
the same doesn't work when querying Solaris LDAP server.
DirectoryEntry de = new DirectoryEntry("LDAP://server.com");
DirectorySearcher ds = new DirectorySearcher(de);
de.Username = "xxx";
de.Password = "yyy";
de.AuthenticationType = AuthenticationTypes.Secure;
|
by: MrHelpMe |
last post by:
Sorry everyone,
NOTE: I have posted this question to another site but unfortunately,
am not getting the answers I need only because those helping haven't
worked with ASP.
I am in desperate need of a fix. I am using classic asp and making a
connection to LDAP server using SQL code under IIS 5 on my localhost
and it works great. I have a form and form fields that pull from
active directory. Now, once I get the web team to deploy these...
|
by: wak0 |
last post by:
Hi, I hope you guys can help me.
I need to build a form that request username and password on ASP not ASP.net (sorry to clarify but i got some responses in other forums in .net)
This form will send an LDAP query into the active directory located on a different server and it will check for existing users.
If the users exist they will be redirected to a new page. if not they will be prompt to try again for username and password.
What...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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...
| |
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,...
|
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...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |