Traceback (most recent call last): untitled/off.py", line 1, in <module> from pyad import * ModuleNotFoundError: No module named 'pyad'
fziae opened this issue · 2 comments
fziae commented
from pyad import *
from pyad.adcontainer import ADContainer
from pyad.adgroup import ADGroup
from pyad.aduser import ADUser
pyad.set_defaults(ldap_server="xxxx", username="FORWARDLINE\Adminnistrator", password="xxxx")
ou = ADContainer.from_dn("dc=forwardline, dc=test")
new_user = ADUser.create("Daniel Rec", ou = "Technology", email ="" ,password="Forwardline1")
#group = ADGroup.from_dn("group")
fziae commented
Can you please tell me why it's giving me this error? Looks like it cannot read the library.