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,
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