zakird / pyad

Python Active Directory Tools | *Not actively maintained*
http://zakird.github.io/pyad/
176 stars 72 forks source link

While creating a user account from time to time getting this. It says, cannot find an COM object to set password. #151

Open kassainov opened 2 years ago

kassainov commented 2 years ago

Traceback (most recent call last): File "pyad\aduser.py", line 22, in set_password File "<COMObject >", line 2, in SetPassword pywintypes.com_error: (-2147352567, 'Exception occurred.', (0, None, None, None, 0, -2147016672), None)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "ad_connection.py", line 111, in create File "pyad\aduser.py", line 16, in create File "pyad\adcontainer.py", line 43, in create_user File "pyad\aduser.py", line 25, in set_password File "pyad\pyadutils.py", line 58, in pass_up_com_exception pyad.pyadexceptions.InvalidObjectException: The requested object does not exist.