Re: [python-win32] Querying Password Change Privilege on an Active Directory User Ac count

2005-07-29 Thread Jim Vickroy
Hello John, Why does it matter? Why not just ignore the specific type of exception raised by an invalid SetPassword() or SetInfo() request as follows: try: adsuser.SetPassword(trans.password) adsuser.SetInfo() except : pass # or whatever except : pass # or whatever except Exception,

[python-win32] Querying Password Change Privilege on an Active Directory User Ac count

2005-07-29 Thread Gooch, John
Title: Message I have a script that changes user passwords, and it throws exceptions then executing the SetPassword() or SetInfo() commands on a AD user account that it does not have "set password" privileges on. To avoid the exception being thrown, I would like to have the script check whet