有任何教程可以解释如何通过命令行在DS 6.5上创建“对象类”和“属性类型”?
我想通过命令行导入具有以下结构的ldif文件:
const deepmerge = require('deepmerge')
const userOptions = JSON.parse(process.env.VUE_NIGHTWATCH_USER_OPTIONS || '{}')
module.exports = deepmerge({
src_folders: ['tests/e2e/specs'],
output_folder: 'tests/e2e/reports',
custom_assertions_path: ['tests/e2e/custom-assertions'],
selenium: {
start_process: false,
server_path: require('selenium-server').path,
host: 'example.com',
port: 80,
cli_args: {
'webdriver.chrome.driver': "./node_modules/.bin/chromedriver",
'webdriver.geckodriver.driver': "./node_modules/.bin/geckodriver"
}
},
test_settings: {
default: {
domain: 'google.com',
launch_url: "example.com",
selenium_port: 80,
selenium_host: 'example.com',
silent: true,
acceptSslCerts: true,
},
chrome: {
desiredCapabilities: {
browserName: 'chrome',
javascriptEnabled: true,
acceptInsecureCerts: true,
acceptSslCerts: true,
chromeOptions: {
args: [
'disable-gpu', 'no-sandbox', 'headless', 'window-size=1920,1080', 'verbose', 'ignore-certificate-errors'
]
}
}
},
"firefox": {
"desiredCapabilities": {
"browserName": 'firefox',
"javascriptEnabled": true,
"acceptSslCerts": true,
"acceptInsecureCerts":true,
"nativeEvents": true,
"moz:firefoxOptions": {
"args": [
'-headless'
]
}
}
},
}
}, userOptions);
在openLDAP上,我们是一个ldap文件,如下所示:
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
并应用最敏锐的cmd。在OpenDJ上是否类似?
答案 0 :(得分:1)
在https://backstage.forgerock.com/docs/ds上完整记录了通过OpenDJ和ForgeRock目录服务在LDAP上扩展的架构。
它与
openLDAP语法和方法:这是对cn=schema
后缀的修改操作,其中添加了attributeTypes
和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 ) )
-
请注意,您将需要添加在test-user对象类中使用的所有attributeTypes。并且您不应该添加ds-pwp-password-policy-dn,这是一个可操作的属性,可以是任何条目的一部分。