mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

fguigues
23.47.2008 2974dcb7adaedead4dac1ee34ab23bcd3308066f
opends/src/snmp/src/org/opends/server/snmp/SNMPInetAddressAcl.java
@@ -59,7 +59,7 @@
    private SortedSet<String> trapsDestinations;
    private String trapsCommunity;
    private SortedSet<String> communitiesList;
    private String communities;
    /**
@@ -68,6 +68,7 @@
     */
    public SNMPInetAddressAcl(SNMPConnectionHandlerCfg configuration) {
        super();
        // Get the current configuration
        this.currentConfig = configuration;
        // hostsList
@@ -85,10 +86,12 @@
            }
        }
        // Get the list of trap destinations
        this.trapsDestinations = this.currentConfig.getTrapsDestination();
        this.communitiesList = this.currentConfig.getCommunity();
        // Get the community string to accept
        this.communities = this.currentConfig.getCommunity();
        // Get the community string to set in the traps
        this.trapsCommunity = this.currentConfig.getTrapsCommunity();
    }
    /**
@@ -140,7 +143,7 @@
     * {@inheritDoc}
     */
    public boolean checkCommunity(String community) {
        return this.communitiesList.contains(community);
        return this.communities.equals(community);
    }
    /**