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

Re: Schema Replication and data replication.

So I have installed openldap 2.4.35 and it shows in the dpkg -l list.  From
the master that is running I ran:

slapcat -n0 -F /etc/ldap/slapd.d
-l /mnt/downloads/ldap/config-20130809-3.ldif

on my server that I have ran the update on  and the server that I have not
run the update on I run the following command:

slapadd -n0 -F /etc/openldap/slapd.d
-l /mnt/downloads/ldap/config-20130809-3.ldif

On both servers I get the following error:

 str2entry: invalid value for attributeType objectClass #0 (syntax

Here that section of the ldif file created by the slapcat command:

dn: cn=module{0},cn=config
objectClass: olcModuleList
cn: module{0}
olcModulePath: /usr/lib/ldap
olcModuleLoad: {0}back_hdb
olcModuleLoad: {1}ppolicy
olcModuleLoad: {2}memberof
olcModuleLoad: {3}dynlist
olcModuleLoad: {4}syncprov
olcModuleLoad: {5}refint
olcModuleLoad: {6}accesslog
structuralObjectClass: olcModuleList
entryUUID: 35b6151c-93c2-1032-9c9a-711c013d2dcb
creatorsName: cn=config
createTimestamp: 20130807153144Z
entryCSN: 20130807153144.459666Z#000000#000#000000
modifiersName: cn=config
modifyTimestamp: 20130807153144Z

Am I just missing something simple?
Eric Speake
Web Systems Administrator
O'Reilly Auto Parts

From:	Quanah Gibson-Mount <quanah@zimbra.com>
To:	espeake@oreillyauto.com
Cc:	openldap-technical@openldap.org
Date:	08/09/2013 11:11 AM
Subject:	Re: Schema Replication and data replication.
Sent by:	openldap-technical-bounces@OpenLDAP.org

--On August 9, 2013 9:07:06 AM -0500 espeake@oreillyauto.com wrote:

> So I have been able to build a package for ubuntu.  A few questions.
> I have yet to find where to set the default install directory when I
> run ./configure.  The default is /etc/openldap and I would like to change
> it to /etc/ldap which is the current install directory.
> I was able to install the package but the version still shows version
> 2.4.28.  Do I need to reboot the server?


First, you do not want to physically replace the distro provided OpenLDAP.
You want your build to install somewhere else, so that you don't overwrite
the distribution libldap, etc.  If you do that, you may have a number of
issues with other software programs that were linked to them.

Second, the best course would be to simply slapcat your existing config,
and re-import it to a location specific to you, so that OS updates/upgrades

don't potentially wipe out your configuration.

I.e., you should isolate your production instance from the OS.

Additionally, I would note the -F option to slapd, etc.  See the related
manual pages.

Hope this helps!


Quanah Gibson-Mount
Principal Software Engineer
Zimbra, Inc
Zimbra ::  the leader in open source messaging and collaboration

This message has been scanned for viruses and dangerous content,
and is believed to be clean.
  Message id: 98FA5600A42.AF8AA

This communication and any attachments are confidential, protected by Communications Privacy Act 18 USCS § 2510, solely for the use of the intended recipient, and may contain legally privileged material. If you are not the intended recipient, please return or destroy it immediately. Thank you.