Parsing a .schema file

Aurynn Shaw aurynn at gmail.com
Wed May 2 20:17:07 CEST 2007


Hi, everyone;

I'm trying to parse a foo.schema file, which appears to be in the

attributetype ( 1.3.6.1.4.1.11940.1
	NAME 'startDate'
	DESC 'Flash Code user subscription start date'
	EQUALITY caseIgnoreMatch
	SUBSTR caseIgnoreSubstringsMatch
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )

style format, instead of LDIF.

ldap.schema seems to indicate that it can parse LDAP schemas. Is that  
in this format, or does it require a connection to the LDAP server?

Could I get some examples on how to do what I'm looking for?
I'm wanting to generate SQL CREATE TABLE statements directly from the  
LDAP schema, which will hopefully save a lot of time in migrating my  
backend to postgres.

Thank you,
Aurynn





More information about the python-ldap mailing list