473,326 Members | 2,173 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,326 software developers and data experts.

ASP.NET and Active Directory Authentication

Hi All,

I'm trying to get an ASP.NET Application to work with Active Directory
but not having much luck.

On the MS Website I found this example :
http://msdn.microsoft.com/library/de...m_asp__net.asp

I've followed every step explained but when I run it try to login I
get
the error : Error authenticating. Error authenticating user. The
specified domain either does not exist or could not be contacted

The LDAP connect string is 100% correct.

Any idea's what could be going wrong??

Also I tried a demo from http://www.codeproject.com/aspnet/adsi1.asp
but also this doesn't work, with this one I get the error :
**The specified domain either does not exist or could not be
contacted**

It's driving me crazy! Any help or suggestion are welcome.

Thanks!
Nov 22 '05 #1
1 1717
On 5 Jan 2005 05:43:35 -0800, sa***@emailme.nu (Sjaak) wrote:

¤ Hi All,
¤
¤ I'm trying to get an ASP.NET Application to work with Active Directory
¤ but not having much luck.
¤
¤ On the MS Website I found this example :
¤ http://msdn.microsoft.com/library/de...m_asp__net.asp
¤
¤ I've followed every step explained but when I run it try to login I
¤ get
¤ the error : Error authenticating. Error authenticating user. The
¤ specified domain either does not exist or could not be contacted
¤
¤ The LDAP connect string is 100% correct.
¤
¤ Any idea's what could be going wrong??
¤
¤ Also I tried a demo from http://www.codeproject.com/aspnet/adsi1.asp
¤ but also this doesn't work, with this one I get the error :
¤ **The specified domain either does not exist or could not be
¤ contacted**
¤
¤ It's driving me crazy! Any help or suggestion are welcome.
¤

Try the following code to determine what the root LDAP path is for your domain:

Dim RootDSE As New DirectoryServices.DirectoryEntry("LDAP://RootDSE")
Response.Write RootDSE.Properties("DefaultNamingContext").Value
Paul ~~~ pc******@ameritech.net
Microsoft MVP (Visual Basic)
Nov 22 '05 #2

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

Similar topics

2
by: Jay Chan | last post by:
We have just installed a SQL Server 2000 (SP 3A) onto a computer that has Windows-2003 Server on it. Now, we cannot get access to that database server from other computers. Seem like this may be an...
10
by: huzz | last post by:
I have web application that quaries the Active Directory to get user details.. everything works fine but someday I'll get System.Runtime.InteropServices.COMExection and if I restart the client...
7
by: - Steve - | last post by:
I have forms based authentication working, using my Active Directory for authentication. I have a web page that creates a user in active directory. When I was using IIS authentication it worked...
1
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...
9
by: Patrick | last post by:
I have an ASP.NET page that searches for someone in the corporate Active Directory. It had been working fine until recently when I changed from Basic Authentication on IIS6 back to Integrated...
6
by: varkey.mathew | last post by:
Dear all, Bear with me, a poor newbie(atleast in AD).. I have to authenticate a user ID and password for a user as a valid Active Directory user or not. I have created the IsAuthenticated...
4
by: Patrick.O.Ige | last post by:
If i want to generate a menu structure depending on who is logged in in an intranet system(using windows authentication) is it better to use the GROUPS in Active Directory or to move the Active...
4
by: pjdouillard | last post by:
Hello all, Here is the context of my problem: We have an ASP.NET 1.1 application that has its own application pool setup and that runs under the identity of a NT Domain service account (this...
10
by: Hriday | last post by:
Hi there, Please help me..It is urgent This is Hriday, working on windows authentication with Active Directory... My requirment is when a user sends a request to my web Applicatoin I want to...
2
by: P Webster | last post by:
We recently moved a web site that validated user credentials in Active Directory from IIS 5.1 to IIS 6, and the validation code no longer works. The web.config file is set to Windows authentication...
1
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...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.