Hi all,
I'm trying to add an ldif with the definition of a organizational unit, and an error message appears:
bdb_db_open: database already in use backend_startup_one: bi_db_open failed! (-1) slap_startup failed
I search for some solution on the web and i found these:
http://www.openldap.org/lists/openldap-software/200511/msg00143.html
Where was told to me that some instance of slapd was already using the database. So, i try to stop (and/or reboot) the slapd process.
Then another error appears:
bdb_db_open: Warning - No DB_CONFIG file found in directory /usr/local/var/openldap-data: (2) Expect poor performance for suffix dc=intranet,dc=techno,dc=com. => bdb_tool_entry_put: id2entry_add failed: DB_KEYEXIST: Key/data pair already exists (-30996) => bdb_tool_entry_put: txn_aborted! DB_KEYEXIST: Key/data pair already exists (-30996) slapadd: could not add entry dn="ou=h350,dc=intranet,dc=techno,dc=com" (line=6): txn_aborted! DB_KEYEXIST: Key/data pair already exists (-30996)
I think i must not stop the slapd process, but restarting it the first error appears again.
Can anyone guide me?
Thank you very much,
Daniel.
Daniel Guerrero wrote:
Hi all,
I'm trying to add an ldif with the definition of a organizational unit, and an error message appears:
bdb_db_open: database already in use backend_startup_one: bi_db_open failed! (-1) slap_startup failed
You probably ran slapadd whle slapd was running. You're supposed to use slapadd only if you know what you're doing, ldapadd is the right client for day to day activity.
I search for some solution on the web and i found these:
http://www.openldap.org/lists/openldap-software/200511/msg00143.html
Where was told to me that some instance of slapd was already using the database. So, i try to stop (and/or reboot) the slapd process.
Then another error appears:
bdb_db_open: Warning - No DB_CONFIG file found in directory /usr/local/var/openldap-data: (2) Expect poor performance for suffix dc=intranet,dc=techno,dc=com.
not a big deal for testing, but in real life you should definitely configure DB_CONFIG. For instructions, read Berkeley DB documentation, the Admin Guide and the FAQ.
=> bdb_tool_entry_put: id2entry_add failed: DB_KEYEXIST: Key/data pair already exists (-30996) => bdb_tool_entry_put: txn_aborted! DB_KEYEXIST: Key/data pair already exists (-30996) slapadd: could not add entry dn="ou=h350,dc=intranet,dc=techno,dc=com" (line=6): txn_aborted! DB_KEYEXIST: Key/data pair already exists (-30996)
I think i must not stop the slapd process, but restarting it the first error appears again.
You're adding (again probably with slapadd) an entry that already exists. Use ldapadd.
p.
Ing. Pierangelo Masarati OpenLDAP Core Team
SysNet s.r.l. via Dossi, 8 - 27100 Pavia - ITALIA http://www.sys-net.it --------------------------------------- Office: +39 02 23998309 Mobile: +39 333 4963172 Email: pierangelo.masarati@sys-net.it ---------------------------------------
2007/8/9, Pierangelo Masarati ando@sys-net.it:
Daniel Guerrero wrote:
Hi all,
I'm trying to add an ldif with the definition of a organizational unit, and an error message appears:
bdb_db_open: database already in use backend_startup_one: bi_db_open failed! (-1) slap_startup failed
You probably ran slapadd whle slapd was running. You're supposed to use slapadd only if you know what you're doing, ldapadd is the right client for day to day activity.
now i'm using ldapadd, and it wants me to enter a password... i tryed my RootDN password but it don't works... any idea of what kind of password it demands?
I search for some solution on the web and i found these:
http://www.openldap.org/lists/openldap-software/200511/msg00143.html
Where was told to me that some instance of slapd was already using the database. So, i try to stop (and/or reboot) the slapd process.
Then another error appears:
bdb_db_open: Warning - No DB_CONFIG file found in directory /usr/local/var/openldap-data: (2) Expect poor performance for suffix dc=intranet,dc=techno,dc=com.
not a big deal for testing, but in real life you should definitely configure DB_CONFIG. For instructions, read Berkeley DB documentation, the Admin Guide and the FAQ.
=> bdb_tool_entry_put: id2entry_add failed: DB_KEYEXIST: Key/data pair already exists (-30996) => bdb_tool_entry_put: txn_aborted! DB_KEYEXIST: Key/data pair already exists (-30996) slapadd: could not add entry dn="ou=h350,dc=intranet,dc=techno,dc=com" (line=6): txn_aborted! DB_KEYEXIST: Key/data pair already exists
(-30996)
I think i must not stop the slapd process, but restarting it the first error appears again.
You're adding (again probably with slapadd) an entry that already exists. Use ldapadd.
p.
Ing. Pierangelo Masarati OpenLDAP Core Team
SysNet s.r.l. via Dossi, 8 - 27100 Pavia - ITALIA http://www.sys-net.it
Office: +39 02 23998309 Mobile: +39 333 4963172 Email: pierangelo.masarati@sys-net.it
Daniel Guerrero wrote:
Hi all,
I'm trying to add an ldif with the definition of a organizational
unit,
and an error message appears:
bdb_db_open: database already in use backend_startup_one: bi_db_open failed! (-1) slap_startup failed
You probably ran slapadd whle slapd was running. You're supposed to use slapadd only if you know what you're doing, ldapadd is the right client for day to day activity.
now i'm using ldapadd, and it wants me to enter a password... i tryed my RootDN password but it don't works... any idea of what kind of password it demands?
Try your birth date. Or the password associated to the identity you're using. Unfortunately I don't know what identity you're using.
p.
Ing. Pierangelo Masarati OpenLDAP Core Team
SysNet s.r.l. via Dossi, 8 - 27100 Pavia - ITALIA http://www.sys-net.it --------------------------------------- Office: +39 02 23998309 Mobile: +39 333 4963172 Email: pierangelo.masarati@sys-net.it ---------------------------------------
2007/8/28, Pierangelo Masarati ando@sys-net.it:
Daniel Guerrero wrote:
Hi all,
I'm trying to add an ldif with the definition of a organizational
unit,
and an error message appears:
bdb_db_open: database already in use backend_startup_one: bi_db_open failed! (-1) slap_startup failed
You probably ran slapadd whle slapd was running. You're supposed to
use
slapadd only if you know what you're doing, ldapadd is the right client for day to day activity.
now i'm using ldapadd, and it wants me to enter a password... i tryed my RootDN password but it don't works... any idea of what kind of password
it
demands?
Try your birth date. Or the password associated to the identity you're using. Unfortunately I don't know what identity you're using.
p.
I mean "what kind of password", not "what password". I'm using my RootDN user.
I'm using
cn=Manager,dc=example,dc=com password -> secret
(i think that when you talk about an "identity" you mean a DN, and this is the account i use to login to the OpenLDAP server from the servers i'm working with, and it works)
the command i used is:
ldapadd -f oufile.ldif -D "cn=Manager,dc=intranet,dc=techno,dc=com" -w secret
(all the dn, cn, dc, password and filenames are ficticious, of course)
Ing. Pierangelo Masarati
OpenLDAP Core Team
SysNet s.r.l. via Dossi, 8 - 27100 Pavia - ITALIA http://www.sys-net.it
Office: +39 02 23998309 Mobile: +39 333 4963172 Email: pierangelo.masarati@sys-net.it
now i'm using ldapadd, and it wants me to enter a password... i tryed
my
RootDN password but it don't works... any idea of what kind of
password it
demands?
Try your birth date. Or the password associated to the identity you're using. Unfortunately I don't know what identity you're using.
p.
I mean "what kind of password", not "what password".
Sorry, I couldn't resist. But the only types of passwords I know are those that work and those that don't.
I'm using my RootDN user.
Then use your rootdn password, the one that's in rootpw.
I'm using
cn=Manager,dc=example,dc=com password -> secret
(i think that when you talk about an "identity" you mean a DN,
An "identity" for SIMPLE bind is a DN; an identity for a SASL bind is whatever specified by the SASL mechanism in use. That's why I don't want to be more specific than you about the type of identity you're using, since I'm not you.
and this is the account i use to login to the OpenLDAP server from the servers i'm working with, and it works)
the command i used is:
ldapadd -f oufile.ldif -D "cn=Manager,dc=intranet,dc=techno,dc=com" -w secret
Well, if "cn=Manager,dc=intranet,dc=techno,dc=com" is your rootdn, if "secret" is your rootpw, and if you add a "-x" to select SIMPLE bind, that should work.
(all the dn, cn, dc, password and filenames are ficticious, of course)
of course.
p.
Ing. Pierangelo Masarati OpenLDAP Core Team
SysNet s.r.l. via Dossi, 8 - 27100 Pavia - ITALIA http://www.sys-net.it --------------------------------------- Office: +39 02 23998309 Mobile: +39 333 4963172 Email: pierangelo.masarati@sys-net.it ---------------------------------------
I tried this "-x" and worked... no errors!
I was trying to do a SASL bind in spite of a simple one...
Thank you very much.
2007/8/28, Pierangelo Masarati ando@sys-net.it:
now i'm using ldapadd, and it wants me to enter a password... i tryed
my
RootDN password but it don't works... any idea of what kind of
password it
demands?
Try your birth date. Or the password associated to the identity you're using. Unfortunately I don't know what identity you're using.
p.
I mean "what kind of password", not "what password".
Sorry, I couldn't resist. But the only types of passwords I know are those that work and those that don't.
I'm using my RootDN user.
Then use your rootdn password, the one that's in rootpw.
I'm using
cn=Manager,dc=example,dc=com password -> secret
(i think that when you talk about an "identity" you mean a DN,
An "identity" for SIMPLE bind is a DN; an identity for a SASL bind is whatever specified by the SASL mechanism in use. That's why I don't want to be more specific than you about the type of identity you're using, since I'm not you.
and this is the account i use to login to the OpenLDAP server from the servers i'm working with, and it works)
the command i used is:
ldapadd -f oufile.ldif -D "cn=Manager,dc=intranet,dc=techno,dc=com" -w secret
Well, if "cn=Manager,dc=intranet,dc=techno,dc=com" is your rootdn, if "secret" is your rootpw, and if you add a "-x" to select SIMPLE bind, that should work.
(all the dn, cn, dc, password and filenames are ficticious, of course)
of course.
p.
Ing. Pierangelo Masarati OpenLDAP Core Team
SysNet s.r.l. via Dossi, 8 - 27100 Pavia - ITALIA http://www.sys-net.it
Office: +39 02 23998309 Mobile: +39 333 4963172 Email: pierangelo.masarati@sys-net.it
openldap-software@openldap.org