Return-Path: Delivered-To: apmail-directory-users-archive@www.apache.org Received: (qmail 71884 invoked from network); 30 Nov 2009 04:05:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Nov 2009 04:05:51 -0000 Received: (qmail 69852 invoked by uid 500); 30 Nov 2009 04:05:51 -0000 Delivered-To: apmail-directory-users-archive@directory.apache.org Received: (qmail 69737 invoked by uid 500); 30 Nov 2009 04:05:51 -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 69727 invoked by uid 99); 30 Nov 2009 04:05:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Nov 2009 04:05:50 +0000 X-ASF-Spam-Status: No, hits=1.8 required=10.0 tests=MIME_QP_LONG_LINE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [209.85.219.217] (HELO mail-ew0-f217.google.com) (209.85.219.217) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Nov 2009 04:05:37 +0000 Received: by ewy9 with SMTP id 9so756970ewy.11 for ; Sun, 29 Nov 2009 20:05:13 -0800 (PST) Received: by 10.213.70.199 with SMTP id e7mr2491920ebj.24.1259553913362; Sun, 29 Nov 2009 20:05:13 -0800 (PST) Received: from ?41.19.67.166? (vc-41-19-67-166.umts.vodacom.co.za [41.19.67.166]) by mx.google.com with ESMTPS id 13sm2355270ewy.9.2009.11.29.20.05.10 (version=SSLv3 cipher=RC4-MD5); Sun, 29 Nov 2009 20:05:11 -0800 (PST) User-Agent: Microsoft-Entourage/12.23.0.091001 Date: Mon, 30 Nov 2009 06:05:06 +0200 Subject: Re: PARITION AGAIN From: Jacques Oosthuizen To: Message-ID: Thread-Topic: PARITION AGAIN Thread-Index: AcpxckyrTRp/sxhtTk+iaCVDhv6Y7w== 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 I had a look at the interceptors, do you thing it will be better to write m= y own interceptor and not a partition ? On 2009/11/29 11:57 PM, "Ersin ER" wrote: > Well, the ultimate solution is to browse ApacheDS code in Eclipse and ope= n > the type hierarchy for Interceptor interface. For all the classes in the > chain you need to check whether it overrides the bind method. >=20 > A more advanced solution is to use AspectJ and analyzing all bind methods= on > the fly. >=20 > (I am currently unable to work on the code because I am not using my own > machine but in fact solving the problem is quite easy.) >=20 > On Sun, Nov 29, 2009 at 17:54, Jacques Oosthuizen w= rote: >=20 >> Thanks for the help , I have removed the Autheniticator but my bind meth= od >> still does not get called. I do see in the logs a lookup happening in th= e >> BindHandler and that it is failing because by dn for auth is not found. = It >> is not calling my lookup in my partition. I am thinking of implementing = my >> own BindHandler to handle this but that seems like too much work . >>=20 >> On 2009/11/28 10:11 PM, "Ersin ER" wrote: >>=20 >>> The interceptor's name should be AuthenticationInterceptor or >>> authenticationInterceptor. >>>=20 >>> (You may just iterate over the interceptors and print their names.) >>>=20 >>> On Sat, Nov 28, 2009 at 19:24, Jacques Oosthuizen >> wrote: >>>=20 >>>> I still have tried to remove the interceptor like >>>>=20 >>>>=20 >>>>=20 >>>>=20 >> directoryService.getInterceptorChain().remove("org.apache.directory.serv= er.c >>>> ore.authn.AuthenticationInterceptor"); >>>>=20 >>>> I have also tried removing from actual list but if I print the list th= e >>>> interceptor is still there. >>>>=20 >>>>=20 >>>>=20 >>>> On 2009/11/27 11:35 PM, "Ersin ER" wrote: >>>>=20 >>>>> You need to call getInterceptorChain() if you really want to work on >> the >>>>> chain. getInterceptors() just returns a clone of it. And removing the >>>>> default Authn interceptor should really help, because it obviously >>>> prevents >>>>> the bind call being forwarded in the chain. (I just checked the code.= ) >>>>>=20 >>>>> HTH, >>>>>=20 >>>>> On Fri, Nov 27, 2009 at 15:12, Jacques Oosthuizen < >> jacqueso@conor.co.za >>>>> wrote: >>>>>=20 >>>>>> Still not having luck , even if I remove the default authenticator >>>>>>=20 >>>>>> List interceptors =3D directoryService.getInterceptors()= ; >>>>>> Iterator iter =3D interceptors.iterator(); >>>>>> while (iter.hasNext()) { >>>>>> Interceptor next =3D iter.next(); >>>>>>=20 >>>>>> if (next instanceof >>>>>> org.apache.directory.server.core.authn.AuthenticationInterceptor) >>>>>> { >>>>>>=20 >>>>>> interceptors.remove(next); >>>>>> break; >>>>>> } >>>>>>=20 >>>>>> } >>>>>>=20 >>>>>> But my bind in my partition still does not get called . Any help wil= l >> be >>>>>> appreciated >>>>>>=20 >>>>>> Jacques Oosthuizen >>>>>> Conor Information Technologies >>>>>> Director >>>>>> mobile : 0827699138 >>>>>> web : http://www.conor.co.za >>>>>> mail : jacqueso@conor.co.za >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>=20 >>>>=20 >>>> Jacques Oosthuizen >>>> Conor Information Technologies >>>> Director >>>> mobile : 0827699138 >>>> web : http://www.conor.co.za >>>> mail : jacqueso@conor.co.za >>>>=20 >>>>=20 >>>>=20 >>>>=20 >>>>=20 >>>>=20 >>>>=20 >>>=20 >>=20 >> Jacques Oosthuizen >> Conor Information Technologies >> Director >> mobile : 0827699138 >> web : http://www.conor.co.za >> mail : jacqueso@conor.co.za >>=20 >>=20 >>=20 >>=20 >>=20 >>=20 >>=20 >=20 Jacques Oosthuizen Conor Information Technologies Director mobile : =A00827699138 web : http://www.conor.co.za mail :=A0jacqueso@conor.co.za