[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: How can I Modify OpenLdap database?
- To: Quanah Gibson-Mount <quanah@zimbra.com>, "openldap-technical@openldap.org" <openldap-technical@openldap.org>
- Subject: Re: How can I Modify OpenLdap database?
- From: Jason Long <hack3rcon@yahoo.com>
- Date: Fri, 21 Aug 2015 05:20:43 +0000 (UTC)
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1440134444; bh=VXzNRZZlq8aMFkDgcj0cRg0pAcglus/oqithXtQtlsI=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject; b=Lr/bnuWqEtOvKpGlloBDBIfI2IDUVR3H3NW45CXxA4bTAQWVbUh2BTdEttODWc7Uk3vdjzpGcppVKulhbKSCl4Y9fDOgzY8m05AbY81n/3qJkhTE/FgMdhcY5q4kGRQ5py7ReIYQ1hxUAC0dWxPvH6FkTSbaaYWSr5/CW6wMmak6NsGTJm0SjFmZTBAFg5+GzEnL6npQLTWw+4vWcF4cW3TRsFa+6dbzGrEFp9Obi6u6EVrKD24e3NthR3RNOtZf5IaANPGJYvJD9lvxNILJd4AbpIPndJNOp/yOocqpnZkLzgxJQ7MWbG27Nbbh/irZHesCya2uT2sC5uHwGq5N3A==
- In-reply-to: <A2D77216107B3E6ACD0CB063@[192.168.1.9]>
- References: <A2D77216107B3E6ACD0CB063@[192.168.1.9]>
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