无法使用运行时configurationcn = config在OpenLDAP中添加模式

我有以下的ldif文件,我试图加载到openLDAP中:

为Monas项目创build自定义模式

dn: cn=testSchemas,cn=schema,cn=config objectClass: olcSchemaConfig cn: testSchemas olcAttributeTypes ( 1.3.6.1.4.1.4203.666.1.90 NAME 'competence' DESC 'The field an individual is qualified' EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubStringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} ) olcAttributeTypes ( 1.3.6.1.4.1.4203.666.1.91 NAME 'spokenLanguage' DESC 'The language spoken by a person.' SUP preferredLanguage EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubStringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256} ) olcObjectClasses ( 1.3.6.1.4.1.4203.666.2012.1 NAME 'inetOrgTestPerson' DESC 'An extension of the inetOrgPerson objectClass to add some additional attributes' SUP inetOrgPerson STRUCTURAL MUST competence MAY spokenLanguage ) 

我一直geting错误: ldapadd:无效的格式(第4行)条目:cn = testSchemas,cn =架构,cn =configuration“ ,我不能找出我的生活有什么问题。 2.4.28

编辑:修复了缺less':'的合成错误后,我设法添加对象和属性(或者我想),但我不能看到他们,当我执行search我得到的错误:

 ldap_modify: Type or value exists (20) additional info: modify/add: olcAttributeTypes: value #0 already exists 

当我尝试再次添加对象,这意味着他们在数据库中,但没有任何search。

从我在LDIF中可以看到的,你在olcAttributeTypesolcObjectClasses关键字后面缺less冒号( olcObjectClasses 。 应该是这样的:

 olcAttributeTypes: ( 1.3.6.1.4.1.4203.666.1.90 NAME 'competence' ...