Can someone help me out with a search for memberof by cn = 'userid'
?
this is what I have so far:
c.search( search_base='DC=ms,DC=ds,DC=company,DC=com',
search_filter='(CN=userid)',
search_scope='SUBTREE',
attributes=['memberOf'])
The above worked for me.
Also you can refer this url as well. Good luck.