12. Example files

Here are the example files that can be used to setup an installation as I described here.

12.1. The schema file

# Unix related and default classes (Modified)

attribute       userpassword                            ces
attribute       telephonenumber                         tel
attribute       facsimiletelephonenumber        fax     tel
attribute       pagertelephonenumberpager               tel
attribute       homephone                               tel
attribute       mobiletelephonenumber           mobile  tel
attribute       member                                  dn
attribute       owner                                   dn
attribute       dn                                      dn

objectclass top
        requires
                objectClass

objectclass organization
        requires
                objectClass,
                o
        allows
                description

objectclass organizationalUnit
        requires
                objectClass,
                ou
        allows
                description

objectclass person
        requires
                objectClass,
                cn
        allows
                description

objectclass account
        requires
                objectClass,
                uid
        allows
                description,
                host,
                o,
                ou

# Samba related classes (Original)

objectclass sambaaccount
        requires
                objectclass,
                uid,
                uidnumber,
                ntuid,
                rid
        allows
                gidnumber,
                grouprid,
                nickname,
                userpassword,
                ou,
                description,
                lmpassword,
                ntpassword,
                pwdlastset,
                smbhome,
                homedrive,
                script,
                profile,
                workstations,
                acctflags,
                pwdcanchange,
                pwdmustchange

objectclass sambagroup
        requires
                cn,
                rid
        allows
                ntuid,
                member,
                description

objectclass sambaconfig
        requires
                id
        allows
                nextrid

objectclass sambabuiltin
        requires
                cn,
                sid
        allows
                ntuid,
                rid,
                member,
                description

# Sendmail related class (new / modified)

objectclass inetmailrecipient
	requires
		objectclass
	allows
		mailid,
		mailacceptinggeneralid,
		maildrop

objectclass inetmaildomain
	requires
		objectclass,
		sendmailislocalkey
	allows
		maildomain,
		sendmailaccesskey

# Addressbook related classes

objectclass netscapeaddressbook
        requires
                objectclass,
                cn
        allows
                cellphone,
                countryname,
                description,
                facsimiletelephonenumber,
                givenname,
                homephone,
                homeurl,
                locality,
                mail,
                nickname,
                o,
                ou,
                pagerphone,
                postalcode,
                sn,
                st,
                streetaddress,
                telephonenumber,
                title,
                xmozillanickname,
                xmozillausehtmlmail,
                xmozillaanyphone

objectclass microsoftaddressbook
        requires
                objectclass,
                cn
        allows
                c,
                department,
                facsimiletelephonenumber,
                givenname,
                homephone,
                homepostaladdress,
                info,
                initials,
                l,
                mail,
                mobile,
                organizationname,
                otherfacsimiletelephonenumber,
                otherpager,
                physicaldeliveryofficename,
                postaladdress,
                postalcode,
                sn,
                st,
                telephonenumber,
                title,
                url

12.2. Example base ldif

dn: dc=yourorg,dc=com
objectClass: top
objectClass: organization
o: YourOrg
description: This is our organizations base dn. Everything is stored beneath this

dn: ou=Users,dc=yourorg,dc=com
objectClass: top
objectClass: organizationalunit
ou: Users
description: This is the tree were user accounts are stored

dn: ou=Machines,dc=yourorg,dc=com
objectClass: top
objectClass: organizationalunit
ou: Machines 
description: This is the tree were machine accounts are stored

dn: ou=Roaming,dc=yourorg,dc=com
objectClass: top
objectClass: organizationalunit
ou: Roaming
description: This is the tree were netscape roaming profiles are stored

dn: ou=Addressbook,dc=yourorg,dc=com
objectClass: top
objectClass: organizationalunit
ou: Addressbook
description: This is the tree were addressbook entries are stored

Space for these documents provided by Ben Spade in support of the Linux community.
Change happens - click for HOWTO index