Possible to have Windows & Database authentication together?

Navision Articles

Get our Free Newletter

Don't you have the time to be online here at DUG every day? So how do you follow what is going on in the Dynamics industry and community?
If you subscribe to the DUG Newsletter then you can relax! We will make sure that you don't miss the big news!

Check out our
Newsletter Subscription Center
page a complete list of our different newsletters.

Solution (Verified) This post has 2 verified solutions | 10 Replies | 2 Followers

Not Ranked
4 Posts
45 Points
Joined: Feb 8, 2010
Last Online:
Feb 10, 2010 9:18
Neil Thompson posted on Feb 8, 2010 14:40
How helpful was this post/question? Please rate here:

Hi

We are currently running Navision with windows authentication but I want to also add users that don't have a Windows account and use database authentication. Is it possible to mix the two methods of authentication?

The reason I ask is that I have tried and and am still getting a "The combination of user ID and password entered is invalid. Try again." error.

Thanks

Neil

Solution (Verified) Verified Solution

Top 25 Contributor
Male
1,102 Posts
14,400 Points
Joined: Dec 18, 2000
Last Online:
Mar 22, 2010 11:23
Location: Nürnberg/Germany
DynamicsNAVMVP
Moderator
Solution (Verified) Jörg A. Stryk replied on Feb 8, 2010 14:48
How helpful was this comment/solution? Please rate here:
Verified by Neil Thompson

HI Neil,

of course, this is possible. First make sure that the SQL Server's Security settings (instance properties) are set to "Mixed Mode" (= Windows and DB logins).
Then create the Logins in SQL Server, assign the appropriate Server-Roles, then map the User to the relevant DB (assigning required DB Roles).
Finally you could create the DB Login in NAV. If you are using "Enhanced" Security Model (not recommended) then you have to "Synchronize" the Logins.

This is also described in the "Installation and System Management (SQL)" PDF.

Cheers,
Jörg

Joerg A. Stryk
STRYK System Improvement
NAV/SQL Performance Optimization


Don't forget to the post(s) that solved your problem. This credits the experts who helped, earns you points and marks your thread as Resolved so we all know you have been helped.

Not Ranked
7 Posts
240 Points
Joined: Apr 24, 2009
Last Online:
Mar 3, 2010 15:42
Location: Etten-Leur
Solution (Verified) Kjell replied on Feb 9, 2010 14:52
How helpful was this comment/solution? Please rate here:
Verified by Neil Thompson

What permissions does the user have on the SQL Database? In other words wich server role?

(Select Database server | Security | Users | Properties | Server roles) try connecting to nav with the user having the "sysadmin" server role.

To which database have you mapped the user, i would recommend to map the user to the "master" database, this ensures the user will always have acces, even when your NAV database is renamed / deleted. Map with the "Public" database membership role to your NAV database.

<spam removed by moderator>

All Replies

Top 200 Contributor
Male
125 Posts
2,200 Points
Joined: Oct 6, 2009
Last Online:
Mar 22, 2010 10:31
Location: Warnsveld, Netherlands
Luc van Vugt replied on Feb 8, 2010 14:48
How helpful was this comment/solution? Please rate here:

Of course you can. What database server are you running? SQL Server or Native (NAV) Server)?

Luc van Vugt, Imtech ICT
Never stop learning

Top 25 Contributor
Male
1,102 Posts
14,400 Points
Joined: Dec 18, 2000
Last Online:
Mar 22, 2010 11:23
Location: Nürnberg/Germany
DynamicsNAVMVP
Moderator
Solution (Verified) Jörg A. Stryk replied on Feb 8, 2010 14:48
How helpful was this comment/solution? Please rate here:
Verified by Neil Thompson

HI Neil,

of course, this is possible. First make sure that the SQL Server's Security settings (instance properties) are set to "Mixed Mode" (= Windows and DB logins).
Then create the Logins in SQL Server, assign the appropriate Server-Roles, then map the User to the relevant DB (assigning required DB Roles).
Finally you could create the DB Login in NAV. If you are using "Enhanced" Security Model (not recommended) then you have to "Synchronize" the Logins.

This is also described in the "Installation and System Management (SQL)" PDF.

Cheers,
Jörg

Joerg A. Stryk
STRYK System Improvement
NAV/SQL Performance Optimization


