Ldap OpenDJ在命令行上创建新的模式元素、对象类和属性类型
有任何教程可以解释如何从命令行在DS 6.5上创建“对象类”和“属性类型” 我想通过命令行导入具有以下结构的ldif文件:Ldap OpenDJ在命令行上创建新的模式元素、对象类和属性类型,ldap,opendj,Ldap,Opendj,有任何教程可以解释如何从命令行在DS 6.5上创建“对象类”和“属性类型” 我想通过命令行导入具有以下结构的ldif文件: dn: cn=schema objectClass: subschema objectClass: ldapSubentry objectClass: top cn: schema objectClasses: ( test-user-oid NAME 'test-user' SUP inetOrgPerson STRUCTURAL MUST (test-status $
dn: cn=schema
objectClass: subschema
objectClass: ldapSubentry
objectClass: top
cn: schema
objectClasses: ( test-user-oid NAME 'test-user' SUP inetOrgPerson STRUCTURAL MUST (test-status $ description) MAY ( test-lang $ ds-pwp-password-policy-dn $ test-modificationUserId ) )
modifyTimestamp: 20130411155332Z
attributeTypes: ( test-visible-startDate-oid NAME 'test-visible-startDate' EQUALITY caseIgnoreMatch ORDERING caseIgnoreOrderingMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 USAGE userApplications )
ds-sync-state: 00000131f62eceea0a4000000001
ds-sync-generation-id: 8408
modifiersName: cn=Directory Manager,cn=Root DNs,cn=config
在openLDAP上,我们可以创建如下ldap文件:
attributetype ( 1.3.6.1.4.1.18060.0.4.3.2.1
NAME 'test-user'
DESC 'test'
EQUALITY integerMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
SINGLE-VALUE
)
objectclass ( 1.3.6.1.4.1.18060.0.4.3.3.1
NAME 'ship'
DESC 'test'
SUP top
STRUCTURAL
MUST cn
MAY ( test-user $ description )
)
并应用slaptest cmd。它在OpenDJ上类似吗?使用OpenDJ和ForgeRock目录服务在LDAP上扩展模式在上有完整的文档记录。 这与我的想法略有不同 openLDAP语法和方法:它是
cn=schema
后缀的修改操作,添加attributeType
和objectClasses
属性的值
下面是上面的示例,可以通过LDAP添加到OpenDJ、ForgeRock目录服务、SunDSEE
dn: cn=schema
changetype: modify
add: attributeTypes
attributeTypes: ( test-visible-startDate-oid NAME 'test-visible-startDate' EQUALITY caseIgnoreMatch ORDERING caseIgnoreOrderingMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 USAGE userApplications )
-
add: objectClasses
objectClasses: ( test-user-oid NAME 'test-user' SUP inetOrgPerson STRUCTURAL MUST (test-status $ description) MAY ( test-lang $ ds-pwp-password-policy-dn $ test-modificationUserId ) )
-
请注意,您需要添加测试用户objectclass中使用的所有AttributeType。您不应该添加ds pwp密码策略dn,它是一个操作属性,可以是任何条目的一部分 这一部分是关于“使用文本编辑器创建一个模式文件,并在启动服务器之前将该文件添加到db/schema/目录”的,扩展了上面的响应。我希望这能澄清问题。