zakird / pyad

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

is_member_of(group) return always False :/ #133

Open BobSquarePants opened 3 years ago

BobSquarePants commented 3 years ago

user.is_member_of(group) return always false :/

evan after succesefully added user to group trough

group.add_members(user)

feiticeir0 commented 3 years ago

I'm having the exact same issue... I've tried two ways:

Always false...

richardjprice commented 3 years ago

Same issue here for me:

>>> group.get_members() [<ADUser 'CN=one o. one,CN=Users,DC=example,DC=com'>]

>>> user1 <ADUser 'CN=one o. one,CN=Users,DC=example,DC=com'>

>>> user1.is_member_of(group) False

zerodago commented 1 month ago

any news for the solution for this problem ? Tks