zakird / pyad

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

Traceback (most recent call last): untitled/off.py", line 1, in <module> from pyad import * ModuleNotFoundError: No module named 'pyad' #120

Open fziae opened 5 years ago

fziae commented 5 years ago

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 5 years ago

Can you please tell me why it's giving me this error? Looks like it cannot read the library.

fziae commented 5 years ago

@zakird any suggestion?