Schema Format

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kevin Peterson wrote:
> When creating a custom schema file, whitespace appears to be
> important. For example:
> 
> attributetypes: (1.3.6.1.4.1.2114.108.1.8.999.8
> NAME ('inherent-3-D-shape-reverse')
> SUP tsCaseIgnoreIA5String
> SINGLE-VALUE)
> 
> attributetypes: (1.3.6.1.4.1.2114.108.1.8.999.9
> NAME ('branch-continuity')
> SUP tsCaseIgnoreIA5String
> SINGLE-VALUE)
> 
> will not work, while

Of course it does not work ;-) See RFC 2849 for formatting rules. FDS 
uses an LDIF object for the schema files:

dn: cn=schema
objectClasses: ...
objectClasses: ...
attributeTypes: ...
attributeTypes: ...



I use this type of nice format; I even wrote a perl program to reformat 
long attribute values to the below format, for readability:

#
# foo schema
#
#
dn: cn=schema
#
################################
# attributes
################################
#
attributeTypes: (
   1.3.6.1.4.1.1.1.1.1.1.1
   NAME 'xxx'
   DESC 'xxx'
   SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
   SINGLE-VALUE
   )
#
################################
#
attributeTypes: (
   1.3.6.1.4.1.1.1.1.1.1.2
   NAME 'xxy'
   DESC 'xxy'
   SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
   SINGLE-VALUE
   )
#
################################
#
attributeTypes: (
   1.3.6.1.4.1.1.1.1.1.1.3
   NAME 'xxz'
   DESC 'xxz'
   SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
   SINGLE-VALUE
   )
#
################################
# object classes
################################
#
objectClasses: (
   1.3.6.1.4.1.1.1.1.1.2.1
   NAME 'xyzclass'
   SUP top
   MUST ( cn $ xxx )
   MAY ( description $ xxy $ xxz )
   )
#
#
# EOF



Mike

-- 
LDAP Directory Consulting - http://www.netauth.com




[Index of Archives]     [Fedora User Discussion]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Yosemite Photos]     [Linux Apps]     [Maemo Users]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Fedora ARM]

  Powered by Linux