Need to use a single logon user with Web Services.

RBrownRBrown Member Posts: 8
edited 2011-05-26 in NAV Three Tier
Hello,

I'm setting up a website for internal use. Currently we have our NAV web services functioning with the logged in user's account information being passed through to NAV. NAV then exposes information based on that user's NAV permissions.

I need to change this functionality so that all users coming from the website access NAV using one account with god rights. The security of what they can access will then be handled by an ASP.NET handler accessing Active Directory roles.

How do I switch NAV from using the logged in user's account to using the account that is running the web service services?

Thanks,

Ryan Brown

Comments

  • ara3nara3n Member Posts: 9,256
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • RBrownRBrown Member Posts: 8
    Setting user credentials as you've outlined isn't an option with a Service Reference (this is running in Silverlight 4 under .NET 4.0). That would also leave an admin accounts credentials available in plain text to anyone who pulled down the Silverlight and decompiled the .dll files which is not ideal. Is there a setting in NAV or on the servers to specify what user account it's validating against?
  • kinekine Member Posts: 12,562
    May be the application can use the account under which it is running on IIS? (use some domain account on the app pool...)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • RBrownRBrown Member Posts: 8
    That would be ideal, but I'm not sure how to specify that the application should use that account rather than the users'. Would that be an IIS setting, something in NAV, or something in the hosting ASP.NET project?
  • kinekine Member Posts: 12,562
    Try to enable "anonymous" access on the website and disable all other...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.