[Date Prev][Date Next]
Re: Add autofs schema to existing
On Tue, 2004-07-27 at 11:10, firstname.lastname@example.org wrote:
> Where can I get a copy of autofs schema and any advice on how to add this
> to an existing directory? I realize I have to shutdown slapd and add the
> schema to slapd.conf but I also have 4 slaves. Does this sound like a
> resonable way to do this:
> slapcat a copy of the directory to ldif file
> install the new schema with the old in the master
> start the master
> slappadd the copy of the directory to the master
> stop the master
> wipe out the relogs
> copy db files to slaves
> copy autofs.schema to slaves, slapd.conf
> start the master
> start the slaves
> Is there an easier way?
edit slapd.conf insert schema line
no need to mess around dumping data etc.
before you start though... decide on which automount schema you want to
use. There are two. Theres the nis schema which is described in RFC2307
and the automount schema described in RFC2307bis (an expired internet
draft). Different Linux distros use different schema. Redhat has patched
the automounter to be able to use both schemas and Suse uses these
patches too which helps. Debian (still?) insists on the automount
schema. Not sure about others. The PADL migration tools use the
I've attached a copy of the automount schema as packaged with
autofs-ldap on debian. the nis schema comes as standard with openldap.
Note, I found it extremely difficult to find good recommendations of
which to use or which would be most future-proof. Redhat has swung one
way, however solaris has swung the other (albeit in a slightly
proprietary way!). I opted for the automount schema on the grounds that
I needed to support autofs on a number of different Linux distros....
> Kent N
iTSS Wallingford 01491 692445
# Depends upon core.schema and cosine.schema
# OID Base is 220.127.116.11.4.1.2312.4
# Attribute types are under 18.104.22.168.4.1.2312.4.1
# Object classes are under 22.214.171.124.4.1.2312.4.2
# Syntaxes are under 126.96.36.199.4.1.2312.4.3
# Attribute Type Definitions
attributetype ( 188.8.131.52.184.108.40.206 NAME 'automountInformation'
DESC 'Information used by the autofs automounter'
SYNTAX 220.127.116.11.4.1.1418.104.22.168.26 SINGLE-VALUE )
objectclass ( 22.214.171.124.126.96.36.199 NAME 'automount' SUP top STRUCTURAL
DESC 'An entry in an automounter map'
MUST ( cn $ automountInformation $ objectclass )
MAY ( description ) )
objectclass ( 188.8.131.52.4.1.23184.108.40.206 NAME 'automountMap' SUP top STRUCTURAL
DESC 'An group of related automount objects'
MUST ( ou ) )