Answered by:
Connect to a cube with Integrated WIndows Sercurity for Windows user with computer outside the domain

Question
-
Hello,I am trying to connect to an MSSAS cube with a windows user ( and i need this user to be the end user that connect to the cube) from outside the domain.It will be .Net application.I use msmdpump.dll before but the thing is it impersonate the connection so the user that connect to the Cube is not the real client user with is a problem for me because i like to manage the security throw roles.
SSRS is able to do what i am trying to achieve ( it ask you your domain user and password) then connect to the cube with these credential which is great,but i do that ?
With ADOMD.Net how do you provide windows user/password in the connection string ?
I tryed to only active windows security access with IIS and MSSAS but it's not working with a computer outside the domain even if in excel i provide a windows user/password.
Vincent
Friday, June 13, 2014 12:52 AM
Answers
-
If you connect with ADOMD.NET and are already running under a service account, and if that service account user is an SSAS admin, you can specify EffectiveUserName=YOURDOMAIN\RealEndUser in the connection string. That's what SSRS is doing. I discussed this here: http://www.artisconsulting.com/blogs/greggalloway/Lists/Posts/Post.aspx?ID=18
http://artisconsulting.com/Blogs/GregGalloway
- Edited by GregGallowayMVP Sunday, June 15, 2014 10:50 PM
- Proposed as answer by Elvis Long Thursday, June 19, 2014 5:50 AM
- Marked as answer by Elvis Long Monday, June 23, 2014 2:50 AM
Sunday, June 15, 2014 10:46 PM
All replies
-
With ADOMD.Net how do you provide windows user/password in the connection string ?
Hello Vincent,
See MSDN Connection String Properties (Analysis Services) for all available properties; addtitional: AdomdConnection.ConnectionString Property =>
Olaf Helper
[ Blog] [ Xing] [ MVP]Friday, June 13, 2014 7:02 AM -
If you connect with ADOMD.NET and are already running under a service account, and if that service account user is an SSAS admin, you can specify EffectiveUserName=YOURDOMAIN\RealEndUser in the connection string. That's what SSRS is doing. I discussed this here: http://www.artisconsulting.com/blogs/greggalloway/Lists/Posts/Post.aspx?ID=18
http://artisconsulting.com/Blogs/GregGalloway
- Edited by GregGallowayMVP Sunday, June 15, 2014 10:50 PM
- Proposed as answer by Elvis Long Thursday, June 19, 2014 5:50 AM
- Marked as answer by Elvis Long Monday, June 23, 2014 2:50 AM
Sunday, June 15, 2014 10:46 PM -
Thanks a lot. So if i understand correctly with ADOMD.NET there is a way to connect as an admin but impersonate the connection so SSAS get the end user and i can apply my role based security ?
All the best
Vincent
Monday, June 16, 2014 12:26 AM -
Monday, June 16, 2014 2:29 AM
-
Thanks,
So 2 questions ( Thanks for the article btw) :
Do i need an ISA server ( i can't do that ) ?
Do i need to activate Kerberos ( That's not an issue,i just need to be carrefull with my AD) ?
Vincent
Monday, June 16, 2014 2:33 AM -
You don't need ISA for this scenario. You don't need full Kerberos but you will need an SPN for SSAS setup unless it is running under LOCAL SYSTEM which is able to register an SPN on the fly. Try it and see if it works now.Monday, June 16, 2014 2:48 AM
-
Sorry stupid question,but i thought that in order to get an SPN i still need to configure Kerberos on my AD Server (which is not a problem).
Vincent
Monday, June 16, 2014 4:07 AM -
I believe you just need to run setspn for the SSAS server and that's it. I think you can skip the rest of the Kerberos config steps if you want to. Post back of you find otherwise.Monday, June 16, 2014 4:46 AM