[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:
this is the ldapfilter i call (uidfilter):
If i run the ldapfilter, it returns me the data
i want to view and if i run the python scrypt
<Entry instance at 1153315904;
<Entry instance at 1153315856; uid=nobody,ou=people,dc=sferacarta,dc=com>
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 ?
More information about the Zope