[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
How can I Modify OpenLdap database?
- To: "openldap-technical@openldap.org" <openldap-technical@openldap.org>
- Subject: How can I Modify OpenLdap database?
- From: Jason Long <hack3rcon@yahoo.com>
- Date: Wed, 19 Aug 2015 10:44:25 +0000 (UTC)
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1439981066; bh=j7wNZ/OgeewY4MUf5VaY3EM0AKWkI5VUPzD4XA3wxQA=; h=Date:From:Reply-To:To:Subject:From:Subject; b=HCMHUadT4727dpq6s05eXsvTO/UNfznLB25QrpY5Vv5CrILEZ2cashlHBgMRKn7mBKdQCqYRze2WRrgULIZRycvZEtUSLk/jy0iSebhACkBR0cDHvxULnVxqluN/BA5TyFZfAphWGp7xj8yTMTXMwGoQERaKgjXgtbYTYDra/CnIoYlc2onfAPm+0qpIst0UpjR/BfRmwv/m991OTLWrDoWTWHo7oVqY5hXmBMt7o8+Ml9reL7MdIIhZHxxG4uzNWil/NxPnjN6CkUIxAI8HiJpC9/JuOmp7wrYFMnKqlC2Bc2qQSv5uOUoAY/ZHr12jYc6nzy3iZ+mPedWZUoR++A==
Hello.
I added some entries to OpenLdap but I want edit them. How can I do it?
my "slapcat" output is :
# slapcat
55d45334 ldif_read_file: checksum error on "/etc/openldap/slapd.d/cn=config/olcDatabase={1}monitor.ldif"
55d45334 ldif_read_file: checksum error on "/etc/openldap/slapd.d/cn=config/olcDatabase={2}hdb.ldif"
55d45334 The first database does not allow slapcat; using the first available one (2)
55d45334 hdb_db_open: warning - no DB_CONFIG file found in directory /var/lib/ldap: (2).
Expect poor performance for suffix "dc=linux,dc=dj".
dn: dc=linux-d,dc=j
objectClass: dcObject
objectClass: organization
dc: linux-d
o: linux-d
structuralObjectClass: organization
entryUUID: 1c4fa7b0-da8c-1034-91a3-f90dc6355c19
creatorsName: cn=Manager,dc=linux-d,dc=j
createTimestamp: 20150819070316Z
entryCSN: 20150819070316.921292Z#000000#000#000000
modifiersName: cn=Manager,dc=linux-d,dc=j
modifyTimestamp: 20150819070316Z
dn: ou=Users,dc=linux-d,dc=j
objectClass: organizationalUnit
ou: Users
structuralObjectClass: organizationalUnit
entryUUID: c3dbe28c-da8c-1034-91a4-f90dc6355c19
creatorsName: cn=Manager,dc=linux-d,dc=j
createTimestamp: 20150819070758Z
entryCSN: 20150819070758.019816Z#000000#000#000000
modifiersName: cn=Manager,dc=linux-d,dc=j
modifyTimestamp: 20150819070758Z
I want to change "linux-d" to "linux".
I edited "/tmp/users.ldif" file and used "ldapmodify -a -D cn=Manager,dc=linux,dc=dj -w hack3rcon -f /tmp/users.ldif" but "slapcat" output still is :
slapcat
55d4568e ldif_read_file: checksum error on "/etc/openldap/slapd.d/cn=config/olcDatabase={1}monitor.ldif"
55d4568e ldif_read_file: checksum error on "/etc/openldap/slapd.d/cn=config/olcDatabase={2}hdb.ldif"
55d4568e The first database does not allow slapcat; using the first available one (2)
55d4568e hdb_db_open: warning - no DB_CONFIG file found in directory /var/lib/ldap: (2).
Expect poor performance for suffix "dc=linux,dc=dj".
dn: dc=linux-d,dc=j
objectClass: dcObject
objectClass: organization
dc: linux-d
o: linux-d
structuralObjectClass: organization
entryUUID: 1c4fa7b0-da8c-1034-91a3-f90dc6355c19
creatorsName: cn=Manager,dc=linux-d,dc=j
createTimestamp: 20150819070316Z
entryCSN: 20150819070316.921292Z#000000#000#000000
modifiersName: cn=Manager,dc=linux-d,dc=j
modifyTimestamp: 20150819070316Z
dn: ou=Users,dc=linux-d,dc=j
objectClass: organizationalUnit
ou: Users
structuralObjectClass: organizationalUnit
entryUUID: c3dbe28c-da8c-1034-91a4-f90dc6355c19
creatorsName: cn=Manager,dc=linux-d,dc=j
createTimestamp: 20150819070758Z
entryCSN: 20150819070758.019816Z#000000#000#000000
modifiersName: cn=Manager,dc=linux-d,dc=j
modifyTimestamp: 20150819070758Z
dn: dc=linux,dc=dj
objectClass: dcObject
objectClass: organization
dc: linux
o: linux
structuralObjectClass: organization
entryUUID: e1968706-daa4-1034-82a7-470596994b9c
creatorsName: cn=Manager,dc=linux,dc=dj
createTimestamp: 20150819100035Z
entryCSN: 20150819100035.818429Z#000000#000#000000
modifiersName: cn=Manager,dc=linux,dc=dj
modifyTimestamp: 20150819100035Z
dn: ou=Users,dc=linux,dc=dj
objectClass: organizationalUnit
ou: Users
structuralObjectClass: organizationalUnit
entryUUID: 2a1a366c-daa5-1034-82a8-470596994b9c
creatorsName: cn=Manager,dc=linux,dc=dj
createTimestamp: 20150819100237Z
entryCSN: 20150819100237.477397Z#000000#000#000000
modifiersName: cn=Manager,dc=linux,dc=dj
modifyTimestamp: 20150819100237Z
As you see, I have "linux-d" .
How can I solve it?