Schema-API

Michael Ströder michael at stroeder.com
Thu Aug 8 09:41:05 CEST 2002


Jens Vagelpohl wrote:
 >
 > [dhcp182:src/python-ldap-HEAD/Demo] jens% python2.1 schema.py
 > ldap://waldorf.zope.com/dc=vts,dc=zope,dc=com

Does the entry dc=vts,dc=zope,dc=com exist?
What LDAP server is running on waldorf.zope.com:389?
Any niftly access control in place?

Not sure how to handle ldap.NO_SUCH_OBJECT during first search in
search_subschemasubentry_s(). I've checked in a version yesterday
2002/08/07 20:25:26 which handles that (and some weird servers
returning ldap.UNDEFINED_TYPE) slightly different.

 > [dhcp182:src/python-ldap-HEAD/Demo] jens% python2.1 schema.py
 > ldap://waldorf.zope.com/dc=vts,dc=zope,dc=com
 > Time elapsed search sub schema sub entry: 0.018
 > Traceback (most recent call last):
 >   File "schema.py", line 29, in ?
 >     subschemasubentry_entry = l.read_subschemasubentry_s(
 > [..]
 > TypeError: argument 1 must be string, not None

Well, off course here the Demo script is flawed... ;-)
l.read_subschemasubentry_s() should not be called if the result 
was None (=> sync CVS).

Ciao, Michael.






More information about the python-ldap mailing list