collective / pas.plugins.ldap

Zope (and Plone) PAS Plugin providing users and groups from LDAP directory
http://pypi.python.org/pypi/pas.plugins.ldap
Other
13 stars 20 forks source link

Check if interface is active when calling a method. #38

Closed mauritsvanrees closed 7 years ago

mauritsvanrees commented 7 years ago

I had switched off all three group plugins, but got an error calling getGroupIds when accessing @@user-information.

PAS behaves itself and does not call this when the interface is deactivated, but pas.plugins.ldap does call it. So alternatively we could change this and only do these checks when we ourselves need it, to save a (probably small) amount of time.

This pull request also adds updateUser and updateEveryLoginName as required by IUserEnumeration, though we simply return False or None at the moment.