ldap.schema: str2objectclass() fails
Michael Ströder
michael at stroeder.com
Tue Jul 30 13:59:47 CEST 2002
Hans Aschauer wrote:
> On Dienstag, 30. Juli 2002 11:42, Michael Ströder wrote:
>
>>You can check yourself by invoking recently checked in
>>Demo/schema.py:
>>
>>$ python Demo/schema.py ldap://memberdir.netscape.com/
>
> The problem is that they do not provide OID's where there must be OID's:
> objectClasses: ( inetsubscriber-oid
Yes, that's what i suspected too. But I thought one of
#define LDAP_SCHEMA_ALLOW_DESCR 0x04
/* Allow descr instead of OID */
#define LDAP_SCHEMA_ALLOW_DESCR_PREFIX 0x08
/* Allow descr as OID prefix */
#define LDAP_SCHEMA_ALLOW_OID_MACRO 0x10
/* Allow OID macros in slapd */
would do the trick.
> There's not much that we
> can do in this case (except for writing our own parser,
Jacek already has a pure-Python parser in his curses-based LDAP
client...
> or filing a
> "bug" report, and hoping the best...)
I suspect that Kurt will not accept that but I will try to file an
issue report anyway.
> Of course, if we already had better error handling, we could also use
> some heuristics after an exception is caught ;-)
No.
Ciao, Michael.
More information about the python-ldap
mailing list