From owner-freebsd-questions Tue Feb 12 20:30:42 2002 Delivered-To: freebsd-questions@freebsd.org Received: from w2xo.pgh.pa.us (18.gibs5.xdsl.nauticom.net [209.195.184.19]) by hub.freebsd.org (Postfix) with ESMTP id AEDC737B404 for ; Tue, 12 Feb 2002 20:30:38 -0800 (PST) Received: from there (dhcp14.int [192.168.5.14]) by w2xo.pgh.pa.us (8.11.6/8.11.3) with SMTP id g1D4UK517996; Wed, 13 Feb 2002 04:30:21 GMT (envelope-from durham@jcdurham.com) Message-Id: <200202130430.g1D4UK517996@w2xo.pgh.pa.us> Content-Type: text/plain; charset="iso-8859-1" From: Jim Durham Reply-To: durham@jcdurham.com To: pmcgarvey@vianetworks.co.uk, "Drew Tomlinson" , Subject: Re: LDAP How-To For A Newbie Date: Tue, 12 Feb 2002 23:30:15 -0500 X-Mailer: KMail [version 1.3] References: <000501c1b354$454be0f0$c42a6ba5@lc.ca.gov> In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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