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

Package tries to contact LDAP server even when not installed #35

Closed hvelarde closed 7 years ago

hvelarde commented 7 years ago

I have the package unistalled and I can see the following in the event log:

2016-12-16T14:31:19 WARNING pas.plugins.ldap LDAPError in authenticateCredentials -> {'desc': "Can't contact LDAP server"}
------
2016-12-16T14:36:25 WARNING pas.plugins.ldap LDAPError in authenticateCredentials -> {'desc': "Can't contact LDAP server"}
hvelarde commented 7 years ago

I think this has nothing to do with uninstaller; IIRC, I never installed the package in the first place and it's trying to contact the LDAP server anyway.

rnixx commented 7 years ago

Steps to reproduce please.

hvelarde commented 7 years ago

I think this is an effect of the problem described in #25.

jensens commented 7 years ago

The plugin can only work if it is installed, since only then an instance of it is created in acl_users. If there is no instance it is impossible to have code running connecting to LDAP.

rnixx commented 7 years ago

@jensens - valid point, never thought about it this way