21 Nov’17

Dynamics NAVHow 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 *

Time limit is exhausted. Please reload the CAPTCHA.

Want to streamline your business processes?

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

Recent Articles

  • Managing mailbox through Email Archiving

    20 March’ 2018

    Introduction: Email can fill your Outlook Inbox quickly – new messages, replies, and forwards. Before you know it, yo...

    Read more
  • Workaround to Report.SAVEASPDF in NAV 2018

    20 March’ 2018

    Objective: In NAV 2017 Emailing the PDF by running the report using Report.SAVEASPDF is now not allowed in NAV 2018. Th...

    Read more
  • Dynamics 365 Client Diagnostics

    15 March’ 2018

    Main cause of Performance Issues: Bandwidth and latency are the primary characteristics which affects the performance o...

    Read more
  • Closing Blind Shift in MPOS and CPOS in Dynamics 365 for Retail

    15 March’ 2018

    Manual For closing Blind shift in POS: Blind shifts terminate the currently ongoing shift and when logged in a new shif...

    Read more
  • Persistent Filters in the Power BI Service

    13 March’ 2018

    Introduction: The feature is finally release, and it is power BI has announced general availability of persistent filt...

    Read more