ldap.schema: str2objectclass() fails
Hans Aschauer
Hans.Aschauer at Physik.uni-muenchen.de
Tue Jul 30 09:13:01 CEST 2002
On Montag, 29. Juli 2002 18:46, Michael Ströder wrote:
> I changed the API to pass around this flags integer. I did other
> changes.
I made changes to schema.c and schema.py in order to actually pass the
flag to the C functions:
>>> a = "( 2.5.6.1 NAME 'alias' DESC 'Standard ObjectClass' SUP 'top'
MUST ( objectclass $ aliasedObjectName ) MAY ( aci ) )"
>>> ldap.schema.str2objectclass(a,15)
['2.5.6.1', ['alias'], 'Standard ObjectClass', 0, ['top'], 1,
['objectclass', 'aliasedObjectName'], ['aci'], []]
>>> ldap.schema.str2objectclass(a)
Error: 6: MUST ( objectclass $ aliasedObjectName ) MAY ( aci )
)Traceback (most recent call last):
[...]
Seems to work. Please test.
Hans
--
Hans.Aschauer at Physik.uni-muenchen.de
More information about the python-ldap
mailing list