Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


How to verify NT password?

Posted on 1999-07-27
Medium Priority
Last Modified: 2013-12-03
I got a mission to verify password before creating service.

It seems that there is no API function to do this directly.

The two possible solutions are

1. LogonUser(). This can verify passwd however it requires the user must have TCB privilege(Acting as part of operating system).

2. NetUserChangePassword(). The trick is to use this function to change password to itself. It will also verify the password. However if the account has "Allow Changes in X days" set in the "Minimum Password Age", this function will hang up forever.

Can anyone tell me another function to do it?

Thanks a lot in advance.

Question by:shawndong
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
LVL 15

Accepted Solution

Tommy Hui earned 600 total points
ID: 1403863
Search the MSDN articles for this keyword: Q180548 at It provides sample code to doing that.

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to make a Windows 7 gadget that accepts files dropped from the Windows Explorer.  It also illustrates how to give your gadget a non-rectangular shape and how to add some nifty visual effects to text displayed in a your gadget.…
zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question