如何在Plone中处理LDAP整数属性?

| 我正在使用PloneLDAP插件。 即使我在模式定义中设置binary = \'on \',也无法在使用plone创建用户时吞下整数。 这是因为必需的属性(除了login,pwd,uid之外)在调用之前被强制为\ unset字符串: Products.PloneLDAP.mixins.useradder.py,第30行:
 # Evil: grab all schema attributes and will them with a default
 # text. This is needed to be able to create LDAP entries where
 # attributes besides uid, login and rdn are required.
 for (key,name) in acl.getLDAPSchema():
      if key not in attrs:
          attrs[key]=\"unset\"

 res=acl.manage_addUser(kwargs=attrs)
因此底层python_ldap除外:
INVALID_SYNTAX: {\'info\': \'myIntegerAttribute\': value #0 invalid per syntax\', \'desc\': \'Invalid syntax\'}
我是否需要写下完整的plone_pas user_adder插件?     
已邀请:

要回复问题请先登录注册