Return-Path: X-Original-To: apmail-directory-users-archive@www.apache.org Delivered-To: apmail-directory-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 440C0DEB9 for ; Tue, 18 Dec 2012 11:22:37 +0000 (UTC) Received: (qmail 1051 invoked by uid 500); 18 Dec 2012 11:22:36 -0000 Delivered-To: apmail-directory-users-archive@directory.apache.org Received: (qmail 734 invoked by uid 500); 18 Dec 2012 11:22:33 -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 685 invoked by uid 99); 18 Dec 2012 11:22:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Dec 2012 11:22:31 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ayyagarikiran@gmail.com designates 209.85.210.174 as permitted sender) Received: from [209.85.210.174] (HELO mail-ia0-f174.google.com) (209.85.210.174) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Dec 2012 11:22:26 +0000 Received: by mail-ia0-f174.google.com with SMTP id y25so404651iay.19 for ; Tue, 18 Dec 2012 03:22:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=oeLvLqQvdaqt6MRzS/CACwmDyJ2n8rwBp6I2QQc2AoY=; b=swqiaKF4myXLE5UFhim5zSLb0EwNeIxoKrDrKnNyakKwefbuoGZUVgIoQtj2lgF04E dXGDM7Hnbna0tPErNcuMA6qm3cX4022Nfs4DsWrvI4dwhFRQC9xH0nrTvDheYEKvUNa9 ciQmxzkQmcSl+/38cZU1z2rUOhJIWl800eB7+3eHiH4ZqOSQsMYKSU/h/ps8JqcWuFp+ oLd6UbKZ8AxBMDlOnNWfREKizupq8aaLcUQ2NnE84YDxqNIJ2fxoZiImkJ31Ef+AhZPf k8l5UxvHROzxurNL+rADptFdTGQZ/Q4q6jfBIfaA5Qnu83zBtwl0lesaJdc2G7J3duCS UZhA== MIME-Version: 1.0 Received: by 10.50.57.232 with SMTP id l8mr2100884igq.54.1355829726148; Tue, 18 Dec 2012 03:22:06 -0800 (PST) Sender: ayyagarikiran@gmail.com Received: by 10.231.31.3 with HTTP; Tue, 18 Dec 2012 03:22:05 -0800 (PST) In-Reply-To: <1355824704.77758.YahooMailNeo@web186104.mail.ir2.yahoo.com> References: <1355579054.62183.YahooMailNeo@web186103.mail.ir2.yahoo.com> <1355820175.75552.YahooMailNeo@web186106.mail.ir2.yahoo.com> <1355824704.77758.YahooMailNeo@web186104.mail.ir2.yahoo.com> Date: Tue, 18 Dec 2012 16:52:05 +0530 X-Google-Sender-Auth: GPAzfFGm0YwO1a-y-TKWMRDxpbA Message-ID: Subject: Re: SshaPasswordHasingInterceptor (2.0.0-M8 embedded) Problem From: Kiran Ayyagari To: Sketch Cc: "users@directory.apache.org" Content-Type: multipart/alternative; boundary=14dae93411b133f73c04d11eb5dc X-Virus-Checked: Checked by ClamAV on apache.org --14dae93411b133f73c04d11eb5dc Content-Type: text/plain; charset=ISO-8859-1 Fixed at rev. 1423412. Please verify and let us know Thank you for the report. On Tue, Dec 18, 2012 at 3:28 PM, Sketch wrote: > Jira - https://issues.apache.org/jira/browse/DIRSERVER-1783 > > ------------------------------ > *From:* Kiran Ayyagari > *To:* users@directory.apache.org; Sketch > *Sent:* Tuesday, 18 December 2012, 9:18 > *Subject:* Re: SshaPasswordHasingInterceptor (2.0.0-M8 embedded) Problem > > this restart can be avoided if you modify the interceptor list before > starting up the directory service > > On Tue, Dec 18, 2012 at 2:12 PM, Sketch >wrote: > > > Kiran, > > > > Thanks for taking to time to reply. > > > > I have solved this now. My mistake was not restarting the > DirectoryService > > object after making the modification to the interceptors list. Inserting > > before SchemaInterceptor as you suggested and then shutting down and > > restarting the service fixes my mistake. > > > > Sketch > > > > > > ----- Original Message ----- > > From: Kiran Ayyagari > > To: users@directory.apache.org; Sketch > > Cc: > > Sent: Monday, 17 December 2012, 13:35 > > Subject: Re: SshaPasswordHasingInterceptor (2.0.0-M8 embedded) Problem > > > > do you have any stacktrace other than the below shown error message? > > try inserting it before SchemaInterceptor and let us know > > > > > > On Sat, Dec 15, 2012 at 7:14 PM, Sketch > >wrote: > > > > > Hello, > > > > > > I'm having issues getting a PasswordHashing Interceptor working on > > > embedded server using 2.0.0-M8. > > > > > > I've used > > > https://github.com/soluvas/soluvas-framework/tree/master/apacheds as > the > > > basis of my embedded server. > > > > > > After starting the service and iterating through the > > > service.getInterceptors() I get: > > > > > > normalizationInterceptor > > > authenticationInterceptor > > > referralInterceptor > > > aciAuthorizationInterceptor > > > defaultAuthorizationInterceptor > > > administrativePointInterceptor > > > exceptionInterceptor > > > schemaInterceptor > > > operationalAttributeInterceptor > > > collectiveAttributeInterceptor > > > subentryInterceptor > > > eventInterceptor > > > triggerInterceptor > > > changeLogInterceptor > > > journalInterceptor > > > > > > I noticed the hash interceptors were missing so I added > > > "apacheds-interceptors-hash" artifact to get the "hash" interceptors in > > my > > > project. > > > > > > Following the example at: > > > > > > http://directory.apache.org/apacheds/1.5/62-implementing-a-simple-custom-interceptor.html > > > > > > List interceptors = directoryService.getInterceptors(); > > > // Find Normalization interceptor in chain int insertionPosition = -1; > > > for (int pos = 0; pos < interceptors.size(); ++pos) { > > > Interceptor interceptor = interceptors.get(pos); > > > if (interceptor instanceof NormalizationInterceptor) { > > > insertionPosition = pos; > > > } > > > } > > > // insert our new interceptor just behind > > > interceptors.add(insertionPosition + 1, > > > new > > org.apache.directory.server.core.hash.SshaPasswordHashingInterceptor()); > > > directoryService.setInterceptors(interceptors); > > > > > > > > > Performing a simple LDAP modify with: > > > > > > dn: uid=admin,ou=system > > > changetype: modify > > > replace: userPassword > > > userPassword: secret > > > > > > I get the following exception: > > > > > > LDAPException(resultCode=80 (other), errorMessage='OTHER: failed for > > > MessageType : MODIFY_REQUEST > > > Message ID : 2 > > > Modify Request > > > Object : 'uid=admin,ou=system' > > > Modification[0] > > > Operation : replace > > > Modification > > > userPassword: '0x73 0x65 0x63 0x72 0x65 0x74 ' > > > > org.apache.directory.shared.ldap.model.message.ModifyRequestImpl@28ff9b55 > > : > > > null', diagnosticMessage='OTHER: failed for MessageType : > MODIFY_REQUEST > > > Message ID : 2 > > > Modify Request > > > Object : 'uid=admin,ou=system' > > > Modification[0] > > > Operation : replace > > > Modification > > > userPassword: '0x73 0x65 0x63 0x72 0x65 0x74 ' > > > > org.apache.directory.shared.ldap.model.message.ModifyRequestImpl@28ff9b55 > > : > > > null') > > > > > > No matter where in the Interceptor list I insert the > > > SshaPasswordHashingInterceptor (or any of the > > > others org.apache.directory.server.core.hash.*) I still experience > > issues. > > > > > > Can anyone help me solve this problem please? Is it Driving me mad > right > > > now! > > > > > > Thanks in advance > > > Sketch > > > > > > > > > > > -- > > Kiran Ayyagari > > http://keydap.com > > > > > > > -- > Kiran Ayyagari > http://keydap.com > > > -- Kiran Ayyagari http://keydap.com --14dae93411b133f73c04d11eb5dc--