Return-Path: X-Original-To: apmail-directory-api-archive@minotaur.apache.org Delivered-To: apmail-directory-api-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BF9FF10745 for ; Wed, 8 Jan 2014 22:32:27 +0000 (UTC) Received: (qmail 11807 invoked by uid 500); 8 Jan 2014 22:32:27 -0000 Delivered-To: apmail-directory-api-archive@directory.apache.org Received: (qmail 11760 invoked by uid 500); 8 Jan 2014 22:32:27 -0000 Mailing-List: contact api-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: api@directory.apache.org Delivered-To: mailing list api@directory.apache.org Received: (qmail 11752 invoked by uid 99); 8 Jan 2014 22:32:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jan 2014 22:32:27 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of elecharny@gmail.com designates 209.85.212.173 as permitted sender) Received: from [209.85.212.173] (HELO mail-wi0-f173.google.com) (209.85.212.173) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jan 2014 22:32:21 +0000 Received: by mail-wi0-f173.google.com with SMTP id hn9so6193076wib.0 for ; Wed, 08 Jan 2014 14:32:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=5JkmdjImCgb0jf/946zVDxKPbdlGo+/S/gq+0bs5D30=; b=MUjHqqfVMiwouS0V+19fl38jwbFdh/nu0yq4beK5Aoh1gfGubLUFBltjA46RGtoG3L 5jIN8nIMxu0uOESsiTZRj0q6WI7hhz1hDDmLLL9DF4NtjGZOeTGJQWb78HUkun6ZDWyr nR7hGJFxt/zJ1HfYcIf+6BZYWR0406pt03vHXav2xZxm87GyFTYzJW3urrvg6H2mcFb2 rYWaXNLzjB8tpI4skbSnQWPKVQX8KRLAoc1IF0EjXvZi5r/FyiUWqIRUXqvfC8VX3Y2v VGDo2VGChkoBWsJffzGqpDoo4DC39XzsjD/OlX9RKzf+LVyv0YcYoY8V801sp+MdNDDW LkKg== X-Received: by 10.180.12.146 with SMTP id y18mr210942wib.37.1389220321025; Wed, 08 Jan 2014 14:32:01 -0800 (PST) Received: from Emmanuels-MacBook-Pro.local (237.195.16.93.rev.sfr.net. [93.16.195.237]) by mx.google.com with ESMTPSA id ly8sm85058wjb.17.2014.01.08.14.31.59 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 08 Jan 2014 14:32:00 -0800 (PST) Message-ID: <52CDD1DE.6050406@gmail.com> Date: Wed, 08 Jan 2014 23:31:58 +0100 From: =?UTF-8?B?RW1tYW51ZWwgTMOpY2hhcm55?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: api@directory.apache.org Subject: Re: Possible bug when adding {sha} password References: In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Le 1/8/14 11:17 PM, Flavio Mattos a écrit : > Hi everyone! > > I have noticed a strange behaviour/bug using the client API when I try to > create entries with encrypted password using {SHA}. Can you show us the code you are using to ? > > What is happening is: For some reason the API is adding a " ' " for a few > entries. To make sure the problem is not with my code I have tried to use a > hard-coded value and the problem still happening. > When I go to the Apache Directory Studio the password is like this: > '{sha}W6ph5Mm5Pz8GgiULbPgzG37mj9g=' and instead of being {sha} encrypted it > becomes plain text password. > > That is result of the toString method. > Entry: > dn: uid=30,ou=customer_db,,dc=example,dc=com > objectclass: inetOrgPerson > objectclass: organizationalPerson > objectclass: person > objectclass: top > stateorprovincename: NY > postalcode: 10475 > mail: unittest30@example.com > sn: Doe > userpassword: {sha}W6ph5Mm5Pz8GgiULbPgzG37mj9g= > cn: John > street: 999 N TEST AVE > givenname: John > localityname: UNITED STATES > > Does anybody know if there is a bug already registered for this? > > Thanks > > Flavio > -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com