From owner-freebsd-questions@FreeBSD.ORG Sun Apr 23 18:45:56 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D480E16A409 for ; Sun, 23 Apr 2006 18:45:56 +0000 (UTC) (envelope-from Joerg.Pulz@frm2.tum.de) Received: from mailhost.frm2.tum.de (mailhost.frm2.tum.de [129.187.179.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id C722D43D4C for ; Sun, 23 Apr 2006 18:45:50 +0000 (GMT) (envelope-from Joerg.Pulz@frm2.tum.de) Received: from localhost (mailhost.frm2.tum.de [129.187.179.12]) by mailhost.frm2.tum.de (8.13.4/8.13.4) with ESMTP id k3NIjnSX027119; Sun, 23 Apr 2006 20:45:49 +0200 (CEST) (envelope-from jpulz@frm2.tum.de) X-Virus-Scanned: at mailhost.frm2.tum.de Received: from hades.admin.frm2 (hades.admin.frm2 [172.25.1.10]) by mailhost.frm2.tum.de (8.13.4/8.13.4) with ESMTP id k3NIjj0e027115 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 23 Apr 2006 20:45:45 +0200 (CEST) (envelope-from jpulz@frm2.tum.de) Received: from hades.admin.frm2 (localhost [127.0.0.1]) by hades.admin.frm2 (8.13.4/8.13.4) with ESMTP id k3NIjjjX074524; Sun, 23 Apr 2006 20:45:45 +0200 (CEST) (envelope-from jpulz@frm2.tum.de) Received: (from jpulz@localhost) by hades.admin.frm2 (8.13.4/8.13.4/Submit) id k3NIjiD0074523; Sun, 23 Apr 2006 20:45:44 +0200 (CEST) (envelope-from jpulz) Date: Sun, 23 Apr 2006 20:45:42 +0200 (CEST) From: Joerg Pulz To: =?UTF-8?B?RXJpayBOw7hyZ2FhcmQ=?= In-Reply-To: <444BC593.9090906@locolomo.org> Message-ID: <20060423204132.K52948@hades.admin.frm2> References: <444BC593.9090906@locolomo.org> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-264289448-1145817942=:52948" Cc: FreeBSD Questions Subject: Re: I can't spell my own name in UTF-8, base 64 encoded 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: Sun, 23 Apr 2006 18:45:56 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-264289448-1145817942=:52948 Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8BIT -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sun, 23 Apr 2006, Erik Nørgaard wrote: > Hi: > > So, I finally decided to get OpenLDAP set up to serve an address book > independent of where I am and on what computer. The problem is that > unless an attribute value is ascii, values have to be in UTF-8 and > base64 encoded(?), as I could understand from googling. > > But, I can't even spell my own name in that encoding! > > So question is: How do I most easily populate my directory? Is there a > tool that can convert an iso-8859-1 ldif to utf-8+base64 ldif? Will ldap > queries also have to be encoded UTF-8+base64 as well? > > Have I misunderstood the bit about base64, that this is only required > for binary data such as jpeg images? > > All documentation I have found tells how easy it is to get data out in > UTF-8 ldif, but I really need to get the data in there first. Erik, you can convert the LDIF file with the following command iconv -f ISO8859-1 -t UTF-8 The only thing you need is converters/libiconv from ports. The base64 encoding is done by the OpenLDAP tools itself. Hth. Joerg - -- The beginning is the most important part of the work. -Plato -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFES8tYSPOsGF+KA+MRAs91AKC/4BNM0nIpwbRtWvONkzNbn5EW9wCePUi8 WNlYPWwTJQBPQLB2K+2H7Hw= =KRuH -----END PGP SIGNATURE----- --0-264289448-1145817942=:52948--