From users-return-4966-apmail-directory-users-archive=directory.apache.org@directory.apache.org Tue Dec 18 08:43:29 2012 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 83C76D442 for ; Tue, 18 Dec 2012 08:43:29 +0000 (UTC) Received: (qmail 69572 invoked by uid 500); 18 Dec 2012 08:43:28 -0000 Delivered-To: apmail-directory-users-archive@directory.apache.org Received: (qmail 69433 invoked by uid 500); 18 Dec 2012 08:43:27 -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 69367 invoked by uid 99); 18 Dec 2012 08:43:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Dec 2012 08:43:25 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [77.238.189.197] (HELO nm9-vm0.bullet.mail.ird.yahoo.com) (77.238.189.197) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Dec 2012 08:43:16 +0000 Received: from [212.82.105.245] by nm9.bullet.mail.ird.yahoo.com with NNFMP; 18 Dec 2012 08:42:55 -0000 Received: from [212.82.108.226] by tm17.bullet.mail.ird.yahoo.com with NNFMP; 18 Dec 2012 08:42:55 -0000 Received: from [127.0.0.1] by omp1003.bt.mail.ird.yahoo.com with NNFMP; 18 Dec 2012 08:42:55 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 606980.5887.bm@omp1003.bt.mail.ird.yahoo.com Received: (qmail 80755 invoked by uid 60001); 18 Dec 2012 08:42:55 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s1024; t=1355820175; bh=S/CrbMlv0dwK0iiYFqgSCKEu1L4kdTZu9DLRwfMTYTU=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=GL0f1B3CNSqaQRPfZiIDbz3zQ9p1PkR9nlEYJ44XJiUFF6ttrFhC0W9J3EvBS/4lAmo3oDnM5lW7oGfoAQ5KY6wGsK4GpAjCRd64WEUlX/wxQtIjU4u2ToKpyNGM9KtwwnwKXG33XAOdu2Z+bRCeIYvJcD4fmGg5deYvwMWJF9M= DomainKey-Signature:a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.uk; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=NVrn7tpv6T21OCQ4nRbJD8IcSweAZUZrqwx/SVJBIu5FggrrnyI6K3FSQJJ2A8E/BkxsmeEH/oe9XXB1KsEYpKtbZykeCKFGuxRGTKCPcTVfJ12qfLHXw7BtOf5FehhsRQg9nV1CGSVZ418sLD7v2hDN19HhSMNYAuXJnib5pNs=; X-YMail-OSG: TkYQbiYVM1nTZEi16QCGqEvsRFbBgBe7xolv9VOodGxaGrq OGACvQGUHLqwYcJCOqpzDgB5wI4XM1uuOuHgvXXJ14FkOggXvX77o4YAa1UV OwchQ0pGhwrXD5saVYlInYHo.Cp.z8QlTSmIwaQP.iaLTnoklP66ma_d1KWy RPPPbLRyxDzreAEezqTVA453_E5DKT3SdVWGFmh5GeCJHpQ1iSb1I0bCQDBm hinuzyDNMnnDmKlfJsmeTbCwBIpOiqag5IuTxnP.inXM9e1i2SKOI22OBbB_ oswnLxZ0Oqhmun56loQa8bQrh_bsZFFJOzZKRrn4vC2lEtIznyxXUzIiqL6B l3dYHwHF04gm1eONlueDS5Q5QIjFWGgKuixA2cGE._gspm4uGtvC7ZBzRSmH CDQ7GoFkzzHKEVShIKwvphupLhILVEX3dnVwH5Y0MdYZJlnKOoE3pSjqap68 IxMexeKny4s8LFhOp3WabflZ1NX4VEdQhVB3L0Gk.U41ReMEfuCR7OSoLgMc hl3wQoIbBjRKwMVYh4MkGEaoNbq0IUWdAs.Hw4sXyG6QGa5lZMq.61s8hLBg _AXqmZeXR1c5MrrJlrTi3UpTEB0OWuv2qGdBc5w_O76PquRpdPedTFV0xJsS v1O2EvbDENzT73Z3LKF6wFY_eGUIJmaTWnFGIXuUh4PXQr6L2HTk- Received: from [87.248.110.178] by web186106.mail.ir2.yahoo.com via HTTP; Tue, 18 Dec 2012 08:42:55 GMT X-Rocket-MIMEInfo: 001.001,S2lyYW4sCgpUaGFua3MgZm9yIHRha2luZyB0byB0aW1lIHRvIHJlcGx5LgoKSSBoYXZlIHNvbHZlZCB0aGlzIG5vdy4gTXkgbWlzdGFrZSB3YXMgbm90IHJlc3RhcnRpbmcgdGhlwqBEaXJlY3RvcnlTZXJ2aWNlIG9iamVjdCBhZnRlciBtYWtpbmcgdGhlIG1vZGlmaWNhdGlvbiB0byB0aGUgaW50ZXJjZXB0b3JzIGxpc3QuIEluc2VydGluZyBiZWZvcmXCoMKgU2NoZW1hSW50ZXJjZXB0b3IgYXMgeW91IHN1Z2dlc3RlZCBhbmQgdGhlbiBzaHV0dGluZyBkb3duIGFuZCByZXN0YXJ0aW5nIHRoZSBzZXJ2aWNlIGYBMAEBAQE- X-Mailer: YahooMailWebService/0.8.129.483 References: <1355579054.62183.YahooMailNeo@web186103.mail.ir2.yahoo.com> Message-ID: <1355820175.75552.YahooMailNeo@web186106.mail.ir2.yahoo.com> Date: Tue, 18 Dec 2012 08:42:55 +0000 (GMT) From: Sketch Reply-To: Sketch Subject: Re: SshaPasswordHasingInterceptor (2.0.0-M8 embedded) Problem To: "users@directory.apache.org" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Kiran,=0A=0AThanks for taking to time to reply.=0A=0AI have solved this now= . My mistake was not restarting the=A0DirectoryService object after making = the modification to the interceptors list. Inserting before=A0=A0SchemaInte= rceptor as you suggested and then shutting down and restarting the service = fixes my mistake.=0A=0ASketch=0A=0A=0A----- Original Message -----=0AFrom: = Kiran Ayyagari =0ATo: users@directory.apache.org; Ske= tch =0ACc: =0ASent: Monday, 17 December 201= 2, 13:35=0ASubject: Re: SshaPasswordHasingInterceptor (2.0.0-M8 embedded) P= roblem=0A=0Ado you have any stacktrace other than the below shown error mes= sage?=0Atry inserting it before SchemaInterceptor and let us know=0A=0A=0AO= n Sat, Dec 15, 2012 at 7:14 PM, Sketch wrot= e:=0A=0A> Hello,=0A>=0A> I'm having issues getting a PasswordHashing Interc= eptor working on=0A> embedded server using 2.0.0-M8.=0A>=0A> I've used=0A> = https://github.com/soluvas/soluvas-framework/tree/master/apacheds as the=0A= > basis of my embedded server.=0A>=0A> After starting the service and itera= ting through the=0A> service.getInterceptors() I get:=0A>=0A> normalization= Interceptor=0A> authenticationInterceptor=0A> referralInterceptor=0A> aciAu= thorizationInterceptor=0A> defaultAuthorizationInterceptor=0A> administrati= vePointInterceptor=0A> exceptionInterceptor=0A> schemaInterceptor=0A> opera= tionalAttributeInterceptor=0A> collectiveAttributeInterceptor=0A> subentryI= nterceptor=0A> eventInterceptor=0A> triggerInterceptor=0A> changeLogInterce= ptor=0A> journalInterceptor=0A>=0A> I noticed the hash interceptors were mi= ssing so I added=0A> "apacheds-interceptors-hash" artifact to get the "hash= " interceptors in my=0A> project.=0A>=0A> Following the example at:=0A> htt= p://directory.apache.org/apacheds/1.5/62-implementing-a-simple-custom-inter= ceptor.html=0A>=0A> List interceptors =3D directoryService.get= Interceptors();=0A> // Find Normalization interceptor in chain=A0 int inser= tionPosition =3D -1;=0A> for (int pos =3D 0; pos < interceptors.size(); ++p= os) {=0A> Interceptor interceptor =3D interceptors.get(pos);=0A> if (interc= eptor instanceof NormalizationInterceptor) {=0A> insertionPosition =3D pos;= =0A>=A0 }=0A> }=0A> // insert our new interceptor just behind=0A> intercept= ors.add(insertionPosition + 1,=0A> new org.apache.directory.server.core.has= h.SshaPasswordHashingInterceptor());=0A> directoryService.setInterceptors(i= nterceptors);=0A>=0A>=0A> Performing a simple LDAP modify with:=0A>=0A> dn:= uid=3Dadmin,ou=3Dsystem=0A> changetype: modify=0A> replace: userPassword= =0A> userPassword: secret=0A>=0A> I get the following exception:=0A>=0A> LD= APException(resultCode=3D80 (other), errorMessage=3D'OTHER: failed for=0A> = MessageType : MODIFY_REQUEST=0A> Message ID : 2=0A>=A0 =A0 Modify Request= =0A>=A0 =A0 =A0 =A0 Object : 'uid=3Dadmin,ou=3Dsystem'=0A>=A0 =A0 =A0 =A0 = =A0 =A0 Modification[0]=0A>=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Operation :=A0= replace=0A>=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Modification=0A>=A0 =A0 userP= assword: '0x73 0x65 0x63 0x72 0x65 0x74 '=0A> org.apache.directory.shared.l= dap.model.message.ModifyRequestImpl@28ff9b55:=0A> null', diagnosticMessage= =3D'OTHER: failed for MessageType : MODIFY_REQUEST=0A> Message ID : 2=0A>= =A0 =A0 Modify Request=0A>=A0 =A0 =A0 =A0 Object : 'uid=3Dadmin,ou=3Dsyst= em'=0A>=A0 =A0 =A0 =A0 =A0 =A0 Modification[0]=0A>=A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 Operation :=A0 replace=0A>=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Modific= ation=0A>=A0 =A0 userPassword: '0x73 0x65 0x63 0x72 0x65 0x74 '=0A> org.ap= ache.directory.shared.ldap.model.message.ModifyRequestImpl@28ff9b55:=0A> nu= ll')=0A>=0A> No matter where in the Interceptor list I insert the=0A> SshaP= asswordHashingInterceptor (or any of the=0A> others org.apache.directory.se= rver.core.hash.*) I still experience issues.=0A>=0A> Can anyone help me sol= ve this problem please? Is it Driving me mad right=0A> now!=0A>=0A> Thanks = in advance=0A> Sketch=0A>=0A=0A=0A=0A-- =0AKiran Ayyagari=0Ahttp://keydap.c= om=0A