3
# Convert OpenLDAP schema files into RHDS format with pretty printing
5
# Mike Jackson <mj@sci.fi> 14 June 2005
23
next if (/^\s*\#/); # skip comments
52
if ( /attribute[t|T]ype/ ) {
55
s/attribute[t|T]ype/attributeTypes:/;
59
if ( /object[c|C]lass/ ) {
62
s/object[c|C]lass/objectClasses:/;
68
print "dn: cn=schema\n";
74
s/attributeTypes: \(/attributeTypes: \(\n /;
77
s/EQUALITY/\n EQUALITY/;
78
s/SUBSTRING/\n SUBSTRING/;
83
s/SINGLE-VALUE/\n SINGLE-VALUE/;
94
s/objectClasses: \(/objectClasses: \(\n /;
98
s/AUXILIARY/\n AUXILIARY/;
99
s/STRUCTURAL/\n STRUCTURAL/;
115
print "#********************************************************************\n";