Re: ASP.NET and Active Directory Authentication

From: Paul Clement (UseAdddressAtEndofMessage_at_swspectrum.com)
Date: 01/05/05

  • Next message: Doug R: "Determining IsInRole over a VPN"
    Date: Wed, 05 Jan 2005 12:07:49 -0600
    
    

    On 5 Jan 2005 05:43:35 -0800, santa@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/default.asp?url=/library/en-us/sds/sds/active_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 ~~~ pclement@ameritech.net
    Microsoft MVP (Visual Basic)


  • Next message: Doug R: "Determining IsInRole over a VPN"

    Relevant Pages

    • Re: ASP.NET and Active Directory Authentication
      ... but not having much luck. ... Error authenticating user. ... specified domain either does not exist or could not be contacted ... Try the following code to determine what the root LDAP path is for your domain: ...
      (microsoft.public.dotnet.general)
    • ASP.NET and Active Directory Authentication
      ... but not having much luck. ... On the MS Website I found this example: ... Error authenticating user. ... specified domain either does not exist or could not be contacted ...
      (microsoft.public.dotnet.security)
    • ASP.NET and Active Directory Authentication
      ... but not having much luck. ... On the MS Website I found this example: ... Error authenticating user. ... specified domain either does not exist or could not be contacted ...
      (microsoft.public.dotnet.general)

    Loading