[Zope] ZLDAP 1.0 beta 2

Petr Knapek knapek@knapek.pvt.net
10 May 2000 12:20:16 +0200


Hi Jeffrey,
I tried to install your product ZLDAP on my Zope 2.1.6 (Debian Linux
box). I can open connection to an LDAP server and to get search results
when an LDAP method is used. That's no problem. What annoys me is this
Zope error message when I try to make LDAP connection object browsable
in manage mode (browse tab):

        Zope Error

        Zope has encountered an error while publishing this resource.

        Error Type: IndexError
        Error Value: list index out of range

Traceback (innermost last):
  File /home/knapek/dist/zope/Zope-2.1.2-linux2-x86/lib/python/ZPublisher/Publish.py, line 214, in publish_module
  File /home/knapek/dist/zope/Zope-2.1.2-linux2-x86/lib/python/ZPublisher/Publish.py, line 179, in publish
  File /home/knapek/dist/zope/Zope-2.1.2-linux2-x86/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook
    (Object: mm)
  File /home/knapek/dist/zope/Zope-2.1.2-linux2-x86/lib/python/ZPublisher/Publish.py, line 165, in publish
  File /home/knapek/dist/zope/Zope-2.1.2-linux2-x86/lib/python/ZPublisher/mapply.py, line 160, in mapply
    (Object: manage_browse)
  File /home/knapek/dist/zope/Zope-2.1.2-linux2-x86/lib/python/ZPublisher/Publish.py, line 102, in call_object
    (Object: manage_browse)
  File /home/knapek/dist/zope/Zope-2.1.2-linux2-x86/lib/python/App/special_dtml.py, line 120, in __call__
    (Object: manage_browse)
    (Info: /home/knapek/dist/zope/Zope-2.1.2-linux2-x86/lib/python/Products/ZLDAPConnection/browse.dtml)
  File /home/knapek/dist/zope/Zope-2.1.6-linux2-x86/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__
    (Object: manage_browse)
  File /home/knapek/dist/zope/Zope-2.1.2-linux2-x86/lib/python/DocumentTemplate/DT_With.py, line 132, in render
    (Object: getRoot)
  File /home/knapek/dist/zope/Zope-2.1.2-linux2-x86/lib/python/Products/ZLDAPConnection/ZLDAP.py, line 248, in getRoot
    (Object: mm)
  File /home/knapek/dist/zope/Zope-2.1.2-linux2-x86/lib/python/Products/ZLDAPConnection/ZLDAP.py, line 238, in getEntry
    (Object: mm)
  File /home/knapek/dist/zope/Zope-2.1.2-linux2-x86/lib/python/Products/ZLDAPConnection/ZLDAP.py, line 228, in getRawEntry
    (Object: mm)
IndexError: (see above) 

Below you can see part of syslog (LDAP log), when I tried to switch to browsable
LDAP connection and have a click on 'browse tab' in manage screen. I am
not sure whether 'scope=0' (ldap.SCOPE_BASE) is efficient in your
method. Please can you give me more information on documentation and
explain me, where I do any mistake.

syslog: 
May 10 12:09:57 mm slapd[288]: conn=11155 fd=10 connection from knapek.pvt.net (194.149.103.136) accepted. 
May 10 12:09:57 mm slapd[6133]: conn=11155 op=0 BIND dn="UID=PVT.KNAPEK,OU=EMPLOYEES,DC=PVT,DC=NET" method=128 
May 10 12:09:57 mm slapd[6133]: conn=11155 op=0 RESULT err=0 tag=97 nentries=0 
May 10 12:09:57 mm slapd[6134]: conn=11155 op=1 SRCH base="DC=PVT,DC=NET" scope=0 filter="(objectclass=*)" 
May 10 12:09:57 mm slapd[6134]: conn=11155 op=1 RESULT err=0 tag=101 nentries=0 
May 10 12:09:57 mm slapd[288]: conn=11155 op=-1 fd=10 closed errno=0 
May 10 12:09:57 mm slapd[6135]: conn=11155 op=2 UNBIND


Thanks, Petr
-- 
Petr Knápek
PVT.NET, e-mail: petr.knapek@pvt.net
tel:+420-5-41 558 394
FAX:+420-5-41 558 390
PVT a.s. - pvt.net, Veveří 102, 659 10 Brno, Czech Republic