Skip to content

Commit 0312eef

Browse files
Fix if statement (#415)
1 parent e94be7c commit 0312eef

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
@@ -118,7 +118,7 @@ private void addLDAPServersFromList(JSONArray serverList, AuthenticationManagerB
118118
}
119119

120120
private String decryptPassword(final String inputEncryptedPassword) throws Exception {
121-
if (encryptor.isJasyptPasswordSet()) {
121+
if (!encryptor.isJasyptPasswordSet()) {
122122
LOGGER.error("Property -jasypt.encryptor.password need to be set for decrypting LDAP password.");
123123
throw new AbortExecutionException("Failed to initiate LDAP when password is encrypted. " +
124124
"Property -jasypt.encryptor.password need to be set for decrypting LDAP password.");

0 commit comments

Comments
 (0)