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

Re: A Beginning, Objects not found, more.



Roger Gregory wrote:

> 1) exported Netscape's address book, taking care to remove carriage
> returns. And example of the output (from the top-- I have added the
> 'host=muse'):
>
>         dn: cn=John Doe, mail=, host=muse
>         modifytimestamp: 19990713173637Z
>         cn: John Doe
>         xmozillausehtmlmail: FALSE
>         sn: Doe
>         givenname: John
>         countryname: United States of America
>         objectclass: top
>         objectclass: person
>
> 2) Converted the above ldif as follows:
>
>         ldif2ldbm -i contacts.ldif -f /etc/openldap/slapd.conf
>

Communicators addressbook export is LDIF, but it doesn't
necessarily export a "good" ldif or one I would recommend creating
a directory from.  I don't think it creates a complete LDIF - i.e
some records higher in the tree are missing.

Your base dn is host=muse, and it created cn=John doe, which
is under mail={value was left blank}, host=muse.  First you need
to define a value for mail (even if it's mail=x) then create the
mail=x, host=muse record, then you can create cn=john doe under
mail=x under host=muse (remember LDAP is a tree).  You're
going to have to massage anything coming out of Communicator
before importing it.

The tree that the addressbook creates in this case may be somewhat
less that desirable - mail is probably more unique than cn, so should
really be the rdn, and cn really is not necessary if mail is always defined

(and given the "tree" structure it builds, it kinda has to be).

Also, the addressbook creates a lot of non-standard attributes
(like xmozillausehtml).  In your case, you turned off schema
checking, which should allow this, but if you ever try to turn on
schema checking, you'll have a lot of headaches.

--
 Jeff Clowser
 mailto:jclowser@aerotek.com       Hanover MD  21076 USA
 Phone: (410)-579-4328             7312 Parkway Drive