Don't forget to the post(s) that solved your problem. This credits the experts who helped, earns you points and marks your thread as Resolved so we all know you have been helped.

Top 25 Contributor
Male
1,102 Posts
14,400 Points
Joined: Dec 18, 2000
Last Online:
Mar 22, 2010 11:23
Location: Nürnberg/Germany
DynamicsNAVMVP
Moderator
Jörg A. Stryk replied on Feb 8, 2010 14:51
How helpful was this comment/solution? Please rate here:

Luc van Vugt:

Of course you can. What database server are you running? SQL Server or Native (NAV) Server)?

 

We're in the SQL forum here Wink

Joerg A. Stryk
STRYK System Improvement
NAV/SQL Performance Optimization


Don't forget to the post(s) that solved your problem. This credits the experts who helped, earns you points and marks your thread as Resolved so we all know you have been helped.

Top 200 Contributor
Male
125 Posts
2,200 Points
Joined: Oct 6, 2009
Last Online:
Mar 22, 2010 10:31
Location: Warnsveld, Netherlands
Luc van Vugt replied on Feb 8, 2010 15:06
How helpful was this comment/solution? Please rate here:

Jörg, you are right Tongue Tied

Luc van Vugt, Imtech ICT
Never stop learning

Not Ranked
4 Posts
45 Points
Joined: Feb 8, 2010
Last Online:
Feb 10, 2010 9:18
Neil Thompson replied on Feb 8, 2010 17:51
How helpful was this comment/solution? Please rate here:

Great! Glad to hear that you can. So the next question is why doesn't it work?

We are running SQL Server 2005 Express.

I have created a database login and I can access the database using this without any problems.

I have created a database user with Navision and synchronised the security (not sure if that is necessary)

But when I try and login I get the "The combination of user ID and password entered is invalid. Try again." message. I have tried ensuring the case is the same but this makes no difference.

Not sure where else to look - any ideas?

Thanks

Neil

Top 500 Contributor
54 Posts
975 Points
Joined: Oct 29, 2002
Last Online:
Mar 22, 2010 9:40
Location: Denmark
Tvis replied on Feb 8, 2010 20:29
How helpful was this comment/solution? Please rate here:

Try creating the user in SQL without any password rules and password blank. Does that work?

Top 25 Contributor
690 Posts
8,805 Points
Joined: Nov 17, 2003
Last Online:
Mar 19, 2010 11:26
jsrark replied on Feb 9, 2010 7:58
How helpful was this comment/solution? Please rate here:

You must create the Database user in SQL as well as in Navision.

We use database users for "system" access controlled by IT for batch processing and Windows Logins for users.

Is that working OK now?

Jonathan.

Don't forget to the post(s) that solved your problem. This credits the experts who helped, earns you points and marks your thread as Resolved so we all know you have been helped.

Not Ranked
4 Posts
45 Points
Joined: Feb 8, 2010
Last Online:
Feb 10, 2010 9:18
Neil Thompson replied on Feb 9, 2010 13:11
How helpful was this comment/solution? Please rate here:

Hi Jonathan

That is exactly what I did - created the login in SQL first and tested that I could login via isql which was fine. We then created the login in Navision with the same name but when we try and login I get the message shown above.

Not tried with a blank password though not sure why that should make a difference.

N

Not Ranked
7 Posts
240 Points
Joined: Apr 24, 2009
Last Online:
Mar 3, 2010 15:42
Location: Etten-Leur
Solution (Verified) Kjell replied on Feb 9, 2010 14:52
How helpful was this comment/solution? Please rate here:
Verified by Neil Thompson

What permissions does the user have on the SQL Database? In other words wich server role?

(Select Database server | Security | Users | Properties | Server roles) try connecting to nav with the user having the "sysadmin" server role.

To which database have you mapped the user, i would recommend to map the user to the "master" database, this ensures the user will always have acces, even when your NAV database is renamed / deleted. Map with the "Public" database membership role to your NAV database.

<spam removed by moderator>

Not Ranked
4 Posts
45 Points
Joined: Feb 8, 2010
Last Online:
Feb 10, 2010 9:18
Neil Thompson replied on Feb 10, 2010 9:18
How helpful was this comment/solution? Please rate here:

Hi

Thank you all so much for your help. It was the server/database roles in the end.

It is now sorted.

Thanks

Neil

Page 1 of 1 (11 items) | Get this RSS feed | Bookmark and Share