-
Notifications
You must be signed in to change notification settings - Fork 139
Creating DS Backend Manually
Endi S. Dewata edited this page Dec 14, 2020
·
4 revisions
To create a backend instance (e.g. pki) for a subtree (e.g. dc=pki,dc=example,dc=com), execute the following command:
$ ldapadd -h $HOSTNAME -x -D "cn=Directory Manager" -w Secret.123 << EOF dn: cn=pki,cn=ldbm database,cn=plugins,cn=config objectClass: top objectClass: nsBackendInstance objectClass: extensibleObject cn: pki nsslapd-suffix: dc=pki,dc=example,dc=com EOF
To map a subtree (e.g. dc=pki,dc=example,dc=com) to a backend (e.g. pki), execute the following command:
$ ldapadd -h $HOSTNAME -x -D "cn=Directory Manager" -w Secret.123 << EOF dn: cn="dc=pki,dc=example,dc=com",cn=mapping tree,cn=config objectClass: top objectClass: extensibleObject objectClass: nsMappingTree cn: dc=pki,dc=example,dc=com nsslapd-backend: pki nsslapd-state: backend EOF
To add the top-level entry (e.g. dc=pki,dc=example,dc=com), execute the following command:
$ ldapadd -h $HOSTNAME -x -D "cn=Directory Manager" -w Secret.123 << EOF dn: dc=pki,dc=example,dc=com objectClass: domain dc: pki EOF
Tip
|
To find a page in the Wiki, enter the keywords in search field, press Enter, then click Wikis. |