[Date Prev][Date Next]
Re: Liberal parsing of schema elements (ITS#1996)
Howard Chu wrote:
> The code parses the string just fine and returns a valid LDAPObjectClass result.
> It just happens to leave a non-zero error code set as well, left over from its
> attempt to find a numeric OID. With the ALLOW flags set, that code is ignored
> and the parse continues. Since the return value is non-NULL Python should not be
> treating this as a failure.
IMHO the error code should be zero if everything went well. It's
called error code...
Anyway I've implemented my own parser in pure Python and switched
off using the schema API of OpenLDAP from python-ldap.