From users-return-2906-apmail-directory-users-archive=directory.apache.org@directory.apache.org Fri Dec 18 20:55:16 2009 Return-Path: Delivered-To: apmail-directory-users-archive@www.apache.org Received: (qmail 99452 invoked from network); 18 Dec 2009 20:55:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Dec 2009 20:55:16 -0000 Received: (qmail 47295 invoked by uid 500); 18 Dec 2009 20:55:16 -0000 Delivered-To: apmail-directory-users-archive@directory.apache.org Received: (qmail 47225 invoked by uid 500); 18 Dec 2009 20:55:15 -0000 Mailing-List: contact users-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@directory.apache.org Delivered-To: mailing list users@directory.apache.org Received: (qmail 47209 invoked by uid 99); 18 Dec 2009 20:55:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Dec 2009 20:55:15 +0000 X-ASF-Spam-Status: No, hits=-1.8 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [204.80.56.9] (HELO nyslrs.osc.state.ny.us) (204.80.56.9) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Dec 2009 20:55:06 +0000 In-Reply-To: <4B27DB71.4000700@gmail.com> X-Disclaimed: 33030 To: users@directory.apache.org Subject: Re: APACHE DS 1.5.5 Embedded - Updating multi values attributes with nulls MIME-Version: 1.0 X-Mailer: Lotus Notes Release 7.0.2 September 26, 2006 Message-ID: From: RNakka@osc.state.ny.us Date: Fri, 18 Dec 2009 15:54:43 -0500 X-MIMETrack: Serialize by Router on SMTP/IRM/NYSLRS(Release 7.0.2FP2|May 14, 2007) at 12/18/2009 03:55:06 PM, Serialize complete at 12/18/2009 03:55:06 PM Content-Type: multipart/alternative; boundary="=_alternative 0072DF7285257690_=" X-Virus-Checked: Checked by ClamAV on apache.org --=_alternative 0072DF7285257690_= Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Hi , I am using the embedded APACHE DS API 1.5.5. Starting through the testng=20 tests I am able to create partition, add users, find users, but not able to=20 update users with any attribute (Single valued and Multi valued.) Initially we thought we are not able to updated for multi values=20 attributes, but we are UNABLE to update any user attribute. I will be opeining a JIRA issue for this. =20 Please advise us. ? Ramesh Nakka Websphere Portal Consultant Mobile# 1-248 835 9758 Office# 1-518-408-4457 rnakka@osc.state.ny.us rameshbabu=5Fnl@yahoo.com Emmanuel L=8Echarny =20 12/15/2009 01:54 PM Please respond to users@directory.apache.org To users@directory.apache.org cc Subject Re: APACHE DS 1.5.5 Embedded - Updating multi values attributes with nulls RNakka@osc.state.ny.us a =E9crit : > Hi, > > The attibuteType description is as below. email2 is our application name = > we use, but actually while updating the ldap we use the ibm-otherEmail=20 > attribute name > > > > dn:=20 > m-oid=3D2.16.840.1.113730.3.2.2.1.14,ou=3DattributeTypes,cn=3Dother,ou=3D= schema > objectClass: metaTop > objectClass: metaAttributeType > objectClass: top > m-collective: FALSE > m-description: user groups > m-equality: caseIgnoreMatch > m-name: ibm-otherEmail > m-nousermodification: FALSE > m-obsolete: FALSE > m-oid: 2.16.840.1.113730.3.2.2.1.14 > m-singlevalue: FALSE > m-syntax: 1.3.6.1.4.1.1466.115.121.1.15 >=20 The 1.3.6.1.4.1.1466.115.121.1.15 syntax does not allow you to store=20 null values into the entry, per RFC 4517, 3.3.6 : "A value of the Directory String syntax is a string of **one** or more arbitrary characters from the Universal Character Set (UCS) [UCS]. A zero-length character string is not permitted. The LDAP-specific encoding of a value of this syntax is the UTF-8 encoding [RFC3629] of the character string. Such encodings conform to the following ABNF: DirectoryString =3D 1*UTF8 The rule is defined in [RFC4512]. Example: This is a value of Directory String containing #!%#@. Servers and clients MUST be prepared to receive arbitrary UCS code points, including code points outside the range of printable ASCII and code points not presently assigned to any character. Attribute type definitions using the Directory String syntax should not restrict the format of Directory String values, e.g., by requiring that the character string conforms to specific patterns described by ABNF. A new syntax should be defined in such cases. The LDAP definition for the Directory String syntax is: ( 1.3.6.1.4.1.1466.115.121.1.15 DESC 'Directory String' )..." You should use another Syntax, like IA5 String=20 (1.3.6.1.4.1.1466.115.121.1.26) which allows null values. Notice: This communication, including any attachments, is intended solely=20 for the use of the individual or entity to which it is addressed. This=20 communication may contain information that is protected from disclosure=20 under State and/or Federal law. Please notify the sender immediately if=20 you have received this communication in error and delete this email from=20 your system. If you are not the intended recipient, you are requested not=20 to disclose, copy, distribute or take any action in reliance on the=20 contents of this information. --=_alternative 0072DF7285257690_=--