web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Windows AD Pw authentication while in Nav Page

(0) ShareShare
ReportReport
Posted on by 5,136

Hello Experts,

I was wondering if you guys can help me get started with what i am trying to accomplish.  I want to be able to allow users to enter their Windows Active Directlry Password when tyring to override a certain action.

Note that we are currently using WINDOWS AD to authenticate our users.  That's well and good but i also want to use their pw from AD to check if they are allowed to override some action.

Basically, when in nav, if users enter a value, we will pop up a warning and then ask if they want to proceed.  if so, we will ask them to enter their WINDOWS AD password (the password they entered when they logged on to their computer).  Then we will authenticate if pw is correct.  If so, we do something, if not, we error out.

Can someone point me to the module that authenticates a user's Windows AD Password?

Thank you much.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Suresh Kulla Profile Picture
    50,243 Super User 2025 Season 2 on at

    Hello,

    You could use .net Interop and try the below method

    https://stackoverflow.com/questions/326818/how-to-validate-domain-credentials

    Anyhow every user would be authenticated into NAV using Windows then every user will have that permission to override your action, how you will be controlling which user will be controlling that action. I think you need to use User Setup or Permissions

  • Suggested answer
    Alexander Ermakov Profile Picture
    28,096 on at

    I support Suresh, however I wonder why do you want to achieve this. Do you want to check that the user who is making some action is the same person who had logged in initially - e.g., users change places or go away from working place without locking the screen? Otherwise, if you are sure it is the same user, why do you want to force him enter the same password as they already logged in?

  • Suggested answer
    Maneesha Profile Picture
    5,891 on at

    hi mbr,

    I agreed with Alexander , hope your requirement is to secure some levels to executing the user by requesting password , but what happen when the password compromised ,

    hope you are looking for security , so that i suggest if you able to reconfigure NAV username / password that would be better , then you can control the

    if not just control them via permission sets  and security , that would be the best way  

  • mbr Profile Picture
    5,136 on at

    Thank you Suresh.  'will certainly look into this and advise when I have finished this.  Unfortunately, I cannot use the User setup or permissions.  I wish I could and problem would have been resolved a while back.  This is a supervisor override functionality.  One would need to enter their windows ad user credentials.  This way supervisor doesn't have to open another instance of Nav just to approve.  This will act more like a supv override in the bank when teller has reached his/her limit to allow withdrawal at a certain amount.

  • mbr Profile Picture
    5,136 on at

    thank you Alexander.  But no, I am not doing unnecessary user authentication.  I am trying to allow a supervisor override when regular user wants to perform a certain action.  we don't want user to exit out of Nav and have the supv log back in.  We just want supv to enter his/her windows ad user id/pw (pw will be masked) and have windows authenticate within nav if at all possible.  I will try Suresh's suggestion.  Otherwise, I may end up writing a .net interface to make this happen.  If anyone has done this in .net, I would most likely appreciate so I don't have to start from scratch. :)  Otherwise, 'will let you guys know when I am done.

  • mbr Profile Picture
    5,136 on at

    Hi Suresh!  Thank you for the link.  I was able to create my own .net library and now have incorporated this into our Nav app.  Basicallly, I use this .net dll to allow Windows AD user authentication for supervisors when our users need approval to perform certain actions without having to exit out of Nav and have the supervisor log in.  IF anyone needs a sample app, I am more than happy to share.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans