Open fziae opened 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")
Can you please tell me why it's giving me this error? Looks like it cannot read the library.
@zakird any suggestion?
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")