Skip to content

Commit ca327a8

Browse files
Fix encryption if statement (#416)
1 parent 23a5994 commit ca327a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/ericsson/ei/EndpointSecurity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ private void addLDAPServersFromList(JSONArray serverList, AuthenticationManagerB
101101
}
102102

103103
private String decryptPassword(final String inputEncryptedPassword) throws Exception {
104-
if (encryptor.isJasyptPasswordSet()) {
104+
if (!encryptor.isJasyptPasswordSet()) {
105105
LOGGER.error("Property -jasypt.encryptor.password need to be set for decrypting LDAP password.");
106106
throw new AbortExecutionException("Failed to initiate LDAP when password is encrypted. " +
107107
"Property -jasypt.encryptor.password need to be set for decrypting LDAP password.");

0 commit comments

Comments
 (0)