directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Zoerner <>
Subject Re: ApacheDS Interceptor
Date Fri, 15 Jul 2011 15:53:12 GMT
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,

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