473,657 Members | 2,435 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

query ldap directory

I want to write a program that will query an ldap directory. can I use adsi
or ado to do that, If yes how ?

tx
--
h2so4
Nov 20 '05 #1
4 2031
There is a System.Director yServices .NET DLL which you could add a
reference to. This deals with Active Directory, is this what you are looking
for ?

Regards - OHM

h2so4 wrote:
I want to write a program that will query an ldap directory. can I
use adsi or ado to do that, If yes how ?

tx


--
Best Regards - OHM

O_H_M{at}BTInte rnet{dot}com
Nov 20 '05 #2
hi OHM#

What I want to do is to access data in another directory than AD, I would
like to know if this is possible via ADSI or ADO or any other .net DLL.

regards - h2so4
"One Handed Man [ OHM# ]" <O_H_M{at}BTInt ernet{dot}com> wrote
There is a System.Director yServices .NET DLL which you could add a
reference to. This deals with Active Directory, is this what you are looking for ?

Regards - OHM

h2so4 wrote:
I want to write a program that will query an ldap directory. can I
use adsi or ado to do that, If yes how ?

tx

Nov 20 '05 #3
If you are referring to Active Directory Service Interfaces Overview (
ADSI ) this allows programmers to access Active Directory objects. You need
to add a reference to the Systm.Directory Services DLL in your project
window. Then you can access the object model from this. It's not something I
have had to do, but I kow its there. Other than that I'm not sure what you
are trying to acheive.

As far as ADO is concerned ( ADO.NET ), in the NET framework. This is for
database connectivity and data manipulation. Is this what you actually want
?

Regards - OHM

h2so4 wrote:
hi OHM#

What I want to do is to access data in another directory than AD, I
would like to know if this is possible via ADSI or ADO or any other
.net DLL.

regards - h2so4
"One Handed Man [ OHM# ]" <O_H_M{at}BTInt ernet{dot}com> wrote
There is a System.Director yServices .NET DLL which you could add a
reference to. This deals with Active Directory, is this what you are
looking for ?

Regards - OHM

h2so4 wrote:
I want to write a program that will query an ldap directory. can I
use adsi or ado to do that, If yes how ?

tx


--
Best Regards - OHM

O_H_M{at}BTInte rnet{dot}com
Nov 20 '05 #4
let's reformulate my request :

I am looking for an ldap object that could allow me to issue any ldap
request against any type of ldapV3 compliant directories. This using VB. I
am wondering if I can do that with ADO which knows about an "active
directory provider" which allows to issue ldap request. But I suspect I need
another provider, something like "generic ldap provider". Any suggestion is
welcome.

Thanks

"One Handed Man [ OHM# ]" <O_H_M{at}BTInt ernet{dot}com> wrote in message
news:eF******** *****@TK2MSFTNG P12.phx.gbl...
If you are referring to Active Directory Service Interfaces Overview (
ADSI ) this allows programmers to access Active Directory objects. You need to add a reference to the Systm.Directory Services DLL in your project
window. Then you can access the object model from this. It's not something I have had to do, but I kow its there. Other than that I'm not sure what you
are trying to acheive.

As far as ADO is concerned ( ADO.NET ), in the NET framework. This is for
database connectivity and data manipulation. Is this what you actually want ?

Regards - OHM

h2so4 wrote:
hi OHM#

What I want to do is to access data in another directory than AD, I
would like to know if this is possible via ADSI or ADO or any other
.net DLL.

regards - h2so4
"One Handed Man [ OHM# ]" <O_H_M{at}BTInt ernet{dot}com> wrote
There is a System.Director yServices .NET DLL which you could add a
reference to. This deals with Active Directory, is this what you are
looking for ?

Regards - OHM

h2so4 wrote:
I want to write a program that will query an ldap directory. can I
use adsi or ado to do that, If yes how ?

tx


--
Best Regards - OHM

O_H_M{at}BTInte rnet{dot}com

Nov 20 '05 #5

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

Similar topics

3
4973
by: jeremy | last post by:
Hello. I have an asp.net application that resides on a non-DC / BDC Sharepoint Server (although it is logged into the domain). The application will perform lookups based on the current user (integrated auth) to an LDAP server which requires no login (AuthenticationTypes.None). When I run it, I get the following ambiguous error: Security Exception Description: The application attempted to perform an operation not allowed
0
2148
by: sunmiester | last post by:
I have an ASP page that retrieves user info. The page runs fine on XP Pro IIS 5.1, however, when i try to run it from a server running W2k Server SP4 or W2K3, it breaks and i get the following error: Error Type: Microsoft VBScript runtime (0x800A000D) Type mismatch Code:
7
6797
by: Amar | last post by:
I am trying to connect to my college LDAP directory using ASP.NET. This LDap does not have security as it returns only user demographic information. i do not need to bind with a username or credentials. What i am trying to do is, i am trying to look up all the information for the user with user id 'testuser'. The following is the Vb.net code for my aspx page: Dim oRoot As DirectoryEntry = New...
5
1510
by: Tim::.. | last post by:
Hi can someone please tell me how I change this directory service query so that it searches through each record in the active directory and returns all the accounts! At the moment I can only get the query to return one account at a time! I presume I have to create some kind of loop on the following so I return all the users SAM info???? Dim SamAccount As String = Right(inSAM, Len(inSAM) - InStr(inSAM, "\"))
7
16504
by: kooch54 | last post by:
I am trying to write a script to simply query the group members in an active directory group. I need to use LDAP to make sure I capture any global global group nestings that may occur. I already have a function that uses WinNT provider to capture this info from NT4 or AD domains and it works beautifully. It just doesn't capture global > global nestings. I am having great difficulties in getting this to work on AD though with ldap. I...
2
2657
by: HamishC | last post by:
Hi all, I have been knocking my head against this one for a few days -- haven't been able to find a solution to this anywhere so hopefully someone can help. Situation: A really simple LDAP that searches for a users AD account - it works for some users, not for others. More bizarrely, for some people it seems to work occassionally. Setup: This is an internal intranet. ASP pages are served from IIS 6 on a WIN 2003 Server box. Annon Access is...
0
4155
by: justintaitt | last post by:
Hi, I am new to active directory and am trying to query it for the user name and ID of members of a group to populate a drop down list in the form: firstname lastname (userID) When I run the page which calls this function through visual studio it works fine and the drop down list is populated. However when I run the page over the intranet I get this error. Unknown error (0x8000500c) Description: An unhandled exception occurred during the...
7
7023
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...
0
3222
by: rbukkara | last post by:
Hi, I have got the following error while trying to add a user in the LDAP Directory. javax.naming.NameNotFoundException: ; remaining name 'uid=vassila,ou=People,dc=cs,dc=uno,dc=edu' I have given all the attributes which are needed, for the user, in the code and also the proper path where the user has to be added. Please have a look at my code CODE] // This is a class file which stores all the info required for the user
0
8395
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8826
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, 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...
0
8732
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...
0
8605
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
7330
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, 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...
1
6166
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 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...
0
4155
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...
2
1955
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1615
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.