Hi,
We are using Spring LDAP 1.3.1 to create and modify user records on an Active Directory on Windows 2008. We use the SSL connection when required (e.g. to initially set the password for a user we are creating)
Now we are trying to implement a "update password" functionality and running into an issue. We can successfully update all of the other user attributes except password. Is there a special way we need to do this using Spring LDAP?
The last line results in the following ExceptionCode:DirContextOperations context = simpleLdapTemplate.lookupContext( buildDn( identifier ) ); try { context.setAttributeValue( "unicodepwd", encodePassword( myNewPassword ) ); //context.setAttributeValue( "userPassword", myNewPassword); } catch( UnsupportedEncodingException uee ) { throw uee; } // THIS LINE THROWS EXCEPTION simpleLdapTemplate.modifyAttributes( context );
Code:org.springframework.ldap.AttributeInUseException: [LDAP: error code 20 - 0000207E: AtrErr: DSID-03190647, #1: 0: 0000207E: DSID-03190647, problem 1006 (ATT_OR_VALUE_EXISTS), data 0, Att 9005a (unicodePwd)
Thanks for your help.


Reply With Quote
