Good afternoon. I installed 389-ds on Ubuntu. I need to use mdb instead of bdb. But the installed dconf utility does not contain the 'config' option: # dsconf usage: dsconf [-h] [-v] [-D BINDDN] [-b BASEDN] [-Z] instance {{backend,schema,healthcheck,plugin,memberof,usn,rootdn,whoami,referint} ... dsconf: error: the following arguments are required: instance
Tell me what are the possible solutions, please.
More precisely, there is no backend option # dsconf instance backend config usage: dsconf instance backend [-h] {list,get,get_dn,create,delete} ... dsconf instance backend: error: invalid choice: 'config' (choose from 'list', 'get', 'get_dn', 'create', 'delete')
Hi,
I think the command should be 'dsconf instance backend config set --db_lib mdb'.
Now I am unsure if it is sufficient to switch to mdb database. Pierre ?
regards thierry
On 3/31/22 12:20 PM, iyagomailru Alexander Yakovlev wrote:
More precisely, there is no backend option # dsconf instance backend config usage: dsconf instance backend [-h] {list,get,get_dn,create,delete} ... dsconf instance backend: error: invalid choice: 'config' (choose from 'list', 'get', 'get_dn', 'create', 'delete') _______________________________________________ 389-users mailing list -- 389-users@lists.fedoraproject.org To unsubscribe send an email to 389-users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/389-users@lists.fedoraproject.... Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
Hi,
It's a problem: no option config in script, Only 'list', 'get', 'get_dn', 'create', 'delete'
# dsconf ldap://127.0.0.1:389/ backend config set --db_lib mdb usage: dsconf instance backend [-h] {list,get,get_dn,create,delete} ... dsconf instance backend: error: invalid choice: 'config' (choose from 'list', 'get', 'get_dn', 'create', 'delete')
I downloaded the source code, I found the DEFAULT_DB constant (one way to swotch to mdb) only in version 2.1, but version 1.3 is installed from the packages. Apparently, this is the problem.
First our mdm(lmdb) implementation is very new and has not gone through any QE testing yet. So it's experimental at this stage. It is also only available in 389-ds-base-2.1 (or newer). "mdm" is not available in 1.3.x or 1.4.x.
So Thierry was correct, in 389-ds-base-2.1 the CLI command would be:
# dsconf slapd-instance backend config set --db_lib mdb
Then you need to import your LDIF file after making this change.
HTH, Mark
On 3/31/22 7:33 AM, iyagomailru Alexander Yakovlev wrote:
Hi,
It's a problem: no option config in script, Only 'list', 'get', 'get_dn', 'create', 'delete'
# dsconf ldap://127.0.0.1:389/ backend config set --db_lib mdb usage: dsconf instance backend [-h] {list,get,get_dn,create,delete} ... dsconf instance backend: error: invalid choice: 'config' (choose from 'list', 'get', 'get_dn', 'create', 'delete')
I downloaded the source code, I found the DEFAULT_DB constant (one way to swotch to mdb) only in version 2.1, but version 1.3 is installed from the packages. Apparently, this is the problem. _______________________________________________ 389-users mailing list -- 389-users@lists.fedoraproject.org To unsubscribe send an email to 389-users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/389-users@lists.fedoraproject.... Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
Mark, Thierry, thank You. I would really want to execute this command, but the 'config' option is missing in my version 389-ds, so I was asking for advice on how to configure it in another way.
Here is the result of the command executing: root@389ldap-test:~# dsconf slapd-instance backend config set --db_lib mdb usage: dsconf instance backend [-h] {list,get,get_dn,create,delete} ... dsconf instance backend: error: invalid choice: 'config' (choose from 'list', 'get', 'get_dn', 'create', 'delete')
Version of 389-ds: root@389ldap-test:~# apt show 389-ds Package: 389-ds Version: 1.3.7.10-1ubuntu1 Priority: optional Section: universe/net Source: 389-ds-base Origin: Ubuntu
Quoting Mark Reynolds:
"First our mdm(lmdb) implementation is very new and has not gone through any QE testing yet. So it's experimental at this stage. It is also only available in 389-ds-base-2.1 (or newer). "mdm" is not available in 1.3.x or 1.4.x."
There is no mdm in the version you have. It isn't a problem of a missing configuration command.
rob
iyagomailru Alexander Yakovlev wrote:
Mark, Thierry, thank You. I would really want to execute this command, but the 'config' option is missing in my version 389-ds, so I was asking for advice on how to configure it in another way.
Here is the result of the command executing: root@389ldap-test:~# dsconf slapd-instance backend config set --db_lib mdb usage: dsconf instance backend [-h] {list,get,get_dn,create,delete} ... dsconf instance backend: error: invalid choice: 'config' (choose from 'list', 'get', 'get_dn', 'create', 'delete')
Version of 389-ds: root@389ldap-test:~# apt show 389-ds Package: 389-ds Version: 1.3.7.10-1ubuntu1 Priority: optional Section: universe/net Source: 389-ds-base Origin: Ubuntu _______________________________________________ 389-users mailing list -- 389-users@lists.fedoraproject.org To unsubscribe send an email to 389-users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/389-users@lists.fedoraproject.... Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
On 3/31/22 2:25 PM, iyagomailru Alexander Yakovlev wrote:
Mark, Thierry, thank You. I would really want to execute this command, but the 'config' option is missing in my version 389-ds, so I was asking for advice on how to configure it in another way.
I am not expert of mdb use but I think the switch is simply to stop DS, edit dse.ldif
dn: cn=config,cn=ldbm database,cn=plugins,cn=config nsslapd-backend-implement: mdb
Then restart ds.
Here is the result of the command executing: root@389ldap-test:~# dsconf slapd-instance backend config set --db_lib mdb usage: dsconf instance backend [-h] {list,get,get_dn,create,delete} ... dsconf instance backend: error: invalid choice: 'config' (choose from 'list', 'get', 'get_dn', 'create', 'delete')
Version of 389-ds: root@389ldap-test:~# apt show 389-ds Package: 389-ds Version: 1.3.7.10-1ubuntu1 Priority: optional Section: universe/net Source: 389-ds-base Origin: Ubuntu _______________________________________________ 389-users mailing list -- 389-users@lists.fedoraproject.org To unsubscribe send an email to 389-users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/389-users@lists.fedoraproject.... Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
Hi,
As Mark said, to be able to use the new experimental lmdb feature, you need to install version 2.1 or greater. After that, there is several way to enable mdb backend:
1. create directly the instance with mdb: export NSSLAPD_DB_LIB=mdb dscreate ... 2. create directly the instance with mdb by using dscreate template: create a dscreate template file containing db_lib=mdb in [slapd] section: Here is an example: cat /tmp/dscreate.inf
[general] [slapd]
instance_name = foo
db_lib=mdb
port = 7389
root_password = password
secure_port = 7636
[backend-userroot]
create_suffix_entry = True
sample_entries = yes suffix = dc=example,dc=com
dscreate from-file /tmp/dscreate.inf
3. create instance with bdb then migrate: dsctl *instanceName* dblib bdb2mdb 4. Do the migration by switching the database type then restart and reimport (that is the solution described by Mark)
Regards, Pierre
On Thu, Mar 31, 2022 at 2:25 PM iyagomailru Alexander Yakovlev < iyagomailru@gmail.com> wrote:
Mark, Thierry, thank You. I would really want to execute this command, but the 'config' option is missing in my version 389-ds, so I was asking for advice on how to configure it in another way.
Here is the result of the command executing: root@389ldap-test:~# dsconf slapd-instance backend config set --db_lib mdb usage: dsconf instance backend [-h] {list,get,get_dn,create,delete} ... dsconf instance backend: error: invalid choice: 'config' (choose from 'list', 'get', 'get_dn', 'create', 'delete')
Version of 389-ds: root@389ldap-test:~# apt show 389-ds Package: 389-ds Version: 1.3.7.10-1ubuntu1 Priority: optional Section: universe/net Source: 389-ds-base Origin: Ubuntu _______________________________________________ 389-users mailing list -- 389-users@lists.fedoraproject.org To unsubscribe send an email to 389-users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/389-users@lists.fedoraproject.... Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
Hello. I got the information, thank you. There is no new version in the packages. It was not possible to compile the new version (glibc 2.30+ is required, and 2.27 is in the system), so for now I decided to stay on the stable version with the dbd database. I will be waiting for the new version to appear in Ubuntu or OEL7/8 packages. Thanks.
dsconf was still experimental in 1.3.7. That's a really really old version ...
As pierre has said, you need version 2.1 if you need mdb.
You might be best using our docker image rather than your distro package, since the container is much newer. See:
https://hub.docker.com/r/389ds/dirsrv
On 31 Mar 2022, at 22:25, iyagomailru Alexander Yakovlev iyagomailru@gmail.com wrote:
root@389ldap-test:~# apt show 389-ds Package: 389-ds Version: 1.3.7.10-1ubuntu1
-- Sincerely,
William Brown
Senior Software Engineer, Identity and Access Management SUSE Labs, Australia
389-users@lists.fedoraproject.org