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

LDAP and Domain Connection

Hi!

I have an application that I have developed on a Win2K3 server using vb.net.
The application binds itself to an LDAP provider, which is the name of an
active directory domain, ie LDAP://DC=TEST,DC=LOCAL

The application works fine on this server.

I have just installed an XP workstation into that domain, and I know that
DNS etc is fine because firstly the machine is IN the domain, and I can ping
test.local, fo instance.

However, when I try to run the application from the workstation, I receive
an error that the domain either does not exist or could not be contacted.

I know the LDAP string I am using is correct, so what could the problem
be???

Any help would be gratefully appreciated!

Thanks

Phil
Nov 20 '05 #1
2 4605
Phil
I can help you if you post a little more code. I don't really know what
it is you are trying to do. It may be as simple as permissions. Do you have
read access to active directory, at least at the domain level at which you
are binding to?

Also, you should try to bind to the domain as dynamically as possible, I
think a domain can be renamed in 2003 so take that into account.

Dim Root As New DirectoryEntry("LDAP:/RootDSE")
Dim DomainNamingContext As String =
Root.Properties("defaultNamingContext").Value
Root = New DirectoryEntry("LDAP://" & DomainNamingContext)

Jared

"Phil Kelly" <ph********@infatech.com> wrote in message
news:cd**********@titan.btinternet.com...
Hi!

I have an application that I have developed on a Win2K3 server using
vb.net.
The application binds itself to an LDAP provider, which is the name of an
active directory domain, ie LDAP://DC=TEST,DC=LOCAL

The application works fine on this server.

I have just installed an XP workstation into that domain, and I know that
DNS etc is fine because firstly the machine is IN the domain, and I can
ping
test.local, fo instance.

However, when I try to run the application from the workstation, I receive
an error that the domain either does not exist or could not be contacted.

I know the LDAP string I am using is correct, so what could the problem
be???

Any help would be gratefully appreciated!

Thanks

Phil

Nov 20 '05 #2
Sorted! The user was not logged on to the domain.

I suspect I should be checking this before the app runs!
"Phil Kelly" <ph********@infatech.com> wrote in message
news:cd**********@titan.btinternet.com...
Hi!

I have an application that I have developed on a Win2K3 server using vb.net. The application binds itself to an LDAP provider, which is the name of an
active directory domain, ie LDAP://DC=TEST,DC=LOCAL

The application works fine on this server.

I have just installed an XP workstation into that domain, and I know that
DNS etc is fine because firstly the machine is IN the domain, and I can ping test.local, fo instance.

However, when I try to run the application from the workstation, I receive
an error that the domain either does not exist or could not be contacted.

I know the LDAP string I am using is correct, so what could the problem
be???

Any help would be gratefully appreciated!

Thanks

Phil

Nov 20 '05 #3

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

Similar topics

3
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...
7
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...
2
by: CodeRazor | last post by:
I am trying to create an LDAP connection. I have managed to connect to "LDAP://myServerName" I now want to connect further down the directory tree, to a particular user group. I have tried...
2
by: Tim::.. | last post by:
Hi can someone please tell me why I can't put the following LDAP path into my web.config fill as an <appSetting> and how do I get it to work! <appSettings> <add key="strLDAP"...
5
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...
2
by: Neil via .NET 247 | last post by:
I have some code vb.net winforms, that works fine most of the time but stops working occasionally such as right now. The code is this Dim objDE As New DirectoryEntry("LDAP://" & DomainName) Dim...
7
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...
1
by: Erick Perez - Quadrian Enterprises, S.A. | last post by:
Hi, I have a MS Windows AD domain, and have one OU with more tan 1000 users objects. When I try to read it, I hit the 1000 limit of AD while returning objects, so I'm asking for advice as to how...
5
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...

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.