[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Invalid DN errors
- To: Nick Bright <nick.bright@valnet.net>, openldap-technical@openldap.org
- Subject: Re: Invalid DN errors
- From: Quanah Gibson-Mount <quanah@zimbra.com>
- Date: Wed, 26 Nov 2014 10:00:12 -0800
- Content-disposition: inline
- Dkim-filter: OpenDKIM Filter v2.9.2 edge02.zimbra.com 559E4A62CD
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zimbra.com; s=C2AA288C-EE47-11E2-9BB0-E820BDD9BDBF; t=1417024825; bh=HC6iKE9A9gr50GSgT2fWF3KGBcNdw1NN5nFB9rvIR2U=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding; b=BRkZHP3cilhG/FvpFqOuwb/bSTxNTh11pfdf+xkpI5iomJMNSGX7eA5oB537CVBv1 +qx2/vORTaB9eCrOxAn3yLrLCPOg0oo2kcVNCi5kVpEh3RmblNR190ZiFW6H5/qmua quA4HvMhLtfjq/Sbtb3a6D7nyipzVOYnpPuFu1j8=
- In-reply-to: <54760CB2.7060708@valnet.net>
- References: <54760CB2.7060708@valnet.net>
--On Wednesday, November 26, 2014 11:24 AM -0600 Nick Bright
<nick.bright@valnet.net> wrote:
The application is attempting to create entries with these attributes:
Primary Key: x500UniqueIdentifier
Attributes: cn, uid, sn, givenname, userPassword, dn, x500UniqueIdentifier
I would appreciate some basic guidance as to what to do, or some
direction to the proper documentation or guide for solving "invalid DN"
while attempting to add entries to the directory.
Interesting... I've never seen any one try to use x500UniqueIdentifier as a
DN component before. It looks like it expects a bitstring:
olcAttributeTypes: ( 2.5.4.45 NAME 'x500UniqueIdentifier'
DESC 'RFC2256: X.500 unique identifier'
EQUALITY bitStringMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.6 )
The syntax leads us to:
<https://www.ietf.org/rfc/rfc2252.txt>
Which, in section 6.3, gives us the requirements and an example:
6.3. Bit String
( 1.3.6.1.4.1.1466.115.121.1.6 DESC 'Bit String' )
Values in this syntax are encoded according to the following BNF:
bitstring = "'" *binary-digit "'B"
binary-digit = "0" / "1"
Example:
'0101111101'B
So clearly, the value your application is supplying is not valid, thus the
error is correct. I would suggest using a more appropriate attribute.
--Quanah
--
Quanah Gibson-Mount
Server Architect
Zimbra, Inc.
--------------------
Zimbra :: the leader in open source messaging and collaboration