Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Feb 2002 23:30:15 -0500
From:      Jim Durham <durham@jcdurham.com>
To:        pmcgarvey@vianetworks.co.uk, "Drew Tomlinson" <drew@mykitchentable.net>, <questions@FreeBSD.ORG>
Subject:   Re: LDAP How-To For A Newbie
Message-ID:  <200202130430.g1D4UK517996@w2xo.pgh.pa.us>
In-Reply-To: <E16aZH4-000Ov6-00@pooh.noc.u-net.net>
References:  <000501c1b354$454be0f0$c42a6ba5@lc.ca.gov> <E16aZH4-000Ov6-00@pooh.noc.u-net.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 12 February 2002 04:30 am, Peter McGarvey wrote:
> My aim is to do something similar.  But I'm just as lost and confused
> as you.  So I'd be interested in hearing about any "tips, tricks,
> pointers, RTFMs, etc." that you find out about.
>
> On Monday 11 February 2002 23:31 pm, Drew Tomlinson wrote:
> > I have successfully configured my FBSD box as a mail server with IMAP
> > (yayyy!) and it seems to be working fine.  I like the fact that I can
> > get and manage my mail from anywhere and it's always the same as I
> > left it.
> >
> > I use various clients such as Outlook Express, Squirrelmail, and
> > Mozilla, depending upon the device I am using to retrieve my mail. 
> > But I have found a limitation.  Each client maintains it's own
> > separate address book.  The time has come for me to create on
> > centralized address book.  If I understand correctly, an LDAP server
> > can be used for this.
> >
> > I have installed OpenLDAP 1.2.13 from the ports looked at the docs at
> > www.openldap.org.  I can't determine if my ldap server is working
> > properly as the example says to issue the following command:
> >
> > ldapsearch -x -b '' -s base '(objectclass=*)' namingContexts
> >
> > but this command returns an error as there is no "-x" option.  I've
> > tried it without the "-x " and get an error stating "no such object".
> > Can anyone tell me what the "-x" option was supposed to do and what
> > an equivalent command would be?
> >

I assume you have filed a few pieces of data in the database?

Just doing    ldapsearch -b 'ou=abook, dc=yourdomain, dc=com'

should dump the database.  -x means "user simple authentication instead
of SASL".  I don't use authentication, I just block IPs to only allow
useage from our LAN IPS.

Well, it's been about a year, but I'll try to remember what I had to go
through to get this working at our place.

First, you need to develop a schema that will fit the various mail clients
as best possible. We have Netscape4.7, Outlook, Outlook Express and
Entourage at our place. They all have different schemas. IE; one may
use 'mobile' for cell phone number and one may use 'cell'. 

About the easiest way I've found is to use Netscape 4.7 to import the
Outlook address book, then dump it as an ldif file from Netscape.
Netscape has a very broken way of doing ldif's, but it's a lot closer than
any other way you are going to be able to get an ascii file to import into
LDAP. At this point, I was able to do keyboard macros in emacs to fix
the ldif file from Netscape and then import that into OpenLdap with
ldapadd.

You will also find that Netscape's support is very good. It allows
name completion as soon as you type enough characters into the
"To" address on a new email that it can figure out a match. If you stop
before a definite match, it will allow you to hit the TAB key and select
from the closest matches. Outlook 97 has no support, but can be made
pretty good with the Messageware Addressbook add on service available
on their site. Outlook 2000 has support, but it sucks swampwater...to
be nice. You have to hit the "To:" button, then select "find" then select
the "service" you want to search.. Yuch....   Entourage is just fine.
Outlook Express is useable, but not as nice as Netscape for LDAP.
Unfortunately, Netscape 6x has no LDAP support. I think they plan
to add it. (At least the Mozilla crew seems to be muttering something 
about doing it).

So, it's probably the best solution for a variety of mail clients (Pine
uses LDAP quite nicely!), but it's not perfect. 

Hope this helps you. 

-Jim

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202130430.g1D4UK517996>