ASP.NET and Active Directory Authentication

  • Thread starter Thread starter Sjaak
  • Start date Start date
S

Sjaak

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/d...ve_directory_authentication_from_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!
 
On 5 Jan 2005 05:43:35 -0800, (e-mail address removed) (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/d...ve_directory_authentication_from_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 ~~~ (e-mail address removed)
Microsoft MVP (Visual Basic)
 
Back
Top