The following should be a drop-in file to be added to someone's IDS5
installation schema. There were a few semantic differences from the
standard schema in the distro for SYNTAX. Note that this schema assumes
the netscape mail extensions for attribute info (if running netscape
mail) and should conform to the account schema for solaris 8 and 9
(mainly uidNumber and gidNumber for accounts).
Hopefully this may be useful for others with sun bundling iplanet/sun one
directory server with solaris 8 and 9. Please reference the other notes
from the file.
#
# qmail-ldap v3 directory schema for iPlanet Directory Server 5
# (a.k.a. Sun ONE Directory Server)
#
# To install, drop this file in your $INSTALL/slapd-$HOSTNAME/config/schema
# directory as 99qmail.ldif
#
# If you are not using standard Solaris uidNumber/gidNumber, make the
# appropriate changes below. Also note the modifications if no
# 50ns-mail.ldif is installed (default is installed).
#
# The offical qmail-ldap OID assigned by IANA is 7914
#
dn: cn=schema
objectClass: top
objectClass: ldapSubentry
objectClass: subschema
cn: schema
attributeTypes: ( 1.3.6.1.4.1.7914.1.2.1.8 NAME 'deliveryProgramPath' DESC 'Program to
execute for all incoming mails.' SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE )
attributeTypes: ( 1.3.6.1.4.1.7914.1.2.1.9 NAME 'qmailDotMode' DESC 'Interpretation of
.qmail files: both, dotonly, ldaponly, ldapwithprog, none' EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
attributeTypes: ( 1.3.6.1.4.1.7914.1.2.1.10 NAME 'deliveryMode' DESC 'multi field
entries of: normal, forwardonly, nombox, localdelivery, reply, echo' EQUALITY
caseIgnoreIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
attributeTypes: ( 1.3.6.1.4.1.7914.1.2.1.11 NAME 'mailReplyText' DESC 'A reply text
for every incoming message' SUBSTR caseIgnoreSubstringsMatch SYNTAX
1.3.6.1.4.1.1466.115.121.1.15{4096} SINGLE-VALUE )
attributeTypes: ( 1.3.6.1.4.1.7914.1.2.1.12 NAME 'accountStatus' DESC 'The status of a
user account: active, nopop, disabled, deleted' EQUALITY caseIgnoreIA5Match SYNTAX
1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
attributeTypes: ( 1.3.6.1.4.1.7914.1.2.1.14 NAME 'qmailAccountPurge' DESC 'The
earliest date when a mailMessageStore will be purged' EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
objectClasses: ( 1.3.6.1.4.1.7914.1.2.2.1 NAME 'qmailUser' DESC 'QMail-LDAP User' SUP
top AUXILIARY MUST ( mail $ uid ) MAY ( mailMessageStore $ homeDirectory $
userPassword $ mailAlternateAddress $ uidNumber $ gidNumber $ mailQuota $ mailHost $
mailForwardingAddress $ deliveryProgramPath $ qmailDotMode $ deliveryMode $
mailReplyText $ accountStatus $ qmailAccountPurge ) )
#
# If the netscape mail extensions are not installed (i.e. 50ns-mail.ldif)
# you must use the attributes listed below inserted before the objectClasses
# statement above
#
# attributeTypes: ( 1.3.6.1.4.1.7914.1.2.1.3 NAME 'mailMessageStore' DESC 'Path to the
maildir/mbox on the mail system' EQUALITY caseExactIA5Match SYNTAX
1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE )
# attributeTypes: ( 1.3.6.1.4.1.7914.1.2.1.4 NAME 'mailAlternateAddress' DESC
'Secondary (alias) mailaddresses for the same user' EQUALITY caseIgnoreIA5Match SYNTAX
1.3.6.1.4.1.1466.115.121.1.15 )
# attributeTypes: ( 1.3.6.1.4.1.7914.1.2.1.5 NAME 'mailQuota' DESC 'The amount of
space the user can use until all further messages get bounced.' SYNTAX
1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
# attributeTypes: ( 1.3.6.1.4.1.7914.1.2.1.6 NAME 'mailHost' DESC 'On which qmail
server the messagestore of this user is located.' EQUALITY caseIgnoreIA5Match SYNTAX
1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
# attributeTypes: ( 1.3.6.1.4.1.7914.1.2.1.7 NAME 'mailForwardingAddress' DESC
'Address(es) to forward all incoming messages to.' EQUALITY caseIgnoreIA5Match SYNTAX
1.3.6.1.4.1.1466.115.121.1.26 )
#
#
# uidNumber/gidNumber substitution for qmailUID/qmailGID
#
# objectClass qmailUser makes use of the uidNumber and gidNumber which is
# standard for accounts administration. If you need to use qmailUID or
# qmailGID change as applicable below. Be sure to modify LDAP_QMAILUID and
# LDAP_QMAILGID in qmail-ldap.h prior to compiling with uidNumber and
# gidNumber. You will also need to use the modified objectClasses
# statement below
#
# attributeTypes: ( 1.3.6.1.4.1.7914.1.2.1.1 NAME 'qmailUID' DESC 'UID of the user on
the mailsystem' EQUALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
SINGLE-VALUE )
# attributeTypes: ( 1.3.6.1.4.1.7914.1.2.1.2 NAME 'qmailGID' DESC 'GID of the user on
the mailsystem' EQUALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
SINGLE-VALUE )
# objectClasses: ( 1.3.6.1.4.1.7914.1.2.2.1 NAME 'qmailUser' DESC 'QMail-LDAP User'
SUP top AUXILIARY MUST ( mail $ uid ) MAY ( mailMessageStore $ homeDirectory $
userPassword $ mailAlternateAddress $ qmailUID $ qmailGID $ mailQuota $ mailHost $
mailForwardingAddress $ deliveryProgramPath $ qmailDotMode $ deliveryMode $
mailReplyText $ accountStatus $ qmailAccountPurge ) )