[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: How can I Modify OpenLdap database?



Can you tell me how?

# slapcat
55d6b4f8 ldif_read_file: checksum error on "/etc/openldap/slapd.d/cn=config/olcDatabase={1}monitor.ldif"
55d6b4f8 ldif_read_file: checksum error on "/etc/openldap/slapd.d/cn=config/olcDatabase={2}hdb.ldif"
55d6b4f8 The first database does not allow slapcat; using the first available one (2)
55d6b4f8 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 don't like to have any "linux-d".



On Wednesday, August 19, 2015 10:40 PM, Quanah Gibson-Mount <quanah@zimbra.com> wrote:
--On Wednesday, August 19, 2015 11:44 AM +0000 Jason Long 

<hack3rcon@yahoo.com> wrote:

> Hello.
> I added some entries to OpenLdap but I want edit them. How can I do it?

What you are talking about here is restructuring your entire directory 
tree.  So what you have to do in that case is use a modrdn operation. 
However, given that "dc=linux-d,dc=j" is likely defined as the root of your 
DIT for your HDB db, you likely need to use slapcat to update both your 
cn=config db and your database to match the new root DIT, rather than using 
a modrdn op.

--Quanah


--

Quanah Gibson-Mount
Platform Architect
Zimbra, Inc.
--------------------
Zimbra ::  the leader in open source messaging and collaboration