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

Not support plone5.2 with python3.6? #91

Closed om1221 closed 4 years ago

om1221 commented 4 years ago

My steps:

  1. Clean install Plone 5.2.1, choose python 3.6.
  2. Add egg pas.plugins.ldap in buildout.cfg and build it.
  3. Start plone and create test site, then enable LDAP/ Active Directory Support.
  4. Click LDAP/ AD Support, get error:

Traceback (innermost last): Module ZPublisher.WSGIPublisher, line 156, in transaction_pubevents Module ZPublisher.WSGIPublisher, line 338, in publish_module Module ZPublisher.WSGIPublisher, line 256, in publish Module ZPublisher.mapply, line 85, in mapply Module ZPublisher.WSGIPublisher, line 62, in call_object Module zope.browserpage.simpleviewclass, line 41, in call Module Products.Five.browser.pagetemplatefile, line 126, in call Module Products.Five.browser.pagetemplatefile, line 61, in call Module zope.pagetemplate.pagetemplate, line 135, in pt_render Module Products.PageTemplates.engine, line 88, in call Module z3c.pt.pagetemplate, line 173, in render Module chameleon.zpt.template, line 306, in render Module chameleon.template, line 209, in render Module chameleon.utils, line 75, in raise_with_traceback Module chameleon.template, line 187, in render Module 3c2d53ab5b831827985cfaa888aec91d.py, line 356, in render Module fd711e4a8e718a8a01f86bbee890fef7.py, line 286, in render_master Module 3ba05ebae63a9af0af9f610a3bcb4043.py, line 687, in render_master Module fd711e4a8e718a8a01f86bbee890fef7.py, line 266, in fill_content Module 3ba05ebae63a9af0af9f610a3bcb4043.py, line 1273, in render_content Module fd711e4a8e718a8a01f86bbee890fef7.py, line 257, in fill_main Module 3c2d53ab5b831827985cfaa888aec91d.py, line 335, in __fill_prefs_configlet_main Module pas.plugins.ldap.properties, line 85, in form Module yafowil.yaml.parser, line 23, in parse_from_YAML Module yafowil.yaml.parser, line 59, in call Module yafowil.yaml.parser, line 146, in create_tree Module yafowil.yaml.parser, line 122, in call_factory Module yafowil.base, line 684, in call KeyError: 'form'

om1221 commented 4 years ago

After reinstall plone 5.2.1,and choose /usr/bin/python2.7 this time. Got the same error: Traceback (innermost last): Module ZPublisher.WSGIPublisher, line 156, in transaction_pubevents Module ZPublisher.WSGIPublisher, line 338, in publish_module Module ZPublisher.WSGIPublisher, line 256, in publish Module ZPublisher.mapply, line 85, in mapply Module ZPublisher.WSGIPublisher, line 62, in call_object Module zope.browserpage.simpleviewclass, line 41, in call Module Products.Five.browser.pagetemplatefile, line 126, in call Module Products.Five.browser.pagetemplatefile, line 61, in call Module zope.pagetemplate.pagetemplate, line 135, in pt_render Module Products.PageTemplates.engine, line 88, in call Module z3c.pt.pagetemplate, line 173, in render Module chameleon.zpt.template, line 306, in render Module chameleon.template, line 209, in render Module chameleon.template, line 187, in render Module 62a2aa3be6cd469268e6ad5c6789277b.py, line 352, in render Module 2b699eeb87c594cf3ad15bbc115df17d.py, line 287, in render_master Module b10267ced3ac2104d51be40fbbedda18.py, line 1032, in render_master Module 2b699eeb87c594cf3ad15bbc115df17d.py, line 267, in fill_content Module b10267ced3ac2104d51be40fbbedda18.py, line 379, in render_content Module 2b699eeb87c594cf3ad15bbc115df17d.py, line 258, in fill_main Module 62a2aa3be6cd469268e6ad5c6789277b.py, line 331, in __fill_prefs_configlet_main Module pas.plugins.ldap.properties, line 85, in form Module yafowil.yaml.parser, line 23, in parse_from_YAML Module yafowil.yaml.parser, line 59, in call Module yafowil.yaml.parser, line 146, in create_tree Module yafowil.yaml.parser, line 122, in call_factory Module yafowil.base, line 684, in call KeyError: 'form'

ApatheticCosmos commented 4 years ago

I've just installed Plone 5.2.1 and this plugin, and I'm getting exactly the same error. This is my first time ever working with Plone or Zope, but I think I followed the instructions correctly. I'm using Python 3.7.

If you figure out what went wrong, please reply here.

jensens commented 4 years ago

I now tried with a clone of this repository using Python 3.7 and Plone 5.2-latest (5.2.1), created a fresh site using advanced creation form and checked the LDAP box. Then I can got to Site-Setup -> Users -> LDAP/AD Support. The form comes up and I can change settings there and save them.

I released the current master branch as 1.7.0, please try with it and come back in case of problems.

ApatheticCosmos commented 4 years ago

@jensens I can confirm that this is fixed for me with v1.7.0. Thanks!

om1221 commented 4 years ago

Great!Test OK!Thanks a lot !