I can no longer add or delete LDAP users via Plone. I can do so without any issues through ZMI. Even though I can search and find an LDAP user, I cannot add the LDAP user to Plone or to a User Group.
To delete an LDAP user via Plone:
Traceback (innermost last):
Module ZPublisher.Publish, line 138, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 48, in call_object
Module Products.CMFPlone.controlpanel.browser.usergroups_groupmembership, line 76, in call
Module Products.CMFPlone.controlpanel.browser.usergroups_groupmembership, line 46, in update
Module , line 3, in addPrincipalToGroup
Module plone.protect.utils, line 58, in _curried
Module , line 3, in addPrincipalToGroup
Module AccessControl.requestmethod, line 70, in _curried
Module Products.PlonePAS.tools.groups, line 200, in addPrincipalToGroup
Module Products.PloneLDAP.mixins.groupmgmt, line 35, in addPrincipalToGroup
Module Products.LDAPUserFolder.LDAPUserFolder, line 1723, in manage_editUserRoles
Module Products.LDAPUserFolder.LDAPUserFolder, line 1291, in getGroupType
Module Products.LDAPUserFolder.LDAPDelegate, line 363, in search
Module Products.LDAPUserFolder.LDAPDelegate, line 631, in _clean_dn
Module Products.LDAPUserFolder.LDAPDelegate, line 638, in explode_dn
Module ldap.dn, line 79, in explode_dn
Module ldap.dn, line 53, in str2dn
Module ldap.functions, line 66, in _ldap_function_call
DECODING_ERROR
To delete an LDAP user from a group called DSS-Editors:
Traceback (innermost last):
Module ZPublisher.Publish, line 138, in publish Module ZPublisher.mapply, line 77, in mapply Module ZPublisher.Publish, line 48, in call_object Module Products.CMFPlone.controlpanel.browser.usergroups_groupmembership, line 76, in __call__ Module Products.CMFPlone.controlpanel.browser.usergroups_groupmembership, line 53, in update Module <string>, line 3, in removePrincipalFromGroup Module plone.protect.utils, line 58, in _curried Module <string>, line 3, in removePrincipalFromGroup Module AccessControl.requestmethod, line 70, in _curried Module Products.PlonePAS.tools.groups, line 211, in removePrincipalFromGroup Module Products.PloneLDAP.mixins.groupmgmt, line 68, in removePrincipalFromGroup
KeyError: 'DSS-Editors'
I have the following in my buildout:
plone.app.ldap
five.formlib
plone.app.form
Plone version:
Plone 5.0.7 (5017) CMF 2.2.10 Zope 2.13.26 Python 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609] PIL 3.4.2 (Pillow)
There are no issues through the ZMI, just in Plone 5. Any help would be most appreciated. Thanks.