pyad icon indicating copy to clipboard operation
pyad copied to clipboard

Unable to delete user using pyad python

Open Gokkul07 opened this issue 3 years ago • 0 comments

`from pyad import *

pyad.set_defaults(ldap_server="172.--------", username="ad.manager", password="*******")

ou = pyad.adcontainer.ADContainer.from_dn("ou=POC, dc=SWINTERNAL, dc=LOCAL") pyad.aduser.ADUser.disable("test1")

File "C:\Users\vd.gokkulkumar\AppData\Local\Programs\Python\Python37\lib\site-packages\pyad\adobject.py", line 385, in disable if self._ldap_adsi_obj.AccountDisabled == False: AttributeError: 'str' object has no attribute '_ldap_adsi_obj'`

Gokkul07 avatar Nov 28 '21 11:11 Gokkul07