directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kiran Ayyagari <kayyag...@apache.org>
Subject Re: SshaPasswordHasingInterceptor (2.0.0-M8 embedded) Problem
Date Mon, 17 Dec 2012 13:35:25 GMT
do you have any stacktrace other than the below shown error message?
try inserting it before SchemaInterceptor and let us know


On Sat, Dec 15, 2012 at 7:14 PM, Sketch <sketchguard-apache@yahoo.co.uk>wrote:

> Hello,
>
> I'm having issues getting a PasswordHashing Interceptor working on
> embedded server using 2.0.0-M8.
>
> I've used
> https://github.com/soluvas/soluvas-framework/tree/master/apacheds as the
> basis of my embedded server.
>
> After starting the service and iterating through the
> service.getInterceptors() I get:
>
> normalizationInterceptor
> authenticationInterceptor
> referralInterceptor
> aciAuthorizationInterceptor
> defaultAuthorizationInterceptor
> administrativePointInterceptor
> exceptionInterceptor
> schemaInterceptor
> operationalAttributeInterceptor
> collectiveAttributeInterceptor
> subentryInterceptor
> eventInterceptor
> triggerInterceptor
> changeLogInterceptor
> journalInterceptor
>
> I noticed the hash interceptors were missing so I added
> "apacheds-interceptors-hash" artifact to get the "hash" interceptors in my
> project.
>
> Following the example at:
> http://directory.apache.org/apacheds/1.5/62-implementing-a-simple-custom-interceptor.html
>
> List<Interceptor> interceptors = directoryService.getInterceptors();
> // Find Normalization interceptor in chain  int insertionPosition = -1;
> for (int pos = 0; pos < interceptors.size(); ++pos) {
> Interceptor interceptor = interceptors.get(pos);
> if (interceptor instanceof NormalizationInterceptor) {
> insertionPosition = pos;
>  }
> }
> // insert our new interceptor just behind
> interceptors.add(insertionPosition + 1,
> new org.apache.directory.server.core.hash.SshaPasswordHashingInterceptor());
> directoryService.setInterceptors(interceptors);
>
>
> Performing a simple LDAP modify with:
>
> dn: uid=admin,ou=system
> changetype: modify
> replace: userPassword
> userPassword: secret
>
> I get the following exception:
>
> LDAPException(resultCode=80 (other), errorMessage='OTHER: failed for
> MessageType : MODIFY_REQUEST
> Message ID : 2
>     Modify Request
>         Object : 'uid=admin,ou=system'
>             Modification[0]
>                 Operation :  replace
>                 Modification
>     userPassword: '0x73 0x65 0x63 0x72 0x65 0x74 '
> org.apache.directory.shared.ldap.model.message.ModifyRequestImpl@28ff9b55:
> null', diagnosticMessage='OTHER: failed for MessageType : MODIFY_REQUEST
> Message ID : 2
>     Modify Request
>         Object : 'uid=admin,ou=system'
>             Modification[0]
>                 Operation :  replace
>                 Modification
>     userPassword: '0x73 0x65 0x63 0x72 0x65 0x74 '
> org.apache.directory.shared.ldap.model.message.ModifyRequestImpl@28ff9b55:
> null')
>
> No matter where in the Interceptor list I insert the
> SshaPasswordHashingInterceptor (or any of the
> others org.apache.directory.server.core.hash.*) I still experience issues.
>
> Can anyone help me solve this problem please? Is it Driving me mad right
> now!
>
> Thanks in advance
> Sketch
>



-- 
Kiran Ayyagari
http://keydap.com

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