Database login for Webservice
marvinq
Member Posts: 69
Hi,
Might be a stupid question, but I have not been able to find the exact answer anywhere.
Is it possible to connect to a webservice only with a database login defined in SQL and NAV? Or is it only with a windows-login that I can connect to the webservice?
If I do something like this:
item.UseDefaultCredentials = true;
... naturally the actual user's windows-account is used. But what if I write like this:
item.UseDefaultCredentials = false;
item.Credentials = new System.Net.NetworkCredential([username],[password],[domain]);
... can the credentials here be a database login, or is it only possible to use a windows-login's username and password?
I hope you understand the question.
I would like to provide access to an external application, however I do not want to give the developers a windows-login, giving them the rights to logon to the actual server, and a database-login prevents this - if it is possible. If not possible, are there other ways to prevent this?
Thanks
Might be a stupid question, but I have not been able to find the exact answer anywhere.
Is it possible to connect to a webservice only with a database login defined in SQL and NAV? Or is it only with a windows-login that I can connect to the webservice?
If I do something like this:
item.UseDefaultCredentials = true;
... naturally the actual user's windows-account is used. But what if I write like this:
item.UseDefaultCredentials = false;
item.Credentials = new System.Net.NetworkCredential([username],[password],[domain]);
... can the credentials here be a database login, or is it only possible to use a windows-login's username and password?
I hope you understand the question.
I would like to provide access to an external application, however I do not want to give the developers a windows-login, giving them the rights to logon to the actual server, and a database-login prevents this - if it is possible. If not possible, are there other ways to prevent this?
Thanks
0
Comments
-
Hi,
database authentification is not supported. I don't believe there is a way to auth. without a windows user. Service is running under windows account an can only impersonate on other windows accounts I believe.
With kind regards
mik0 -
Yes, there is no way to use database login when using NST in NAV 2009. NAV 2013 will may be change this, because there is no impersonalization to SQL and authentication is doing NAV itself (and is supporting different providers).0
-
it's like login in the domain with SA
-Mihail- [MCTS]0 -
Hi,
Thank you for all the answers. Although this was the expected (not wanted) answer.
This gives me a huge security issue, when handing over the Webservice with username and password to "strangers". I guess the only way out is to create an internal proxy that connects directly to NAV's webservice and then handles the authentication with the external application in a different database-login-like way. Do you agree with this? - and have anyone tried something like this with success?
Thanks0 -
this is no problem. It doesn't matter if you give DB login to the user or some local windows account without permissions. What is the difference? ;-)0
-
Hi kine,
I am not sure if i understand you correctly.
My problem is that with a windows account the user is able to log on to the actual server, and the system-administrator will not allow this. (The "strangers" are located in the same building). We have tried to adjust the permissions on that windows user, however when blocking for login this also blocks authentication with the webservice.
It seems to be a dead end.0 -
You can block interactive login only, not whole account.0
-
Hi,
I am not a network-specialist, so I am not sure of what mean. If you got a solution please explain. My tech-guy tried changing permissions in every thinkable way and he did not succeed. The goal is to make a windows user for the webservice, than cannot log on to the server. I guess in some way this is a contradiction.0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
