From owner-freebsd-questions@FreeBSD.ORG Tue Feb 12 17:19:29 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8028516A420 for ; Tue, 12 Feb 2008 17:19:29 +0000 (UTC) (envelope-from norgaard@locolomo.org) Received: from bifrost.locolomo.org (97.pool85-48-194.static.orange.es [85.48.194.97]) by mx1.freebsd.org (Postfix) with ESMTP id 2A03713C478 for ; Tue, 12 Feb 2008 17:19:28 +0000 (UTC) (envelope-from norgaard@locolomo.org) Received: from sleipner.local (unknown [192.168.0.62]) by bifrost.locolomo.org (Postfix) with ESMTP id 4911A39827; Tue, 12 Feb 2008 18:19:27 +0100 (CET) Message-ID: <47B1D520.8060104@locolomo.org> Date: Tue, 12 Feb 2008 18:19:28 +0100 From: Erik Norgaard User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: Wael Nasreddine References: <20080212095716.GB12631@phoenix.nasreddine.info> In-Reply-To: <20080212095716.GB12631@phoenix.nasreddine.info> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-questions@freebsd.org Subject: Re: [Request] HOWTO build LDAP server for shared address book. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Feb 2008 17:19:29 -0000 Wael Nasreddine wrote: > Hello, > > I have never worked with LDAP but I would like to install an LDAP > server on my server and share my address book on it between all the > programs I used daily, I searched a lot on google but I couldn't find > anything except the one on ubuntu[1] which I'm not sure it'll work... > > Could someone please help me building this address book, I really need > it but I have no idea how to do it on my own... LDAP, despite the Lightweight part, is not that easy to understand first time, it took me quite some time before I finally got hand of it. There is a book from O'Reily on the topic. One thing I found for an address book, is that you should make sure all contacts have: objectClass: person objectClass: extensibleObject The first sets some minimum for the entries, they must be persons. The second means that you can add anything you like. Otherwise you will be restricted in your choice of attributes depending on how object classes nest. In my case, I have friends on three continents, and I like to have their address with country specified. I can't do that when the extensibleObject is missing, because person or inetOrgPerson assumes a hierarchy with country on the top, and that just doesn't make sense in my case: Then I have to search differently according to country. I need all on the same branch. extensibleObject solves that, now I can add the country attribute for each, as well as preferred language etc... Cheers, Erik -- Erik Nørgaard Ph: +34.666334818 http://www.locolomo.org