Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Here is my ldif file :
dn: ou=export,dc=XXXXX,dc=local
objectClass: top
objectClass: autoumountMap
ou: export

dn: cn=/,ou=export,dc=XXXXX,dc=local
objectClass: top
objectClass: automount
cn: /
automountInformation: -rw,nfs,hard,intr,nodev,nosuid

When I try to add it, I got the following error :

SERVER2:/etc/ldap/ldif# ldapadd -x -f addnfs.ldif -W -D cn=admin,dc=XXXXX,dc=local
Enter LDAP Password:
adding new entry "ou=export,dc=XXXXX,dc=local"
ldap_add: Invalid syntax (21)
additional info: objectClass: value #1 invalid per syntax

Any idea why ? I followed that tutorial :


share|improve this question

You have a typo.

objectClass: auto**u**mountMap


objectClass: automountMap

In another cause, I think your slapd.conf not include autofs.schema.

share|improve this answer
Hi, Thanks for your answer, it solved my problem (syntax error). the autofs.schema is included in slapd.conf. Now I got the following error : adding new entry "ou=export,dc=mactelecom,dc=local" ldap_add: No such object (32) – Henry-Nicolas Tourneur Aug 20 '09 at 14:05
Please add the following entry to your directory server at first. dn: dc=mactelecom,dc=local objectClass: dcObject objectClass: organization o: mactelecom dc: mactelecom – jfutagawa Aug 21 '09 at 1:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.