pyad
pyad copied to clipboard
from_cn returns multiple results
I have cross forest trust in place and am using from_cn to return a handle on an individual domains administrator.
The following line of code...
adhandle=aduser.ADUser.from_cn(user,options=dict(ldap_server=dns))
Gives an exception when the user var is set to administrator and states ...
Traceback (most recent call last):
File "
By default how can an AD query for CN return multiple results, and if it is due to the cross forest trust how can you scope the query ?
Any thoughts ?