In PasswordEncoder (1.1.X) / Encryptor (1.2.X) class the salt mechanism configuration is hardcoded
If the LDAP server doesn't use the same salt mechanism configuration, the password can't be matched during authentication.
For example SSHA is defined by RFC 2307 as:
See Jasypt's javadocs for more details.
Encryptor can read from global configuration parameters so that you can configure some aspect of the way how ciphered values (not only password values in 1.2.X).