Windows API (NetUserChangePassword)

G

Guest

We use Novell 3x and NT and some of our users become irritated when password
change time rolls around, so I wrote an app to change passwords. I use the
NetUserChangePassword API. The password change works fine, the only issue
that I seem to be having is that everytime I change the password it seems to
increment a bad_login count or something and after a couple times or changing
my password my account gets locked...any ideas?
 
P

Paul Clement

¤ We use Novell 3x and NT and some of our users become irritated when password
¤ change time rolls around, so I wrote an app to change passwords. I use the
¤ NetUserChangePassword API. The password change works fine, the only issue
¤ that I seem to be having is that everytime I change the password it seems to
¤ increment a bad_login count or something and after a couple times or changing
¤ my password my account gets locked...any ideas?

Are you using any network resources that require authentication? It's possible that authentication
to the resources is occurring with old (saved) credentials and that is causing the bad login
attempts.


Paul ~~~ (e-mail address removed)
Microsoft MVP (Visual Basic)
 
G

Guest

If I am I don't know what. The application consists of 4 text boxes, 1 for
username, 1 for current password and 2 for new password. When they click the
"change" button it only calls one API NetUserChangePassword...
 
G

Guest

I went back and re-read the info on msdn about how the API worked...the first
parameter is supposed to be the computer name that you want the API to
execute on...blank = API Callers domain. So I changed it from the PDC name
to blank and it works fine now. Putting in the PDC name must have made the
program try to authenticate with a cached password or something just like you
said, thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top