Ask a Question related to ASP.NET Security, Design and Development.
-
Paul Keegstra #1
Forms Authentication - Reporting Services Web Service integration
I am working on an asp.net application which requires forms authentication as
the method for authenticating the web application using the underlying Active
Directory as the user store.
I have created my Forms Authentication process using the methods described
in some MSDN samples and that works just great.
The question/issue I have is this process results in the creation of a forms
authentication ticket and setting of the Context.User to a GenericPricipal
object. Now, another part of the application needs to run reports that are
defined in SQL Server Reporting Services by integrating the solution via the
reporting services web service (vs. a URL link).
In my code to invoke the web service, I have to set the credentials on the
reporting services web service object to something other than
system.net.credentialcache.defaultcredentials or I end up with the
credentials from the aspnet service account. I've tried setting <identity
impersonate="true" /> in my web.config but that didn't do it. I can get it
working if I set my credentials to a new instance of the network credentials
class:
rs.credentials = new
system.net.NetworkCredentials("username","password ","domain").
Unfortunately, I can only seem to make this work by hardcoding the username,
password, and domain.
Is there any way to map a GenericPrincipal instance's properties to create a
valid NetworkCredentials instance? That seems to be the solution I need, but
I can't retrieve the password from the GenericPrincipal nor can I get it from
the FormsAuthenticationTicket (unless you have some suggestion in that
regard).
I would appreciate any suggestions.
--
Paul
Paul Keegstra Guest
-
How to use Windows credentials to call reporting services web service thru Coldfusion
I am currently looking at calling reporting services 2005 web service with coldfusionMX 7 using Windows integrated security from Mister X . I... -
How to use Windows credentials to call reporting services web service thru Colfusion
I am currently looking at calling reporting services 2005 web service with coldfusionMX 7 using Windows integrated security from Mister X . Any... -
Windows XP Pro Service Pack 2 X Forms Authentication
Hey guys, I have Windows XP Professional running on my development machine. Recently I updated to Service Pack 2 and since then the Forms... -
Forms Authentication- Browser / service Pack issues?
I have multiple machines, some with 2000, some with XP, another with 2003 server. The problem I am having is that on some machines the re-direction... -
Web Services and Forms Authentication Question
Hello, I'm a newbie in Web Services development. At present, we have a web site implement in ASP.NET with C#. We want to add some web service on... -
Patrick Olurotimi Ige #2
Re: Forms Authentication - Reporting Services Web Service integration
Paul i guess since ur forms Auth is using Active Directory ..Reporting
services(security) should be integrated since its on the same Domain and
i guess ur IIS is member of the domain too...
I believe <identity impersonate="true" />(impersonating the USER should
be able to carry the users TOKEN across applications)
should work for you too..
The only thing is that Forms Auth must have Anonymous Access clicked
b-cos of the cookies used..
Can you pls explain ur scenario again..
Patrick
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Patrick Olurotimi Ige Guest
-
Ramadass #3
Re: Forms Authentication - Reporting Services Web Service integration
The credentials in the CredentialCache and the Principal objects are not
directly compatible( at least i couldnt get my Principal to translate into
Network credentials). What you could do is use security features in the web
service. If you are using WSE 2.0, then you could send the username and
password via the username token and validate the user at the reporting
service, using these credentials.
Hope this helps
Ramadass
"Paul Keegstra" <PaulKeegstra@discussions.microsoft.com> wrote in message
news:54CC434B-AE9F-4159-8876-20FC10FB0360@microsoft.com...as> I am working on an asp.net application which requires forms authenticationActive> the method for authenticating the web application using the underlyingforms> Directory as the user store.
>
> I have created my Forms Authentication process using the methods described
> in some MSDN samples and that works just great.
>
> The question/issue I have is this process results in the creation of aare> authentication ticket and setting of the Context.User to a GenericPricipal
> object. Now, another part of the application needs to run reports thatthe> defined in SQL Server Reporting Services by integrating the solution viait> reporting services web service (vs. a URL link).
>
> In my code to invoke the web service, I have to set the credentials on the
> reporting services web service object to something other than
> system.net.credentialcache.defaultcredentials or I end up with the
> credentials from the aspnet service account. I've tried setting <identity
> impersonate="true" /> in my web.config but that didn't do it. I can getcredentials> working if I set my credentials to a new instance of the networkusername,> class:
>
> rs.credentials = new
> system.net.NetworkCredentials("username","password ","domain").
>
> Unfortunately, I can only seem to make this work by hardcoding thea> password, and domain.
>
> Is there any way to map a GenericPrincipal instance's properties to createbut> valid NetworkCredentials instance? That seems to be the solution I need,from> I can't retrieve the password from the GenericPrincipal nor can I get it> the FormsAuthenticationTicket (unless you have some suggestion in that
> regard).
>
> I would appreciate any suggestions.
>
> --
> Paul
Ramadass Guest
-
Scott Levy #4
Forms Authentication - Reporting Services Web Service integration
Nice post. Here’s a tool to use to create and publish your report online in minutes, without coding.
Scott Levy Guest



Reply With Quote

