Hey Quanah,
Thank you very much for the debugging tip! -- Using it I got further in. Now I get an error "<= str2entry: str2ad(UR1): attribute type undefined". I must be setting my external variables (such as UR1) incorrectly in my LDIF file. What is the correct syntax for setting them, please? I tried each of the following sentences, none of which worked: URI1: ldap://host1.hq.mycompany.com:389/ URI1: ldap://host1.hq.mycompany.com:389 URI1: "ldap://host1.hq.mycompany.com:389/" URI1="ldap://host1.hq.mycompany.com:389/" URI1="ldap://host1.hq.mycompany.com:389" URI1 ldap://host1.hq.mycompany.com:389/
This is the command I execute (after removing all contents from slapd.d): slapadd -d -1 -v -F /etc/openldap/slapd.d -n 0 -l /etc/openldap/nwaymmr.ldif >& output.txt
For completeness I've attached my LDIF file "nwaymmr.ldif" and the output "output.txt" utilizing the first line above.
Thank you very much, in advance.
Fal
On Sat, Dec 29, 2012 at 9:02 PM, Quanah Gibson-Mount quanah@zimbra.comwrote:
--On Saturday, December 29, 2012 9:01 AM -0800 fal patel < fal0patel@gmail.com> wrote:
(3) Where It's Failing:
================= I first executed the following:
slapadd -v -F /usr/local/etc/openldap/slapd.**d -b bdb -l mmr.ldif
This is nonsensical. You are adding a cn=config DB. Thus you cannot use a base of "bdb". Remember that -b is the suffix you are adding (in this case, cn=config). Not the database type.
So I suppose I must create the database beforehand?
No. But the directory (/usr/local/etc/openldap/**slapd.d) must exist before slapadd will work.
I would suggest you run:
slapadd -d -1 -v -F /usr/local/etc/openldap/slapd.**d -n 0 -l mmr.ldif
So you can see exactly why it is failing. My guess is you didn't create the directory.
--Quanah
--
Quanah Gibson-Mount Sr. Member of Technical Staff Zimbra, Inc A Division of VMware, Inc.
Zimbra :: the leader in open source messaging and collaboration
--On Monday, December 31, 2012 9:49 AM -0800 fal patel fal0patel@gmail.com wrote:
Hey Quanah,
Thank you very much for the debugging tip! -- Using it I got further in. Now I get an error "<= str2entry: str2ad(UR1): attribute type undefined". I must be setting my external variables (such as UR1) incorrectly in my LDIF file. What is the correct syntax for setting them, please? I tried each of the following sentences, none of which worked: URI1: ldap://host1.hq.mycompany.com:389/ URI1: ldap://host1.hq.mycompany.com:389 URI1: "ldap://host1.hq.mycompany.com:389/" URI1="ldap://host1.hq.mycompany.com:389/" URI1="ldap://host1.hq.mycompany.com:389" URI1 ldap://host1.hq.mycompany.com:389/
There is no URI bit in the admin guide. I highly advise you go re-read it. What you posted is clearly invalid.
From the admin guide:
-----------------------------------------------------
Now we setup the first Master Node (replace $URI1, $URI2 and $URI3 etc. with your actual ldap urls):
dn: cn=config changetype: modify replace: olcServerID olcServerID: 1 $URI1 olcServerID: 2 $URI2 olcServerID: 3 $URI3
-----------------------------------------------------
I.e. the attribute name is "olcServerID".
--Quanah
--
Quanah Gibson-Mount Sr. Member of Technical Staff Zimbra, Inc A Division of VMware, Inc. -------------------- Zimbra :: the leader in open source messaging and collaboration
openldap-technical@openldap.org