[Zope-CMF] CMFLDAP - getRDNAttr() failing

Meilicke, Scott scott.meilicke@intp.com
Wed, 29 Aug 2001 10:54:40 -0700


Hi,

I'm having difficulties getting user registration to work with CMFLDAP.

I'm using zope 2.4.0, CMF 1.1, CMFLDAP 1.0, LDAPLoginAdapter 1.6, and
LDAPUserManager 1.3.

When I try to sign up for a new account using join_form, I'm told I must
supply an email address.  So I borrowed the email input from
CMFDefault/dtml/join_form.dtml to ask for an email address.  My next error
is this:

Zope has encountered an error while publishing this resource.

Error Type: AttributeError
Error Value: getRDNAttr

The traceback is below.  I tried setting RDN to uid and cn, with no luck.
Both LDAPLoginAdapter and LDAPUserManager seem to be functioning - I can
connect and run queries.

Thanks - Scott

Traceback (innermost last):
  File D:\PROGRA~1\intranet\lib\python\ZPublisher\Publish.py, line 223, in
publish_module
  File D:\PROGRA~1\intranet\lib\python\ZPublisher\Publish.py, line 187, in
publish
  File D:\PROGRA~1\intranet\lib\python\Zope\__init__.py, line 226, in
zpublisher_exception_hook
    (Object: LockableItem)
  File D:\PROGRA~1\intranet\lib\python\ZPublisher\Publish.py, line 171, in
publish
  File D:\PROGRA~1\intranet\lib\python\ZPublisher\mapply.py, line 160, in
mapply
    (Object: register)
  File D:\PROGRA~1\intranet\lib\python\ZPublisher\Publish.py, line 112, in
call_object
    (Object: register)
  File D:\PROGRA~1\intranet\lib\python\Products\CMFCore\FSDTMLMethod.py,
line 180, in __call__
    (Object: register)
  File D:\PROGRA~1\intranet\lib\python\DocumentTemplate\DT_String.py, line
544, in __call__
    (Object: register)
  File D:\PROGRA~1\intranet\lib\python\DocumentTemplate\DT_Let.py, line 148,
in render
    (Object:
failMessage="portal_registration.testPropertiesValidity(REQUEST)")
  File D:\PROGRA~1\intranet\lib\python\DocumentTemplate\DT_Let.py, line 148,
in render
    (Object: password="REQUEST.has_key('password')
                    and REQUEST['password']
                     or portal_registration.generatePassword()")
  File D:\PROGRA~1\intranet\lib\python\DocumentTemplate\DT_Util.py, line
230, in eval
    (Object: portal_registration.addMember( id=REQUEST['username']
                                                    , password=password
                                                    , properties=REQUEST))
    (Info: portal_registration)
  File <string>, line 0, in ?
  File D:\PROGRA~1\intranet\lib\python\Products\CMFCore\RegistrationTool.py,
line 186, in addMember
    (Object: portal_registration)
  File
D:\PROGRA~1\intranet\lib\python\Products\CMFLDAP\LDAPMembershipTool.py, line
41, in addMember
    (Object: portal_membership)
AttributeError: (see above)