Hello, I can not change my config.ldif file from the HDB backend to the MDB backend. I have changed the following: ... dn: cn=module{0},cn=config objectClass: olcModuleList cn: module{0} olcModulePath: /usr/lib/ldap -olcModuleLoad: {0}back_hdb +olcModuleLoad: {0}back_mdb olcModuleLoad: {1}dynlist.so olcModuleLoad: {2}ppolicy.la structuralObjectClass: olcModuleList entryUUID: 9495e2a6-da11-1033-97d9-c1ceaf236428 creatorsName: cn=admin,cn=config createTimestamp: 20140926214112Z entryCSN: 20170201184048.317884Z#000000#000#000000 modifiersName: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth modifyTimestamp: 20170201184048Z
-dn: olcBackend={0}hdb,cn=config +dn: olcBackend={0}mdb,cn=config objectClass: olcBackendConfig -olcBackend: {0}hdb +olcBackend: {0}mdb structuralObjectClass: olcBackendConfig entryUUID: 94960592-da11-1033-97da-c1ceaf236428 creatorsName: cn=admin,cn=config createTimestamp: 20140926214112Z entryCSN: 20140926214112.940239Z#000000#000#000000 modifiersName: cn=admin,cn=config modifyTimestamp: 20140926214112Z
-dn: olcDatabase={1}hdb,cn=config +dn: olcDatabase={1}mdb,cn=config objectClass: olcDatabaseConfig -objectClass: olcHdbConfig +objectClass: olcMdbConfig -olcDatabase: {1}hdb +olcDatabase: {1}mdb +olcDbMaxSize: 1073741824 olcDbDirectory: /var/lib/ldap olcSuffix: dc=harnet,dc=de olcLastMod: TRUE olcRootDN: cn=admin,dc=harnet,dc=de olcRootPW:: -olcDbCheckpoint: 512 30 -olcDbConfig: {0}set_cachesize 0 2097152 0 -olcDbConfig: {1}set_lk_max_objects 1500 -olcDbConfig: {2}set_lk_max_locks 1500 -olcDbConfig: {3}set_lk_max_lockers 1500 -structuralObjectClass: olcHdbConfig entryUUID: 94960be6-da11-1033-97db-c1ceaf236428 creatorsName: cn=admin,cn=config createTimestamp: 20140926214112Z olcAccess: {0}to dn.subtree="dc=harnet,dc=de" by dn="uid=lamdaemon,ou=users, dc=harnet,dc=de" write by * none break olcAccess: {1}to dn.base="" by * read olcAccess: {2}to attrs=userPassword by anonymous auth by * none olcAccess: {3}to dn.base="dc=harnet,dc=de" by * read olcAccess: {4}to dn.subtree="ou=users,dc=harnet,dc=de" by dn="cn=Harbich CA Server,ou=services,dc=harnet,dc=de" write by users read by * none olcAccess: {5}to dn.subtree="ou=services,dc=harnet,dc=de" by dn="cn=Harbich CA Server,ou=services,dc=harnet,dc=de" write by users read by * none olcAccess: {6}to * by dn="cn=admin,dc=harnet,dc=de" write by * read olcDbIndex: cn pres,eq,sub olcDbIndex: sn pres,eq,sub olcDbIndex: uid pres,eq olcDbIndex: mail pres,eq,sub olcDbIndex: dcMailAlias pres,eq olcDbIndex: givenName pres,eq,sub olcDbIndex: dcSubMailAddress pres,eq olcDbIndex: dcMailAlternateAddress pres,eq olcDbIndex: dcAccountStatus pres,eq olcDbIndex: uidNumber eq olcDbIndex: gidNumber eq olcDbIndex: dhcpHWAddress eq olcDbIndex: uniqueMember eq olcDbIndex: memberUid eq olcDbIndex: objectClass eq olcDbIndex: loginShell eq olcDbIndex: sambaSID eq olcDbIndex: sambaPrimaryGroupSID eq olcDbIndex: sambaGroupType eq olcDbIndex: sambaSIDList eq olcDbIndex: sambaDomainName eq olcDbIndex: default sub olcDbIndex: ou pres,eq,sub entryCSN: 20190304162152.376029Z#000000#000#000000 modifiersName: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth modifyTimestamp: 20190304162152Z
-dn: olcOverlay={0}dynlist,olcDatabase={1}hdb,cn=config +dn: olcOverlay={0}dynlist,olcDatabase={1}mdb,cn=config objectClass: olcOverlayConfig objectClass: olcDynamicList olcOverlay: {0}dynlist olcDlAttrSet: {0}dcPosixSubAccount dcPosixOwnerURL structuralObjectClass: olcDynamicList entryUUID: 6f6012cc-da16-1033-84a3-8399e4f67731 creatorsName: cn=admin,cn=config createTimestamp: 20140926221557Z entryCSN: 20140926221557.994629Z#000000#000#000000 modifiersName: cn=admin,cn=config modifyTimestamp: 20140926221557Z ...
When I play back the config and data ldif file after deleting the ldap directories, I get the following error message:
"root@dsme01:/tmp# slapadd -F /etc/ldap/slapd.d -n 1 -l harnet.de.ldif Database number selected via -n is out of range Must be in the range 0 to 0 (the number of configured databases)"
Did I change something wrong in my config file above?
Thank you in advance for your support
--On Wednesday, July 10, 2019 12:32 PM +0200 SHarbich@t-online.de wrote:
Did I change something wrong in my config file above?
Thank you in advance for your
supportഀഀ䠀攀氀氀漀Ⰰഀഀ夀漀甀 猀栀漀甀氀搀 渀漀琀 戀攀 洀漀搀椀昀礀椀渀最 琀栀攀 挀漀渀昀椀最甀爀愀琀椀漀渀 搀椀爀攀挀琀氀礀⸀ 䤀渀猀琀攀愀搀Ⰰ 礀漀甀 猀栀漀甀氀搀 攀砀瀀漀爀琀 琀栀攀 挀渀㴀挀漀渀昀椀最 搀愀琀愀戀愀猀攀 瘀椀愀 猀氀愀瀀挀愀琀Ⰰ 洀愀欀攀 琀栀攀 洀漀搀椀昀椀挀愀琀椀漀渀猀 琀栀攀爀攀Ⰰ� ��愀渀搀 琀栀攀渀 椀洀瀀漀爀琀 瘀椀愀 猀氀愀瀀愀搀搀⸀ 吀栀椀猀 眀椀氀氀 愀氀氀漀眀 攀爀爀漀爀 挀栀攀挀欀椀渀最Ⰰ 攀琀挀Ⰰ 琀漀 昀甀渀挀琀椀漀渀 琀漀 攀渀猀甀爀攀 礀漀甀✀瘀攀 洀愀搀攀 渀漀 洀椀猀琀愀欀攀猀⸀ഀഀ䤀✀搀 愀搀搀椀琀椀漀渀愀氀氀礀 渀漀琀攀 琀栀攀爀攀 椀猀 渀漀 爀攀愀猀漀渀 琀漀 猀瀀攀挀椀 昀礀 漀氀挀䈀愀挀欀攀渀搀Ⰰ 䤀 眀漀甀氀搀 猀甀最最攀猀琀 爀攀洀漀瘀椀渀最 琀栀愀琀 攀渀琀爀礀 攀渀琀椀爀攀氀礀⸀ഀഀ刀攀最愀爀搀猀Ⰰഀ儀甀愀渀愀栀ഀഀⴀⴀഀഀ儀甀愀渀愀栀 䜀椀戀猀漀渀ⴀ䴀漀甀渀琀ഀ倀爀漀搀甀挀琀 䄀爀挀栀椀琀攀挀琀ഀ匀礀洀愀猀 䌀漀爀瀀漀爀愀琀椀漀渀ഀ倀愀挀欀愀最攀搀Ⰰ 挀攀爀琀椀昀椀� �搀Ⰰ 愀渀搀 猀甀瀀瀀漀爀琀攀搀 䰀䐀䄀倀 猀漀氀甀琀椀漀渀猀 瀀漀眀攀爀攀搀 戀礀 伀瀀攀渀䰀䐀䄀倀㨀ഀ㰀栀琀琀瀀㨀⼀⼀眀眀眀⸀猀礀洀愀猀⸀挀漀洀㸀ഀ
Am Wed, 10 Jul 2019 11:32:17 +0200 (CEST) schrieb "SHarbich@t-online.de" SHarbich@t-online.de:
Hello, I can not change my config.ldif file from the HDB backend to the MDB backend. I have changed the following:
[...]
You can not convert a hdb backend into a mdb backend without changing the underlying database. slapcat(8) the hdb database into a file and slapadd(8) the file into a mdb backend.
-Dieter
openldap-technical@openldap.org