473,394 Members | 1,761 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,394 software developers and data experts.

LDAP servername (VB.NET/ASP.NET)

Hello!!
I have been researching on this for a while. If someone can show me a
pointer it would be great.

I have an LDAP server on my local machine.

I am creating a new instance of DirectoryEntry using:

New DirectoryEntry("LDAP://" & ldapServerName & _
"/dc=anydomain,dc=com", "anyusername", "anypassword",
AuthenticationTypes.None)

Can anyone explain me what exactly do i have to pass in the servername
?
I tried passing :

localhost
127.0.0.1
localhost:389
127.0.0.1:389

But every time, it shows some error or the other. Some of these errors
are:
Server not available
some number 00x80005000 etc..

TIA

Dec 1 '06 #1
2 4526
Hi,

Use this static property in the place of the first argument, all the
things will be take care by domain class..
System.DiagnoticService.ActiveDirectory.Domain.Get CurrentDomain().GetDomainEnry().path
all the best .

On Dec 2, 4:36 am, "Christina" <chrisgir...@gmail.comwrote:
Hello!!
I have been researching on this for a while. If someone can show me a
pointer it would be great.

I have an LDAP server on my local machine.

I am creating a new instance of DirectoryEntry using:

New DirectoryEntry("LDAP://" & ldapServerName & _
"/dc=anydomain,dc=com", "anyusername", "anypassword",
AuthenticationTypes.None)

Can anyone explain me what exactly do i have to pass in the servername
?
I tried passing :

localhost
127.0.0.1
localhost:389
127.0.0.1:389

But every time, it shows some error or the other. Some of these errors
are:
Server not available
some number 00x80005000 etc..

TIA
Dec 2 '06 #2
Thanks !!
I am using framework 1.1. Couldnt apply the solution in my framework. I
believe its for framework 2.0. Is there some way I can apply it on
framework 1.1 ?
Kodali Ranganadh wrote:
Hi,

Use this static property in the place of the first argument, all the
things will be take care by domain class..
System.DiagnoticService.ActiveDirectory.Domain.Get CurrentDomain().GetDomainEnry().path
all the best .

On Dec 2, 4:36 am, "Christina" <chrisgir...@gmail.comwrote:
Hello!!
I have been researching on this for a while. If someone can show me a
pointer it would be great.

I have an LDAP server on my local machine.

I am creating a new instance of DirectoryEntry using:

New DirectoryEntry("LDAP://" & ldapServerName & _
"/dc=anydomain,dc=com", "anyusername", "anypassword",
AuthenticationTypes.None)

Can anyone explain me what exactly do i have to pass in the servername
?
I tried passing :

localhost
127.0.0.1
localhost:389
127.0.0.1:389

But every time, it shows some error or the other. Some of these errors
are:
Server not available
some number 00x80005000 etc..

TIA
Dec 4 '06 #3

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

Similar topics

3
by: bwahahahaha | last post by:
Hi, Is there a library in .NET for LDAP? Thanks.
0
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...
0
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...
5
by: Ram | last post by:
Hey, I'v managed to set the "User Must Change Password At Next Logon" flag on the LDAP protocol, Using the - "pwdLastSet" property - by setting it to - "0" (for on) or - "-1" (for off). The...
2
by: Tash | last post by:
I am having a weird problem. I am trying to use the following code to query active directory. Function IsExistInAD(ByVal loginName As String) As Boolean Dim userName As String =...
8
by: BookerW | last post by:
I have the following line of code, but i don't think i am providing the right syntax: Dim oAllEntries As New DirectoryEntry(LDAP & LDAP_DOMAIN_SERVER & LDAP_USERS, LDAP_DOMAIN & sUserName,...
2
by: sweetpotatop | last post by:
Hi, I have an asp.net applicaiton in which I want to control the accessibility. Does anyone has any idea how I can access the Lotus Notes address book through LDAP? That way, I can restrict...
0
by: Sunshine | last post by:
Hello all and thank you for your time. I have an app that uses DirectorySearcher. Everything works on my localhost using the following path: LDAP://OU=OURusers,DC=domain,DC=com. However, when I...
1
by: munkee | last post by:
Im back... with more ActiveDirectory questions. Firslty I will show you my output: Output 1 - Search based on department name: The filter string:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
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
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...

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.