By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,649 Members | 1,808 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,649 IT Pros & Developers. It's quick & easy.

ASP.NET and Active Directory Authentication

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.