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

Problem with groups with Active Directory #45

Open lucidlynx opened 6 years ago

lucidlynx commented 6 years ago

Hi! Installed plugin for intergration with Active Directory. Use the following settings:

LDAP URI: ldap://XX.XX.XX.XX:389
LDAP Manager User: cn=User,ou=DIT,dc=office,dc=mydomain,dc=com
User search scope: Tree
Users container DN: dc=office,dc=mydomain,dc=com
Users search query filter: (objectClass=organizationalPerson)
Object class: inetOrgPerson

The LDAP test runs correctly, but only visible to the group or to the users. If you are using a group of users and groups, you will get the following error:

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_usersoverview, line 44, in __call__
  Module Products.CMFPlone.controlpanel.browser.usergroups_usersoverview, line 69, in doSearch
  Module Products.PluggableAuthService.PluggableAuthService, line 230, in getUserById
  Module Products.PluggableAuthService.PluggableAuthService, line 784, in _findUser
  Module Products.PlonePAS.plugins.property, line 157, in getPropertiesForUser
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)
[versions]
node.ext.ldap = 1.0b4
node.ext.ugm = 0.9.9
pas.plugins.ldap = 1.5.1
plone.recipe.command = 1.1
plone.recipe.precompiler = 0.6
plumber = 1.5
yafowil = 2.2.3
yafowil.plone = 2.4.1

-- pas.plugins.ldap==1.5.1
node = 0.9.22
-- Required by:
-- pas.plugins.ldap==1.5.1
odict = 1.6.2
-- Required by:
-- pas.plugins.ldap==1.5.1
python-ldap = 2.4.44
-- Required by:
-- bda.cache==1.1.3
python-memcached = 1.58
-- Required by:
-- node.ext.ldap==1.0b4
smbpasswd = 1.0.2
-- Required by:
-- pas.plugins.ldap==1.5.1
yafowil.widget.array = 1.4
-- Required by:
-- pas.plugins.ldap==1.5.1
yafowil.widget.dict = 1.6
-- Required by:
-- pas.plugins.ldap==1.5.1
yafowil.yaml = 1.2