org.springframework.ldap.AuthenticationException: [LDAP: error code 49 - Unable to bind as user 'uid=admin,ou=People,dc=cf,dc=local,dc=cf,dc=local' because no such entry exists in the server.]; nested exception is javax.naming.AuthenticationException: [LDAP: error code 49 - Unable to bind as user 'uid=admin,ou=People,dc=cf,dc=local,dc=cf,dc=local' because no such entry exists in the server.]
From reading the default application.properties file, I think specifying the base DN in both spring.ldap.embedded.base-dn and the user DN pattern / group search base leads to a duplication.
On another note, I haven't found a way to encrypt passwords in the LDIF file.
I have tried setting a password as given by the slappasswd command, or with spring encodepassword $password, both without success. Would you know how to do it?
I stumbled upon an issue while trying to use the embedded LDAP server of the ChannelFinder service.
With this configuration:
Authenticating as "admin" with "1234" as password, as suggested by the default LDIF file, did not work.
Adding this configuration:
Lead me to this error:
From reading the default
application.properties
file, I think specifying the base DN in bothspring.ldap.embedded.base-dn
and the user DN pattern / group search base leads to a duplication.Setting this solved this issue:
On another note, I haven't found a way to encrypt passwords in the LDIF file. I have tried setting a password as given by the
slappasswd
command, or withspring encodepassword $password
, both without success. Would you know how to do it?