Return-Path: X-Original-To: apmail-directory-dev-archive@www.apache.org Delivered-To: apmail-directory-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CBF7391CA for ; Wed, 15 Feb 2012 13:40:23 +0000 (UTC) Received: (qmail 51632 invoked by uid 500); 15 Feb 2012 13:40:23 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 51595 invoked by uid 500); 15 Feb 2012 13:40:23 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 51588 invoked by uid 99); 15 Feb 2012 13:40:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Feb 2012 13:40:23 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of pajbam@gmail.com designates 74.125.82.178 as permitted sender) Received: from [74.125.82.178] (HELO mail-we0-f178.google.com) (74.125.82.178) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Feb 2012 13:40:14 +0000 Received: by werb12 with SMTP id b12so867822wer.37 for ; Wed, 15 Feb 2012 05:39:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:mime-version:content-type:subject:date:in-reply-to:to :references:message-id:x-mailer; bh=gAtipyt1GGJTrU1UPveo6Zxg2O1pSkWGa4Gx9uC84n8=; b=cxj+K6IJaqNDuTKEwG43UBts+400RmHrcTuYFg71Vrj3N9srUx9l3VEUfYzRoOd6H3 biwjzj3lpfaYrjs5XIWxR95BAUm+pvtiL9VzOgD6sZxbu2nDzJYuW5cuXK6dTE2QHK1d CDHgZEPsAcljXZib21W5VDvmmFzhsrBSG6liI= Received: by 10.216.136.80 with SMTP id v58mr2638468wei.34.1329313194221; Wed, 15 Feb 2012 05:39:54 -0800 (PST) Received: from [192.168.0.11] (lon92-10-78-226-4-211.fbx.proxad.net. [78.226.4.211]) by mx.google.com with ESMTPS id ft8sm33561084wib.11.2012.02.15.05.39.50 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 15 Feb 2012 05:39:51 -0800 (PST) Sender: Pierre-Arnaud Marcelot From: Pierre-Arnaud Marcelot Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: multipart/alternative; boundary="Apple-Mail=_74D75748-FFC8-4B28-B2BF-319FB3FBC657" Subject: Re: Renaming an entry with a case insensitive RDN : how to handle it ? Date: Wed, 15 Feb 2012 14:39:50 +0100 In-Reply-To: <4F3BB270.1050907@gmail.com> To: "Apache Directory Developers List" , elecharny@apache.org References: <4F3BB270.1050907@gmail.com> Message-Id: <4544E65F-6361-426C-9256-6276B6CAB9FE@marcelot.net> X-Mailer: Apple Mail (2.1257) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_74D75748-FFC8-4B28-B2BF-319FB3FBC657 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 On 15 f=E9vr. 2012, at 14:26, Emmanuel L=E9charny wrote: > Hi guys, >=20 > let's suppose we have an entry like : >=20 > dn: cn=3Djohn doe, ou=3Dsystem > objectclass: person > cn: john doe > sn: john doe >=20 > Let's now suppose that we want to camel-case the cn to have an entry = like : >=20 > dn: cn=3DJohn Doe, ou=3Dsystem > objectclass: person > cn: John Doe > sn: john doe >=20 > Currently ADS does not support such a modification : it considers that = it's a modifcation of an entry on itself, and it's not allowed. (cn is = case insensitive, so basically, it's really a modification on itself). Here's the exact error message it returns: > LDAP: error code 68 - Attempt to move entry onto itself. The error message is the same whether we use the LDAP API or JNDI in = Studio. I tested the same thing on OpenLDAP and the modification is successful. > Now, from the user PoV, this is a bit painful, because even if cn is = case insensitive, the user wants to see the DN as he provided it (after = the rename, he may expect dn: cn=3DJohn Doe, ou=3Dsystem). >=20 > So >=20 > Q1 : should we allow such a rename ? (it will modify the RDN *and* the = attribute) =46rom the server's POV, the value, once normalized, is exactly the same = ('cn' is case insensitive). So I understand the rejection. Now, from a user's POV, it would be better if it worked. So, I'd go +1. > Q2 : if we modify the cn only, should the RDN be modified too ? = (currently, ADS does modify the CN, but not the RDN) +1 too. Regards, Pierre-Arnaud > wdyt ? >=20 > --=20 > Regards, > Cordialement, > Emmanuel L=E9charny > www.iktek.com >=20 --Apple-Mail=_74D75748-FFC8-4B28-B2BF-319FB3FBC657 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=iso-8859-1
Hi guys,

let's suppose we have an entry like = :

dn: cn=3Djohn doe, ou=3Dsystem
objectclass: person
cn: = john doe
sn: john doe

Let's now suppose that we want to = camel-case the cn to have an entry like :

dn: cn=3DJohn Doe, = ou=3Dsystem
objectclass: person
cn: John Doe
sn: john = doe

Currently ADS does not support such a modification : it = considers that it's a modifcation of an entry on itself, and it's not = allowed. (cn is case insensitive, so basically, it's really a = modification on = itself).

Here's the exact = error message it returns:
LDAP: error code 68 - Attempt to move entry = onto itself.

The error = message is the same whether we use the LDAP API or JNDI in = Studio.

I tested the same thing on OpenLDAP and = the modification is successful.

Now, from the user PoV, this is a bit painful, = because even if cn is case insensitive, the user wants to see the DN as = he provided it (after the rename, he may expect dn: cn=3DJohn Doe, = ou=3Dsystem).

So

Q1 : should we allow such a rename ? (it = will modify the RDN *and* the = attribute)

=46rom the server's = POV, the value, once normalized, is exactly the same ('cn' is case = insensitive). So I understand the rejection.
Now, from a = user's POV, it would be better if it = worked.

So, I'd go +1.

Q2 : if we modify the cn only, should the RDN be = modified too ? (currently, ADS does modify the CN, but not the = RDN)

+1 = too.

Regards,
Pierre-Arnaud

wdyt ?

-- =
Regards,
Cordialement,
Emmanuel L=E9charny
www.iktek.com

=
= --Apple-Mail=_74D75748-FFC8-4B28-B2BF-319FB3FBC657--