[Zope] ldapfilter and script

Samuele Giovanni Tonon samu at sferacarta.com
Tue Nov 16 09:05:01 EST 2004


hi to all,
i have ZLDAPConnection on zope 2.7.

I'm trying to make some script to access to data on LDAP, however
i'm stuck on some strange problem.

This is the script
from Products.PythonScripts.standard import html_quote
request = container.REQUEST
RESPONSE =  request.RESPONSE

entries = container.uidfilter(uid='*')


for e in entries:
    print e

return printed



this is the ldapfilter i call (uidfilter):

uid=<dtml-var name=uid>


If i run the ldapfilter, it returns me the data
i want to view and if i run the python scrypt
i get
<Entry instance at 1153315904; 
uid=Administrator,ou=people,dc=sferacarta,dc=com>
<Entry instance at 1153315856; uid=nobody,ou=people,dc=sferacarta,dc=com>
ecc. ecc.

however if try to print
e.objectIds() or e.objectValues()

i get only void list and i can't access to attribute of "e"

any hint ?

Thanks
Samuele





More information about the Zope mailing list