[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: slapcat -n 0 and slapadd
On Oct 26, 2011, at 2:18 PM, Quanah Gibson-Mount wrote:
>
>
> --On October 26, 2011 2:00:07 PM -0700 Craig White <craig.white@ttiltd.com> wrote:
>
>
>> root@ubuntu:/etc/ldap# rm -fr slapd.d/*
>> root@ubuntu:/etc/ldap# rm -fr /var/lib/ldap/*
>> root@ubuntu:/etc/ldap# slapadd -F /etc/ldap/slapd.d -n 0 -l
>> slapcat_config.ldif olcDbDirectory: value #0: invalid path: No such file
>> or directory slapadd: could not add entry
>> dn="olcDatabase={2}hdb,cn=config" (line=1009): _###################
>> 99.24% eta none elapsed none spd 5.4 M/s Closing DB...
>> root@ubuntu:/etc/ldap# slapadd -F /etc/ldap/slapd.d -n 1 -l
>> slapcat_data.ldif accesslog: "logdb <suffix>" missing or invalid.
>> backend_startup_one (type=hdb, suffix="dc=ttinet,dc=local"): bi_db_open
>> failed! (1) slap_startup failed
>
> You sent the wrong entry. Clearly when you did rm -rf /var/lib/ldap you removed directories that are referenced in your exported config (specifically whatever is in olcDbDirectory. Note that the error clearly states the problem is with the olcDatabase={2}hdb entry, yet you sent an entirely unrelated and different entry. Please send the information that is relevant to the error reported.
----
the last 3 entries of my slapcat_config.ldif (I believe this is starting at line 993)
dn: olcOverlay={1}accesslog,olcDatabase={1}hdb,cn=config
objectClass: olcOverlayConfig
objectClass: olcAccessLogConfig
olcOverlay: {1}accesslog
olcAccessLogDB: cn=accesslog
olcAccessLogOps: writes
olcAccessLogPurge: 07+00:00 01+00:00
olcAccessLogSuccess: TRUE
structuralObjectClass: olcAccessLogConfig
entryUUID: 676a8df4-6db8-1030-90ba-11b63c1d4648
creatorsName: cn=admin,cn=config
createTimestamp: 20110907161553Z
entryCSN: 20110907161553.355785Z#000000#000#000000
modifiersName: cn=admin,cn=config
modifyTimestamp: 20110907161553Z
dn: olcDatabase={2}hdb,cn=config
objectClass: olcDatabaseConfig
objectClass: olcHdbConfig
olcDatabase: {2}hdb
olcDbDirectory: /var/lib/ldap/accesslog
olcSuffix: cn=accesslog
olcRootDN: cn=admin,dc=ttinet,dc=local
olcDbIndex: default eq
olcDbIndex: entryCSN,objectClass,reqEnd,reqResult,reqStart
structuralObjectClass: olcHdbConfig
entryUUID: 673907ac-6db8-1030-90b6-11b63c1d4648
creatorsName: cn=admin,cn=config
createTimestamp: 20110907161553Z
entryCSN: 20110907161553.031220Z#000000#000#000000
modifiersName: cn=admin,cn=config
modifyTimestamp: 20110907161553Z
dn: olcOverlay={0}syncprov,olcDatabase={2}hdb,cn=config
objectClass: olcOverlayConfig
objectClass: olcSyncProvConfig
olcOverlay: {0}syncprov
olcSpNoPresent: TRUE
olcSpReloadHint: TRUE
structuralObjectClass: olcSyncProvConfig
entryUUID: 67684d46-6db8-1030-90b8-11b63c1d4648
creatorsName: cn=admin,cn=config
createTimestamp: 20110907161553Z
entryCSN: 20110907161553.341021Z#000000#000#000000
modifiersName: cn=admin,cn=config
modifyTimestamp: 20110907161553Z