win32security question

Erik Myllymaki erik at pacific-shores.com
Wed Oct 3 16:18:10 EDT 2001


Answering my own question:

import win32net

level = 3
try:
    dict = win32net.NetUserGetInfo(None, 'myusername' , level )
    if dict['password_expired']:
        print "Expired Password"
except:
.
.
.

"Erik Myllymaki" <erik at pacific-shores.com> wrote in message
news:DHGu7.45378$L8.11573696 at news2.rdc1.bc.home.com...
> How can I tell if a user's password has expired through python's win32
APIs?
>
> --
> Erik Myllymaki
> erik at pacific-shores.com
>
>





More information about the Python-list mailing list