|
From: Michael <mi...@st...> - 2000-07-04 09:53:35
|
Federico Di Gregorio wrote:
>
> i am just restarting to work on the high level python-ldap api and
> the lappo LDAP browser. some months ago we talked about schema (ldap 3)
> support and how to implement it. a guy promised a draft that was never
> posted (or, maybe, i lost it.)
Well, I promised to make a draft for a LDAP class library but I did
not have the time. It's still in my mind to write something like
this because it would make some parts of web2ldap much cleaner.
Such a class library should contain classes for syntaxes,
attributes, objectclasses and whole entries. E.g. take a look at the
schema configuration files coming with OpenLDAP 2.0. You'll find
things like
----------------- snip -------------------
objectClass: ( 1.3.6.1.4.1.4203.666.3.3 NAME 'OpenLDAPorg'
DESC 'OpenLDAP Organizational Object'
SUP pilotOrganization
MAY ( authPassword $ displayName $ labeledURI ) )
attributetype ( 0.9.2342.19200300.100.1.2 NAME
'textEncodedORAddress'
EQUALITY caseIgnoreMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
----------------- snip -------------------
which gives a pretty good idea of what is need as attributes in a
objectClass object or attribute object. These things should all be
indexed/referenced by the unique, numerical OID.
Hmm, I could not find syntax definitions in OpenLDAP 2.0 alpha4 but
you can query LDAPv3 servers for their locally-defined schema. I
attached the schema of ldap.surfnet.nl in LDIF which might give you
a rough idea of the whole thing.
Ciao, Michael. |