Hello,
I am having a problem executing the ldapadd(1) through ldapi for the below LDIF: dn: olcDatabase=hdb objectClass: olcDatabaseConfig objectClass: olcHdbConfig olcDatabase: hdb olcDbDirectory: /var/lib/ldap/example.com olcSuffix: dc=example,dc=com olcAccess: {0}to attrs=userPassword,shadowLastChange by self write by anonymou s auth by dn="cn=admin,dc=example,dc=com" write by * none olcAccess: {1}to dn.base="" by * read olcAccess: {2}to * by self write by dn="cn=admin,dc=example,dc=com" write by * read olcLastMod: TRUE olcRootDN: cn=admin,dc=example,dc=com olcRootPW:: e1NTSEF9NlZSbnN2bkJEWVdSbFFoS1ZWOE1TckxTdWhsc0NvSVg= 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 olcDbIndex: objectClass eq
The error is below: ldapadd: invalid format (line 12) entry: "olcDatabase=hdb"
The line 12 contains: olcRootDN, it seems.
I successfully tried a similar setup earlier. Please advise what should I check for clues.
Sincerely,
Igor Shmukler
Am Wed, 4 Feb 2015 10:35:30 +0200 schrieb Igor Shmukler igor.shmukler@gmail.com:
Hello,
I am having a problem executing the ldapadd(1) through ldapi for the below LDIF: dn: olcDatabase=hdb
[...]
this should be dn: olcDatabase={1}hdb,cn=config ... olcDatabase:{1}hdb ...
The error is below: ldapadd: invalid format (line 12) entry: "olcDatabase=hdb"
The line 12 contains: olcRootDN, it seems.
I successfully tried a similar setup earlier. Please advise what should I check for clues.
-Dieter
Hello Dieter,
Yes. You are correct. Thank you. I figured this one out a little while ago. The database number can be omitted (and ldapadd will fix it), yet ",cn=config" must be present. Getting to the point where I sometimes figure it out on my own. :) Appreciate your help.
Sincerely,
Igor Shmukler
On Wednesday, February 4, 2015, Dieter Klünter dieter@dkluenter.de wrote:
Am Wed, 4 Feb 2015 10:35:30 +0200 schrieb Igor Shmukler <igor.shmukler@gmail.com javascript:;>:
Hello,
I am having a problem executing the ldapadd(1) through ldapi for the below LDIF: dn: olcDatabase=hdb
[...]
this should be dn: olcDatabase={1}hdb,cn=config ... olcDatabase:{1}hdb ...
The error is below: ldapadd: invalid format (line 12) entry: "olcDatabase=hdb"
The line 12 contains: olcRootDN, it seems.
I successfully tried a similar setup earlier. Please advise what should I check for clues.
-Dieter
-- Dieter Klünter | Systemberatung http://dkluenter.de GPG Key ID:DA147B05 53°37'09,95"N 10°08'02,42"E
openldap-technical@openldap.org