Skip to content

Commit

Permalink
Changed ip for testing refused ldap connection
Browse files Browse the repository at this point in the history
  • Loading branch information
OliviaYtterbrink committed Nov 20, 2017
1 parent 126913d commit f9b9635
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1098,14 +1098,14 @@ public void shouldLogConnectionRefusedFromLdapRealmWithMultipleRealms() throws T
settings.put( SecuritySettings.ldap_authentication_enabled, "true" );
settings.put( SecuritySettings.ldap_authorization_enabled, "true" );
settings.put( SecuritySettings.ldap_authorization_use_system_account, "true" );
settings.put( SecuritySettings.ldap_server, "ldap://0.6.6.6" );
settings.put( SecuritySettings.ldap_server, "ldap://" + REFUSED_IP );
} );

assertAuthFail( "neo", "abc123" );

assertSecurityLogContains( "ERROR" );
assertSecurityLogContains( "LDAP connection refused" );
assertSecurityLogContains( "0.6.6.6" );
assertSecurityLogContains( REFUSED_IP );
}

@Test
Expand Down

0 comments on commit f9b9635

Please sign in to comment.