Automount Issues

Additional schema required for some systems

If you are supporting Solaris clients, you WILL need the 2307bis style automount schema, although Sun’s version is NOT identical to the one at

The following schema is from the HP’s site

dn: cn=schema
objectClasses: ( NAME 'automountMap' DESC 'Automount Map information' SUP top
 STRUCTURAL MUST automountMapName MAY description X-ORIGIN 'user defined' )
objectClasses: ( NAME 'automount' DESC 'Automount information' SUP top STRUCTURAL
 MUST ( automountKey $ automountInformation ) MAY description X-ORIGIN 'user defined' )
attributeTypes: ( NAME 'automountMapName' DESC 'automount Map Name' EQUALITY
 caseExactIA5Match SYNTAX SINGLE-VALUE X-ORIGIN 'user defined' )
attributeTypes: ( NAME 'automountKey' DESC 'Automount Key value' EQUALITY
 caseExactIA5Match SYNTAX SINGLE-VALUE X-ORIGIN 'user defined' )
attributeTypes: ( NAME 'automountInformation' DESC 'Automount information'
 defined' )

How to get Linux autofs to work with SunDS

Should also apply to Fedora DS

The above link cannot be reached. I think the link is now:

Detail Steps

Instructions on how to create autofs mount entries for ldap and linux. First part deals with exporting /home for our user tux.


You should have your ldap server up and running. Root access to the server you want autofs to work on. Also that server should already be able to communicate with the ldap server for users/groups. You will need the perl script found here . And download the schema schema file mentioned above. You will also need to have nfs service on the server you want to export directories from. configuring nfs is beyond the scope of this document but an entry in the /etc/exports looks something like this


Test from the command line that you can mount the /home directory. This helps eliminate suspects when things don’t work. You should also change our test user tux to a user in your ldap server.

Convert/pretty up the schema

The schema is now shipped with Directory Server Core as 60autofs.ldif

Creating auto.master

Now that we have our schema loaded we can now create our auto.master ou (Organizational Unit).

dn: ou=auto.master,dc=example,dc=com
ou: auto.master
objectClass: top
objectClass: automountMap

Now create a automount entry under auto.master for /home

dn: cn=/home,ou=auto.master,dc=example,dc=com
objectClass: automount
cn: /home

What these entry is doing is it will inform autofs where to get the mount information for /home

Creating auto.home

For the auto.home we need to create another ou.

dn: ou=auto.home,dc=example,dc=com
ou: auto.home
objectClass: top
objectClass: organizationalUnit
objectClass: automountmap

Under this ou we will have our entries for each user. Our user should look like the following

dn: cn=tux,ou=auto.home,dc=example,dc=com
cn: tux
objectClass: automount
automountInformation: -rsize=8192,wsize=8192,intr

The automountInformation is telling the autofs the options to use when it mounts the directory, and what server to get the directory from.


The last thing you will need to do is edit the /etc/sysconfig/autofs file and enable the following lines.

# Other common LDAP nameing

Once you have made the changes and saved the file restart autofs

[root@remote_system ~]# service autofs restart

You should now be able to su - tux and see that his home directory has been mounted. If not check the /var/log/messages. You can also turn up the debug in the /etc/sysconfig/autofs file.

All User Entry

If you want all users to be able to mount their home directory, but don’t want to add an entry for each user, you will take the following.

dn: cn=tux,ou=auto.home,dc=example,dc=com
cn: tux
objectClass: automount
automountInformation: -rsize=8192,wsize=8192,intr

and make it look like

dn: cn=/,ou=auto.home,dc=example,dc=com
cn: /
objectClass: automount
automountInformation: -rsize=8192,wsize=8192,intr

Then anyone that has a home directory the server on your NfsServer the autofs will mount it.


Watch for info on how to make auto.misc, and others.

I used the following sites for information on how to do this.

Last modified on 1 February 2016