directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kiran Ayyagari <kayyag...@apache.org>
Subject Re: ApacheDS Interceptor
Date Fri, 15 Jul 2011 17:08:25 GMT
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" <stefan@labeo.de> 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
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message