dbTalk Databases Forums  

Username returns blank in AS2005 via ASP.NET 2.0 (CellSetGrid-App)

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Username returns blank in AS2005 via ASP.NET 2.0 (CellSetGrid-App) in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
MSaalmann
 
Posts: n/a

Default Username returns blank in AS2005 via ASP.NET 2.0 (CellSetGrid-App) - 09-20-2006 , 03:27 AM






Hi,

we currently facing a problem with AS2005 and ASP.NET 2.0 impersonation
/ delegation under W2k3:

We use a W2k3 SP1 box with IIS 6.0 / ASP.NET 2.0 and AS2005 RTM. User
access Cubes via a web-application based on the CellSetGrid
(http://www.sqlserveranalysisservices...GridIntro.htm).
Integrated Windows Authentification for SSO, Impersonation in
web.config and Integrated Security for AS-Access are all activated.

If the ASP Worker Process and the AS are running under Local System
account, everything works fine (SSO via Kerberos) except that the
Username() MDX-Function returns a blank string. If we switch to Basic
Authentification, UserName contains the expected value.

I thought about a Double Hop problem but because of the fact that all
services are running on the same machine this should not be the
problem? Or is this a bug in AS2005?

TnXs for replies,

Martin Saalmann


Reply With Quote
  #2  
Old   
Jéjé
 
Posts: n/a

Default Re: Username returns blank in AS2005 via ASP.NET 2.0 (CellSetGrid-App) - 09-20-2006 , 08:42 AM






what is your connectionstring?

in the locale group policy (gpedit.msc)
under the Computer > Windows > Security settings > Local Policies > user
rights assignment
verify if the account used for the application pool is under these options:
Act as part of the OS
Impersonate a client after authentication

using the SQL Profiler, verify which account is used when you query the
cubes.


"MSaalmann" <saalmann (AT) weite-welt (DOT) com> wrote

Quote:
Hi,

we currently facing a problem with AS2005 and ASP.NET 2.0 impersonation
/ delegation under W2k3:

We use a W2k3 SP1 box with IIS 6.0 / ASP.NET 2.0 and AS2005 RTM. User
access Cubes via a web-application based on the CellSetGrid
(http://www.sqlserveranalysisservices...GridIntro.htm).
Integrated Windows Authentification for SSO, Impersonation in
web.config and Integrated Security for AS-Access are all activated.

If the ASP Worker Process and the AS are running under Local System
account, everything works fine (SSO via Kerberos) except that the
Username() MDX-Function returns a blank string. If we switch to Basic
Authentification, UserName contains the expected value.

I thought about a Double Hop problem but because of the fact that all
services are running on the same machine this should not be the
problem? Or is this a bug in AS2005?

TnXs for replies,

Martin Saalmann




Reply With Quote
  #3  
Old   
MSaalmann
 
Posts: n/a

Default Re: Username returns blank in AS2005 via ASP.NET 2.0 (CellSetGrid-App) - 09-20-2006 , 11:22 AM




Jéjé wrote:
Quote:
what is your connectionstring?
<add key="ConnectionString" value="Provider=MSOLAP.2;Data
Source=localhost;Catalog=Name;Integrated Security=SSPI"/>

Quote:
in the locale group policy (gpedit.msc)
under the Computer > Windows > Security settings > Local Policies > user
rights assignment
verify if the account used for the application pool is under these options:
Act as part of the OS
Impersonate a client after authentication
I did both but with no affect. Local System should have these rights
anyway?

Quote:
using the SQL Profiler, verify which account is used when you query the
cubes.
I already did this. The Profiler shows the correct User - so
SSPI-Authentification from the above Connection String seems to work.
Only the MDX Username() Function is blank/empty/null/"".

Regards,

Martin



Reply With Quote
  #4  
Old   
Jéjé
 
Posts: n/a

Default Re: Username returns blank in AS2005 via ASP.NET 2.0 (CellSetGrid-App) - 09-20-2006 , 11:40 AM



oohh... you use the AS2000 provider (MSOLAP.2)
try using MSOLAP.3

"MSaalmann" <saalmann (AT) weite-welt (DOT) com> wrote


Jéjé wrote:
Quote:
what is your connectionstring?
<add key="ConnectionString" value="Provider=MSOLAP.2;Data
Source=localhost;Catalog=Name;Integrated Security=SSPI"/>

Quote:
in the locale group policy (gpedit.msc)
under the Computer > Windows > Security settings > Local Policies > user
rights assignment
verify if the account used for the application pool is under these
options:
Act as part of the OS
Impersonate a client after authentication
I did both but with no affect. Local System should have these rights
anyway?

Quote:
using the SQL Profiler, verify which account is used when you query the
cubes.
I already did this. The Profiler shows the correct User - so
SSPI-Authentification from the above Connection String seems to work.
Only the MDX Username() Function is blank/empty/null/"".

Regards,

Martin




Reply With Quote
  #5  
Old   
Akshai Mirchandani [MS]
 
Posts: n/a

Default Re: Username returns blank in AS2005 via ASP.NET 2.0 (CellSetGrid-App) - 09-20-2006 , 01:45 PM



Martin, I think you need SP1...

Thanks,
Akshai

--
Try out the MSDN Forums for Analysis Services at:
http://forums.microsoft.com/MSDN/Sho...ID=83&SiteID=1

This posting is provided "AS IS" with no warranties, and confers no rights
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.

"Jéjé" <willgart_A_ (AT) hotmail_A_ (DOT) com> wrote

Quote:
oohh... you use the AS2000 provider (MSOLAP.2)
try using MSOLAP.3

"MSaalmann" <saalmann (AT) weite-welt (DOT) com> wrote in message
news:1158769325.862606.44410 (AT) h48g2000cwc (DOT) googlegroups.com...

Jéjé wrote:
what is your connectionstring?

add key="ConnectionString" value="Provider=MSOLAP.2;Data
Source=localhost;Catalog=Name;Integrated Security=SSPI"/


in the locale group policy (gpedit.msc)
under the Computer > Windows > Security settings > Local Policies > user
rights assignment
verify if the account used for the application pool is under these
options:
Act as part of the OS
Impersonate a client after authentication

I did both but with no affect. Local System should have these rights
anyway?

using the SQL Profiler, verify which account is used when you query the
cubes.

I already did this. The Profiler shows the correct User - so
SSPI-Authentification from the above Connection String seems to work.
Only the MDX Username() Function is blank/empty/null/"".

Regards,

Martin





Reply With Quote
  #6  
Old   
MSaalmann
 
Posts: n/a

Default Re: Username returns blank in AS2005 via ASP.NET 2.0 (CellSetGrid-App) - 09-21-2006 , 08:46 AM




Akshai Mirchandani [MS] wrote:
Quote:
Martin, I think you need SP1...
I installed SP1 today and the error is gone.

Thanks,

Martin



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.