21 Nov’17

D365 Business Central

How to login Windows Client and Web Client using ‘NavUserPassword’ Authentication in Microsoft Dynamics NAV


Generally, when we set up Microsoft Dynamics NAV, the authentication method by default is ‘Windows’.

Windows Authentication : This method allows you to connect to NAV as the current Windows user.

Username Authentication : This method requires that the user provide a User name, Password, and Domain name. Users are authenticated using their Windows account

NavUserPassword Authentication : Users are authenticated using their Username and password instead of windows authentication

AccessControlService Authentication : Users are authenticated using Access control Service. The Username and web service key must be specified.

This blog provides a step wise procedure to  authenticate Dynamics NAV using NavUserPassword


Microsoft Dynamics NAV 2017


1. Create a self-signed certificate or use a SSL certificate.

To create a self-signed certificate follow the below steps:

  • Download Self-signed certificate generator (PowerShell) from Technet.
  • Open Windows Powershell ISE as administrator.
  • Go to the directory where you saved the New-SelfSignedCertificateEx.ps1 file.
  • Run the following command:
    Import-Module .\New-SelfSignedCertificateEx.ps1.
    New-SelfSignedCertificateEx –Subject “CN=<your site name>” –IsCA $true –Exportable –StoreLocation LocalMachine

Here <your site name> is the name of your computer.

  • Save the thumbprint generated in a notepad for future reference.

2. Manage the certificate

  • Open the mmc.exe from  Start
  • Go to the File menu, and then choose Add/Remove Snap-in.
  • Select Certificates and choose Add
  • Select the computer account.
  • Choose Finish and then OK.
  • add

  • The Expiration Date of the certificate will be 1Y-2D (01 Year – 02 Days) valid From 1 Day Before you create Certificate.

3. Add Permissions to certificate

  • Right Click Certificate.
  • From All Tasks Select Manage Private Keys.
  • Add NETWORK SERVICE permission to the certificate
  • netw

4. Copy the Certificate

  • Copy the Certificate from Personal / Certificate Node.
  • Paste the certificate into the Trusted Root Certification Authorities/Certificates folder, Enterprise trust, Trusted publishers and Trusted people.

5. Enter the Certificate Thumbprint

  • Open the Microsoft Dynamics NAV 2017 Administration.
  • Click on the NAV instance and enter the Certificate Thumbprint.
  • thumbprint

6.  Configure IIS(Internet Information Service)

  • Open IIS and click on Microsoft Dynamics NAV 2017 under Sites folder
  • Click on Bindings
  • bind

  • Click on Add, select https under type and select the certificate under the SSL certificate


7. Create a User in NAV

  • Navigate to CRONUS International Ltd./Departments/Administration/IT Administration/General/Users and create a new user.

    e.g Username : CHRIS_USERPASS and click on Password and set an appropriate password with a combination of  one uppercase alphabet, one number and special character


  • Set Permission to SUPER under User Permission Set tab.
  • Navigate to the ClientUserSettings file of the user and make the following changes.
  • clientuser

  • Change ClientServicesCredentialType parameter value from ‘Windows’ to ‘NavUserPassword’.
  • If you are creating a new server instance mention the Client service port and Server Instance Name.
  • In the web config file(C:\inetpub\wwwroot\<webclientname>) change the  “ClientServicesCredentialType” value=”NavUserPassword”  also change the ClientServicePort and Server instance if you are configuring the ‘NavUserPassword’ for a new server instance

8. Launch Windows Client

This will prompt for username and password after which Windows client will launch successfully.


windows cli

9. Launch Web Client

web client

web client 1


To summarize the blog, create a self signed certificate, assign it permissions and copy the certificate to the necessary folder. Copy the thumbprint in the NAV instance and bind the certificate in IIS. create a user with password and make necessary changes in the ClientUserSettings and web config file.

Written by

Chris D'Silva

Software Developer

Leave a Reply

Your email address will not be published. Required fields are marked *

Want to streamline your business processes?

  • This field is for validation purposes and should be left unchanged.

Recent Articles

  • How to Run Reports when report processing takes long to cause Session Time-out

    12 July’ 2019

    Introduction: I’ve observed that when NAV is used for a very long time, the report which needs heavy processing ta...

    Read more
  • First Canvas Power App: Learn Few Easy and Important Commands

    11 July’ 2019

    As my thoughts build to initiate writing this blog, similar was the feeling when I first thought about exploring Power A...

    Read more
  • Tips to Solve your Infinite Loop Issue

    3 July’ 2019

    While using fetch xml to retrieve records more than 5000 records and if you have multiple entities involve in it. There ...

    Read more
  • Deploy Dynamics 365 Operations Environment using Lifecycle Services – Part 2

    2 July’ 2019

    In this article, we will take look at the post configuration setting for Finance and Operations environment.You can lo...

    Read more
  • Shift/Statement posting error in Microsoft Dynamics 365 For Retail

    1 July’ 2019

    In this blog I am going to  demonstrate how to deal with errors generated during statement posting. At times while you ...

    Read more
  • We respect your privacy.
  • This field is for validation purposes and should be left unchanged.