[nfsv4] [FedFS] Empty fedfsNcePrefix attributes

Chuck Lever <chuck.lever@oracle.com> Wed, 14 July 2010 23:37 UTC

Return-Path: <chuck.lever@oracle.com>
X-Original-To: nfsv4@core3.amsl.com
Delivered-To: nfsv4@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 858FF3A69BD for <nfsv4@core3.amsl.com>; Wed, 14 Jul 2010 16:37:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.598
X-Spam-Level:
X-Spam-Status: No, score=-6.598 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id e8Wh7AJUrI4s for <nfsv4@core3.amsl.com>; Wed, 14 Jul 2010 16:36:58 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id 034573A6974 for <nfsv4@ietf.org>; Wed, 14 Jul 2010 16:36:22 -0700 (PDT)
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o6ENZv5V029177 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for <nfsv4@ietf.org>; Wed, 14 Jul 2010 23:35:58 GMT
Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o6EIXpGr015118 for <nfsv4@ietf.org>; Wed, 14 Jul 2010 23:35:56 GMT
Received: from abhmt019.oracle.com by acsmt354.oracle.com with ESMTP id 427215681279150484; Wed, 14 Jul 2010 16:34:44 -0700
Received: from ellison.1015granger.net (/76.241.169.38) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 14 Jul 2010 16:34:44 -0700
Message-ID: <4C3E4992.6010106@oracle.com>
Date: Wed, 14 Jul 2010 19:34:42 -0400
From: Chuck Lever <chuck.lever@oracle.com>
Organization: Oracle Corporation
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.10) Gecko/20100621 Fedora/3.0.5-1.fc13 Lightning/1.0b2pre Thunderbird/3.0.5
MIME-Version: 1.0
To: nfsv4@ietf.org
Content-Type: text/plain; charset="windows-1252"; format="flowed"
Content-Transfer-Encoding: 8bit
X-Source-IP: acsmt354.oracle.com [141.146.40.154]
X-Auth-Type: Internal IP
X-CT-RefId: str=0001.0A090202.4C3E49DC.009B:SCFMA4539814,ss=1,fgs=0
Subject: [nfsv4] [FedFS] Empty fedfsNcePrefix attributes
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 14 Jul 2010 23:37:00 -0000

Section 4.1 of the latest FedFS protocol draft:

   http://tools.ietf.org/html/draft-ietf-nfsv4-federated-fs-protocol-06

states that

> The naming context’s root entry MUST include the
> fedfsNsdbContainerInfo (defined below) as one of its object
> classes. The fedfsNsdbContainerInfo’s fedfsNcePrefix attribute
> is used to locate the naming context’s NCE.

and that

> A fedfsNsdbContainerInfo’s fedfsNcePrefix attribute contains a
> string. Prepending this string to the namingContext value produces
> the Distinguished Name (DN) of the NSDB Container Entry. An empty
> fedfsNcePrefix string value indicates that the NSDB Container Entry
> is the namingContext’s root entry.

However, the fedfsNcePrefix attribute is defined thusly:

> 4.2.1.7.  fedfsNcePrefix
>    A fedfsNcePrefix stores a UTF-8 encoded string.
>    This attribute is single-valued.
>    <CODE BEGINS>
>            ///
>            /// attributetype (
>            ///     1.3.6.1.4.1.31103.1.7 NAME ’fedfsNcePrefix’
>            ///     DESC ’NCE prefix’
>            ///     SUP name
>            ///     SINGLE-VALUE
>            ///     )
>            ///
>    <CODE ENDS>
>    OID 1.3.6.1.4.1.1466.115.121.1.12 is the DN syntax [RFC4517].

On my 389-ds server, "SUP name" is actually OID 121.1.15, not 121.1.12.

However it's defined, it appears that a string type attribute does not 
allow its value to be an empty string.  I have not found a way to insert 
a fedfsNcePrefix attribute with the value of an empty string into my 
389-ds instance.  (admittedly I'm an amateur, but...)

I found this e-mail from November of 2002:

   http://www.openldap.org/lists/openldap-devel/200211/msg00059.html

wherein Kurt Zeilenga claims that a directory string can never be empty, 
and that OpenLDAP (unclear whether he is referring to the client library 
or the server) treats all strings as directory strings.

Is specifying an empty string value as the fedfsNcePrefix well supported 
by all known LDAP implementations?

-- 
chuck[dot]lever[at]oracle[dot]come