title: Creating a new ObjectClass and Attribute in openLDAP
body: <p>I am new at LDAP and searched for adding simple objectClass and Attributes but still getting an error, 
  I would like to have an object 'adminFunc' with a simple string attribute 'functionId' so I copied adminFunc.schema and adminFunc.ldif to the schema folder:</p>
  
  <p><strong>adminFunc.schema:</strong></p>
  
  <pre><code>objectidentifier adminFuncSchema 1.3.6.1.4.1.X.Y
  objectidentifier funcAttrs adminFuncSchema:3
  objectidentifier funcClass adminFuncSchema:4
  
  attributetype ( funcAttrs:2
    NAME 'functionId'
    EQUALITY caseIgnoreMatch
    SUBSTR caseIgnoreSubstringsMatch
    ORDERING caseIgnoreOrderingMatch
    SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{255} )  
  
  objectclass ( 
    funcClass:1
    NAME 'adminFunc'
    DESC 'Admin permission'
    SUP ( top ) AUXILIARY
    MAY functionId )
  </code></pre>
  
  <p><strong>adminFunc.ldif:</strong> ( which has been generated automatically by running slaptest )</p>
  
  <pre><code>dn: cn=adminFunc
  objectClass: olcSchemaConfig
  cn: adminFunc
  olcObjectIdentifier: adminFuncSchema 1.3.6.1.4.1.X.Y
  olcObjectIdentifier: funcAttrs adminFuncSchema:3
  olcObjectIdentifier: funcClass adminFuncSchema:4
  olcAttributeTypes: ( funcAttrs:2 NAME 'functionId' EQUALITY caseIgnoreMat
   ch ORDERING caseIgnoreOrderingMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX
    1.3.6.1.4.1.1466.115.121.1.15{255} )
  olcObjectClasses: ( funcClass:1 NAME 'adminFunc' DESC 'Admin permission' 
   SUP top AUXILIARY MAY functionId )
  structuralObjectClass: olcSchemaConfig
  entryUUID: c43389f4-0bfb-1037-959b-c9dc976d6fc3
  creatorsName: cn=config
  createTimestamp: 20170802182555Z
  entryCSN: 20170802182555.047279Z#000000#000#000000
  modifiersName: cn=config
  modifyTimestamp: 20170802182555Z
  </code></pre>
  
  <p><strong>modify.ldif</strong> 
  my dn is ou=Local,ou=SV,dc=example,dc=com</p>
  
  <p>trying to run this command to create a new Call_Center object: </p>
  
  <p><em>ldapmodify -x -W -D "cn=ldapadmin,dc=example,dc=com" -f modify.ldif</em></p>
  
  <pre><code>dn: cn=Call_Center,ou=Local,ou=SV,dc=example,dc=com
  changetype: add
  objectClass: top
  objectClass: adminFunc
  cn: Call_Center
  functionId: 1010
  </code></pre>
  
  <p>But can't find my adminFunc object:</p>
  
  <pre><code>SASL/EXTERNAL authentication started
  SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
  SASL SSF: 0
  adding new entry "cn=Call_Center,ou=Local,ou=SV,dc=example,dc=com"
  ldap_add: Invalid syntax (21)
         additional info: objectClass: value #1 invalid per syntax
  </code></pre>
  
  <p>Not sure what am I missing.</p>
  
  <p>Thanks</p>