Hi,
I have a custom aspx page which access RS (Reporting Services) using the
webservice interface.
I'm using the delegation (defautcredentialcache) to send the user
authentication to RS.
RS and my web application are on the same server.
this works fine in 2 cases:
* NT authentication used in both virtual directories (/reportserver & /
mycustomapp)
* Basic authentication used for /mycustomapp but NT authentication for
/reportserver
But I want to setup the Basic authentication for both the /reportserver & /
mycustomapp virtual folders.
I don't understand why using the default credential cache doesn't works.
my current work around is to detect if I'm in Basic authentication mode,
then a create a networkcredential object base on the current user login &
password.
does it a RS related issue? or an ASP.Net one? 6 1686
Hello,
I've had issues with webservices and credential delegation many times.
I have a quick article I wrote here that may help. If not let me know and
I can try to help out.
article http://www.criticalsites.com/dlaflot...ate=2004-08-31
Good Luck,
Duane
--
Duane Laflotte
MCSE, MCSD, MCDBA, MCSA, MCT, MCP+I dl*******@criticalsites.com http://www.criticalsites.com/dlaflotte
"Jéjé" <willgart_A_@hotmail_A_.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl... Hi,
I have a custom aspx page which access RS (Reporting Services) using the webservice interface.
I'm using the delegation (defautcredentialcache) to send the user authentication to RS. RS and my web application are on the same server.
this works fine in 2 cases: * NT authentication used in both virtual directories (/reportserver & / mycustomapp) * Basic authentication used for /mycustomapp but NT authentication for /reportserver
But I want to setup the Basic authentication for both the /reportserver &
/ mycustomapp virtual folders.
I don't understand why using the default credential cache doesn't works. my current work around is to detect if I'm in Basic authentication mode, then a create a networkcredential object base on the current user login & password.
does it a RS related issue? or an ASP.Net one?
mmm
I allready have tested this without more success.
now the only problem I have is this:
* Frontend custom app using Basic authentication
* Reportserver using both NTLM & Basic authentication
in this case, I send the username + password of the active user, but I
receive a permission error!
I think the system try to use the integrated security...
"Duane Laflotte" <dl*******@criticalsites.com> wrote in message
news:O$**************@TK2MSFTNGP09.phx.gbl... Hello, I've had issues with webservices and credential delegation many times. I have a quick article I wrote here that may help. If not let me know and I can try to help out.
article http://www.criticalsites.com/dlaflot...ate=2004-08-31
Good Luck, Duane
-- Duane Laflotte MCSE, MCSD, MCDBA, MCSA, MCT, MCP+I dl*******@criticalsites.com http://www.criticalsites.com/dlaflotte
"Jéjé" <willgart_A_@hotmail_A_.com> wrote in message news:%2****************@TK2MSFTNGP14.phx.gbl... Hi,
I have a custom aspx page which access RS (Reporting Services) using the webservice interface.
I'm using the delegation (defautcredentialcache) to send the user authentication to RS. RS and my web application are on the same server.
this works fine in 2 cases: * NT authentication used in both virtual directories (/reportserver & / mycustomapp) * Basic authentication used for /mycustomapp but NT authentication for /reportserver
But I want to setup the Basic authentication for both the /reportserver & / mycustomapp virtual folders.
I don't understand why using the default credential cache doesn't works. my current work around is to detect if I'm in Basic authentication mode, then a create a networkcredential object base on the current user login & password.
does it a RS related issue? or an ASP.Net one?
If the front end server is using basic auth, are you capturing the user name
and password from that and passing those in your NetworkCredential object or
are you using DefaultCredentials?
Joe K.
"Jéjé" <willgart_A_@hotmail_A_.com> wrote in message
news:ux**************@tk2msftngp13.phx.gbl... mmm I allready have tested this without more success.
now the only problem I have is this: * Frontend custom app using Basic authentication * Reportserver using both NTLM & Basic authentication
in this case, I send the username + password of the active user, but I receive a permission error! I think the system try to use the integrated security...
"Duane Laflotte" <dl*******@criticalsites.com> wrote in message news:O$**************@TK2MSFTNGP09.phx.gbl... Hello, I've had issues with webservices and credential delegation many times. I have a quick article I wrote here that may help. If not let me know and I can try to help out.
article http://www.criticalsites.com/dlaflot...ate=2004-08-31
Good Luck, Duane
-- Duane Laflotte MCSE, MCSD, MCDBA, MCSA, MCT, MCP+I dl*******@criticalsites.com http://www.criticalsites.com/dlaflotte
"Jéjé" <willgart_A_@hotmail_A_.com> wrote in message news:%2****************@TK2MSFTNGP14.phx.gbl... Hi,
I have a custom aspx page which access RS (Reporting Services) using the webservice interface.
I'm using the delegation (defautcredentialcache) to send the user authentication to RS. RS and my web application are on the same server.
this works fine in 2 cases: * NT authentication used in both virtual directories (/reportserver & / mycustomapp) * Basic authentication used for /mycustomapp but NT authentication for /reportserver
But I want to setup the Basic authentication for both the /reportserver & / mycustomapp virtual folders.
I don't understand why using the default credential cache doesn't works. my current work around is to detect if I'm in Basic authentication mode, then a create a networkcredential object base on the current user login & password.
does it a RS related issue? or an ASP.Net one?
yes.
Dim header As String = Page.Request.ServerVariables("HTTP_AUTHORIZATION")
If header.StartsWith("Basic") Or header = "" Then
oServ.Credentials = New
Net.NetworkCredential(Page.Request.ServerVariables ("AUTH_USER"),
Page.Request.ServerVariables("AUTH_PASSWORD"))
Else
oServ.PreAuthenticate = True
oServ.Credentials = Net.CredentialCache.DefaultCredentials
End If
I have also tried with PreAuthenticate = true with basic authentication.
This code works fine if integrated security is disabled for the reportserver
virtual folder (so both web sites used the same security model)
There is a way to force the preferred authentication method used when I call
the webservice?
"Joe Kaplan (MVP - ADSI)" <jo*************@removethis.accenture.com> wrote
in message news:%2****************@TK2MSFTNGP14.phx.gbl... If the front end server is using basic auth, are you capturing the user name and password from that and passing those in your NetworkCredential object or are you using DefaultCredentials?
Joe K.
"Jéjé" <willgart_A_@hotmail_A_.com> wrote in message news:ux**************@tk2msftngp13.phx.gbl... mmm I allready have tested this without more success.
now the only problem I have is this: * Frontend custom app using Basic authentication * Reportserver using both NTLM & Basic authentication
in this case, I send the username + password of the active user, but I receive a permission error! I think the system try to use the integrated security...
"Duane Laflotte" <dl*******@criticalsites.com> wrote in message news:O$**************@TK2MSFTNGP09.phx.gbl... Hello, I've had issues with webservices and credential delegation many times. I have a quick article I wrote here that may help. If not let me know and I can try to help out.
article http://www.criticalsites.com/dlaflot...ate=2004-08-31
Good Luck, Duane
-- Duane Laflotte MCSE, MCSD, MCDBA, MCSA, MCT, MCP+I dl*******@criticalsites.com http://www.criticalsites.com/dlaflotte
"Jéjé" <willgart_A_@hotmail_A_.com> wrote in message news:%2****************@TK2MSFTNGP14.phx.gbl... Hi,
I have a custom aspx page which access RS (Reporting Services) using the webservice interface.
I'm using the delegation (defautcredentialcache) to send the user authentication to RS. RS and my web application are on the same server.
this works fine in 2 cases: * NT authentication used in both virtual directories (/reportserver & / mycustomapp) * Basic authentication used for /mycustomapp but NT authentication for /reportserver
But I want to setup the Basic authentication for both the /reportserver & / mycustomapp virtual folders.
I don't understand why using the default credential cache doesn't works. my current work around is to detect if I'm in Basic authentication mode, then a create a networkcredential object base on the current user login & password.
does it a RS related issue? or an ASP.Net one?
As far as I know you can't force the client to only do one authentication
method, but I could be wrong. Typically, the client and server will
negotiate based on what the server accepts and the client can provide.
What happens if you specify a domain in the NetworkCredential (or does the
AUTH_USER header already have a domain name like "domain\user" or a upn like us**@domain.com?)?
Joe K.
"Jéjé" <willgart_A_@hotmail_A_.com> wrote in message
news:eH**************@TK2MSFTNGP10.phx.gbl... yes.
Dim header As String = Page.Request.ServerVariables("HTTP_AUTHORIZATION")
If header.StartsWith("Basic") Or header = "" Then
oServ.Credentials = New Net.NetworkCredential(Page.Request.ServerVariables ("AUTH_USER"), Page.Request.ServerVariables("AUTH_PASSWORD"))
Else
oServ.PreAuthenticate = True
oServ.Credentials = Net.CredentialCache.DefaultCredentials
End If
I have also tried with PreAuthenticate = true with basic authentication. This code works fine if integrated security is disabled for the reportserver virtual folder (so both web sites used the same security model)
There is a way to force the preferred authentication method used when I call the webservice?
"Joe Kaplan (MVP - ADSI)" <jo*************@removethis.accenture.com> wrote in message news:%2****************@TK2MSFTNGP14.phx.gbl... If the front end server is using basic auth, are you capturing the user name and password from that and passing those in your NetworkCredential object or are you using DefaultCredentials?
Joe K.
"Jéjé" <willgart_A_@hotmail_A_.com> wrote in message news:ux**************@tk2msftngp13.phx.gbl... mmm I allready have tested this without more success.
now the only problem I have is this: * Frontend custom app using Basic authentication * Reportserver using both NTLM & Basic authentication
in this case, I send the username + password of the active user, but I receive a permission error! I think the system try to use the integrated security...
"Duane Laflotte" <dl*******@criticalsites.com> wrote in message news:O$**************@TK2MSFTNGP09.phx.gbl... Hello, I've had issues with webservices and credential delegation many times. I have a quick article I wrote here that may help. If not let me know and I can try to help out.
article http://www.criticalsites.com/dlaflot...ate=2004-08-31
Good Luck, Duane
-- Duane Laflotte MCSE, MCSD, MCDBA, MCSA, MCT, MCP+I dl*******@criticalsites.com http://www.criticalsites.com/dlaflotte
"Jéjé" <willgart_A_@hotmail_A_.com> wrote in message news:%2****************@TK2MSFTNGP14.phx.gbl... > Hi, > > I have a custom aspx page which access RS (Reporting Services) using > the > webservice interface. > > I'm using the delegation (defautcredentialcache) to send the user > authentication to RS. > RS and my web application are on the same server. > > this works fine in 2 cases: > * NT authentication used in both virtual directories (/reportserver & > / > mycustomapp) > * Basic authentication used for /mycustomapp but NT authentication for > /reportserver > > But I want to setup the Basic authentication for both the > /reportserver & / > mycustomapp virtual folders. > > I don't understand why using the default credential cache doesn't > works. > my current work around is to detect if I'm in Basic authentication > mode, > then a create a networkcredential object base on the current user > login & > password. > > does it a RS related issue? or an ASP.Net one? > >
the domain is allready in the auth_user variable.
well... nothing works, so I'm using my workaround.
which is creating a second "reportserver" virtual folder, where only basic
authentication is used, and then there is no problems.
I think RS prefer to use the NT authentication instead-of the basic
authentication.
"Joe Kaplan (MVP - ADSI)" <jo*************@removethis.accenture.com> wrote
in message news:uw**************@TK2MSFTNGP14.phx.gbl... As far as I know you can't force the client to only do one authentication method, but I could be wrong. Typically, the client and server will negotiate based on what the server accepts and the client can provide.
What happens if you specify a domain in the NetworkCredential (or does the AUTH_USER header already have a domain name like "domain\user" or a upn like us**@domain.com?)?
Joe K.
"Jéjé" <willgart_A_@hotmail_A_.com> wrote in message news:eH**************@TK2MSFTNGP10.phx.gbl... yes.
Dim header As String = Page.Request.ServerVariables("HTTP_AUTHORIZATION")
If header.StartsWith("Basic") Or header = "" Then
oServ.Credentials = New Net.NetworkCredential(Page.Request.ServerVariables ("AUTH_USER"), Page.Request.ServerVariables("AUTH_PASSWORD"))
Else
oServ.PreAuthenticate = True
oServ.Credentials = Net.CredentialCache.DefaultCredentials
End If
I have also tried with PreAuthenticate = true with basic authentication. This code works fine if integrated security is disabled for the reportserver virtual folder (so both web sites used the same security model)
There is a way to force the preferred authentication method used when I call the webservice?
"Joe Kaplan (MVP - ADSI)" <jo*************@removethis.accenture.com> wrote in message news:%2****************@TK2MSFTNGP14.phx.gbl... If the front end server is using basic auth, are you capturing the user name and password from that and passing those in your NetworkCredential object or are you using DefaultCredentials?
Joe K.
"Jéjé" <willgart_A_@hotmail_A_.com> wrote in message news:ux**************@tk2msftngp13.phx.gbl... mmm I allready have tested this without more success.
now the only problem I have is this: * Frontend custom app using Basic authentication * Reportserver using both NTLM & Basic authentication
in this case, I send the username + password of the active user, but I receive a permission error! I think the system try to use the integrated security...
"Duane Laflotte" <dl*******@criticalsites.com> wrote in message news:O$**************@TK2MSFTNGP09.phx.gbl... > Hello, > I've had issues with webservices and credential delegation many > times. > I have a quick article I wrote here that may help. If not let me > know and > I can try to help out. > > article > http://www.criticalsites.com/dlaflot...ate=2004-08-31 > > Good Luck, > Duane > > > -- > Duane Laflotte > MCSE, MCSD, MCDBA, MCSA, MCT, MCP+I > dl*******@criticalsites.com > http://www.criticalsites.com/dlaflotte > > > "Jéjé" <willgart_A_@hotmail_A_.com> wrote in message > news:%2****************@TK2MSFTNGP14.phx.gbl... >> Hi, >> >> I have a custom aspx page which access RS (Reporting Services) using >> the >> webservice interface. >> >> I'm using the delegation (defautcredentialcache) to send the user >> authentication to RS. >> RS and my web application are on the same server. >> >> this works fine in 2 cases: >> * NT authentication used in both virtual directories (/reportserver & >> / >> mycustomapp) >> * Basic authentication used for /mycustomapp but NT authentication >> for >> /reportserver >> >> But I want to setup the Basic authentication for both the >> /reportserver & > / >> mycustomapp virtual folders. >> >> I don't understand why using the default credential cache doesn't >> works. >> my current work around is to detect if I'm in Basic authentication >> mode, >> then a create a networkcredential object base on the current user >> login & >> password. >> >> does it a RS related issue? or an ASP.Net one? >> >> > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: bigoxygen |
last post by:
Hi.
I'm using a 3 tier FrontController Design for my web application right
now.
The problem is that I'm finding to have to duplicate a lot of code for
similar functions; for example, listing...
|
by: Rene Pijlman |
last post by:
Section 6.5 "What is delegation?" of the FAQ says:
"Python programmers can easily implement delegation. For example, the
following class implements a class that behaves like a file but converts...
|
by: DPfan |
last post by:
Is the following so-called "delegation"? If not how to make some changes so
that the F class delegates its operation to an E instance.
On the other hand the following code runs without any...
|
by: Kelly D. Jones |
last post by:
I'm having a problem retrieving data from our SQL server.
Here's the scenerio:
SQL Server 2000 running on Windows 2000
ASP.NET/IIS 6 (in IIS 6 process mode) running on Win2k3
the client is...
|
by: Tony Johansson |
last post by:
Hello!
What does it mean with delegation and can you give me one example.
//Tony
|
by: ALI-R |
last post by:
I'm writing a webpart which is supposed to connect to a Webserice in our
interanet.I am using "RSService.Credentials =
System.Net.CredentialCache.DefaultCredentials;"to Authenticate to the...
|
by: |
last post by:
Hi,
I am working on a n-tier app using remoting. I am using the VS 2005 beta
2. My server needs to access a remote resources on behalf on the connected
user.
I have configured my server like :...
|
by: russell.lane |
last post by:
I'm building out a pretty standard n-tier web application. The stack
includes application/presentation, biz logic, and data access layers on top
of an SQL server back end.
We want to use...
|
by: JimLad |
last post by:
In advance, sorry if this is the wrong group...
SQL Server 2000 SP3 on Server 2003. SQL Account and Computer both
Trusted for Delegation. Given SPN.
IIS 5.0 on W2000. Kerberos enabled....
|
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: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |