directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Hamilton <>
Subject Re: ApacheDS Interceptor
Date Fri, 15 Jul 2011 17:19:21 GMT
Hi Kiran,

I downloaded ApacheDS v1.5.7 and am using Apache Directory Studio as
my client for now. I am not sure what you mean by version ,2.0-M1. If
that is an updated version, could you direct to a place a could get
it? Thanks so much for your response.


On Fri, Jul 15, 2011 at 1:08 PM, Kiran Ayyagari <> wrote:
> Hi Kevin,
>    If you are using the version ,2.0-M1 then there exists a password
> hashing interceptor enabled by defaut and there exists support for many
> hashing algorithms, you just need to set the relevant implementation's FQCN.
> Let us know if you still have issues with bind() after this change
> On 15-Jul-2011 9:23 PM, "Stefan Zoerner" <> wrote:
> Hi Kevin,
> currently I am quite busy and others at the users mailing list know the
> server much better than me.
> I therefore forward it to the list. Hopefully, you are subscribed to it.
> Greetings from Hamburg,
>   StefanZ
> Am 15.07.2011 14:26, schrieb Kevin Hamilton:
>> Sorry to bother you, but I just came across your interceptor tutorial
>> for ApacheDS. Thank you for it! It has greatly helped me. I was able
>> to successfully configure it. The problem I am facing is that I
>> implemented my own custom hash into the interceptor rather than use
>> the MD5. It works well and hashes the passwords whenever someone
>> modifies or adds a new one.
>> The problem I am having is that with my custom hash, the server does
>> not know to hash the passwords on a bind attempt. I attempted to write
>> a function that intercepted bind, but it did not work. I was wondering
>> if you could give me some direction in this problem. I tried the code
>> below to intercept the bind, but it did not work.
>> public void bind(NextInterceptor next, BindOperationContext opContext)
>>                throws Exception {
>>                byte[] password = opContext.getCredentials();
>>                if (password != null) {
>>                        password = applyHashAlgorithm(**hashAlgorithm,
>> password);
>>                }
>>                opContext.setCredentials(**password);
>>                super.bind(next, opContext);
>>                }
>> If you have time, please give me some advice.
>> Thanks,
>> Kevin

View raw message