From dev-return-42848-apmail-directory-dev-archive=directory.apache.org@directory.apache.org Wed Apr 10 15:33:37 2013 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 85CD610530 for ; Wed, 10 Apr 2013 15:33:37 +0000 (UTC) Received: (qmail 68392 invoked by uid 500); 10 Apr 2013 15:33:37 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 68319 invoked by uid 500); 10 Apr 2013 15:33:36 -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 Delivered-To: moderator for dev@directory.apache.org Received: (qmail 95350 invoked by uid 99); 10 Apr 2013 15:13:01 -0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of emanuel.braga@hotmail.com designates 157.55.2.83 as permitted sender) X-EIP: [gm9FGUzrizp2XuQSenKGpue3crZHvJZs] X-Originating-Email: [emanuel.braga@hotmail.com] Message-ID: Content-Type: multipart/alternative; boundary="_b7349deb-0c19-45b6-8bf1-e79d506086e2_" From: emanuel braga To: "dev@directory.apache.org" Subject: Error verifying SHA Password Date: Wed, 10 Apr 2013 15:12:33 +0000 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 10 Apr 2013 15:12:33.0629 (UTC) FILETIME=[D3C600D0:01CE35FD] X-Virus-Checked: Checked by ClamAV on apache.org --_b7349deb-0c19-45b6-8bf1-e79d506086e2_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi=2C I'm developing an application that uses ApacheDS as authentication service.= I've installed ApacheDS=2C Apache Directory Studio and I've included Apach= e LDAP API in my Java project. I've already implemented the connection and simple bind with password in pl= ain text. However I want to implement the bind process with encrypted (SHA= =2C for example) password. With Apache Directory Studio=2C I've changed pas= sword (stored as SHA) with no problems. The problem is when I try to process bind with SHA password (plain text pas= sword is 'test'): connection.bind( "ou=3Dexample=2C dc=3Dcom"=2C "{SHA}qUqP5cyxm6YcTAhz05= Hph5gvu9M=3D" )=3B I have the same problem when I try to use the verification process in Apach= e Directory Studio. Even if I copy "Current password" field and past it in = "Verify password" field (with {SHA} tag)=2C it does not work. I've only found information about this process in http://directory.apache.o= rg/api/five-minutes-tutorial.html. How do I can implement binding process with SHA passwords? Thanks in advance. Regards. ------ Emanuel Braga = --_b7349deb-0c19-45b6-8bf1-e79d506086e2_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi=2C

I'm developing an a= pplication that uses ApacheDS as authentication service. I've installed Apa= cheDS=2C Apache Directory Studio and I've included Apache LDAP API in my Ja= va project.

I've already implemented the connection and simple bind = with password in plain text. However I want to implement the bind process w= ith encrypted (SHA=2C for example) password. With Apache Directory Studio= =2C I've changed password (stored as SHA) with no problems.
The problem = is when I try to process bind with SHA password (plain text password is 'te= st'):

 =3B =3B =3B connection.bind( "ou=3Dexample=2C dc= =3Dcom"=2C "{SHA}qUqP5cyxm6YcTAhz05Hph5gvu9M=3D" )=3B

I have the sam= e problem when I try to use the verification process in Apache Directory St= udio. Even if I copy "Current password" field and past it in "Verify passwo= rd" field (with {SHA} tag)=2C it does not work.

I've only found info= rmation about this process in http://directory.apache.org/api/five-minutes-= tutorial.html.
How do I can implement binding process with SHA passwords= ?
Thanks in advance.
Regards.

------
Emanuel Braga
=
= --_b7349deb-0c19-45b6-8bf1-e79d506086e2_--