Re: HELP PLEASE The request failed with HTTP status 401: Access Denied.

From: nu-k-ar (nospam@plz.com)
Date: 11/26/02


From: "nu-k-ar" <nospam@plz.com>
Date: Tue, 26 Nov 2002 17:19:38 +0100


1.) turn on all your security policy logging

2.) check if u have an real login (means kerberos token)
3.) if u go to an remote sql-server (integrated sec), mark u're web-service
server "for delegation" in the AD
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q283201

4.) disable integrated sec on the web-server cause integrated is stronger
than basic

5.) if u go with integrated then u deliver a kerberos token

isent it NetWorkCredential.getGredential(URI)
cred.user
cred.pass
cred.realm

check your security logs...

blaaa....

.::[nu-k-ar]::

"John" <jonashbaugh@hotmail.com> wrote in message
news:#2ltUjVlCHA.2036@tkmsftngp07...
> We have basic authentication on through IIS. We are running a win xp pro
> server. When trying to access the site via a browser I get the login and
> password page. I put in the valid login and password and I am able to
access
> the site. However through our code we cannot access the site
automatically.
> I am missing something? Thanks in advance. This site is accessible via the
> internet.
>
> Private Sub btnLogin_Click(ByVal sender As System.Object, ByVal e As
> System.Web.UI.ImageClickEventArgs) Handles btnLogin.Click
>
> Dim Service As New localhost.ABCService()
>
> Dim credentials As System.Net.NetworkCredential = New
> System.Net.NetworkCredential("USeR", "xxxxxx")
>
> Service.Credentials = credentials
>
> Dim Info As String = Service.Login(LCase(txtUser.Text),
> LCase(txtPassword.Text), LCase(txtCompany.Text))
>
> Dim str As String
>
> If Info = "Error" Then
>
> Response.Redirect("login_err.aspx")
>
> End IF
>
> End Sub
>
>



Relevant Pages

  • Re: ADO connections question
    ... I have a module which creates the ADO connection object to validates the ... Function dbLogin(txtUser As String, txtPword As String, txtServer As String, ... I have a specific login form that calls the dbLogin function as shown below: ... Dim strCriteria As String ...
    (microsoft.public.access.adp.sqlserver)
  • Custom login will not work
    ... When I started a new ASP project I was eager to use the login facilities ... Dim authTicket As FormsAuthenticationTicket ... Dim cookieName As String = FormsAuthentication.FormsCookieName ... PersonID = CType, Integer) ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Login help
    ... the user login name from the system all i want is to record them using the ... Private Sub Command2_Click ... Dim strUIdCheck As Variant ... Dim strErrorMessage As String ...
    (microsoft.public.access.devtoolkits)
  • RE: Login help
    ... the user login name from the system all i want is to record them using the ... Private Sub Command2_Click ... Dim strUIdCheck As Variant ... Dim strErrorMessage As String ...
    (microsoft.public.access.devtoolkits)
  • Re: Getting NT User Login Names from Access 2000 or 2003
    ... > I have a function called fOSUserName, that I found, to get the login name ... > "GetUserNameA" (ByVal lpBuffer As String, ... > Public Function fOSUserName() As String ... > Dim lngLen As Long ...
    (microsoft.public.access.formscoding)