[Zope] ldapuserfolder

Chris McDonough chrism at plope.com
Mon Aug 9 09:26:10 EDT 2004


A guess: your LDAP server may have too many user entries to be processed
by this function.  You may need to change the LDAP server to
successfully return more than the default number of objects.

This depends on your LDAP server, and the change probably needs to be
made there (and not within LDAPUserFolder).  For MS Active  Directory,
the answer is to set the the "MaxPageSize" setting to more than the
default (which is 1000) as detailed via
http://support.microsoft.com/?kbid=271088.  For OpenLDAP, you set the
"sizelimit" key to more than the default by editing slapd.conf (see
http://www.ldapadministrator.com/forum/viewtopic.php?t=14 ) .


HTH

- C


On Mon, 2004-08-09 at 03:55, Einar Næss Jensen wrote:
> Jens Vagelpohl wrote:
> 
> >> I was trying to assign local role to users in the securitytab in zope 
> >> management with users from an ldapdatabase (Active directory)
> >> authenticating works very well, but the above raises exeptions
> >>
> >
> > From that traceback I am assuming that you are not using the latest 
> > LDAPUserFolder version (2.4) - I suggest you upgrade first and try again.
> 
> Installed new version, but i still get the exception:
> 
> Traceback (innermost last):
>   Module ZPublisher.Publish, line 100, in publish
>   Module ZPublisher.mapply, line 88, in mapply
>   Module ZPublisher.Publish, line 40, in call_object
>   Module Shared.DC.Scripts.Bindings, line 306, in __call__
>   Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
>   Module App.special_dtml, line 175, in _exec
>   Module DocumentTemplate.DT_Try, line 140, in render
>   Module DocumentTemplate.DT_Try, line 149, in render_try_except
>   Module DocumentTemplate.DT_In, line 623, in renderwob
>   Module AccessControl.Role, line 317, in get_valid_userids
>   Module AccessControl.User, line 965, in user_names
>   Module Products.LDAPUserFolder.LDAPUserFolder, line 608, in getUserNames
> 
> TypeError: list indices must be integers
> 
> I'm running with zope 2.7.0
> 
> Best regards
> Einar Næss Jensen
> 
> _______________________________________________
> Zope maillist  -  Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 



More information about the Zope mailing list