Class LdapNetworkConnector

    • Constructor Detail

      • LdapNetworkConnector

        public LdapNetworkConnector()
    • Method Detail

      • getUri

        public URI getUri()
        returns the next URI from the configured list
        Returns:
        random URI from the configured list
      • setUri

        public void setUri​(URI uri)
                    throws Exception
        sets the LDAP server URI
        Parameters:
        uri - LDAP server URI
        Throws:
        Exception
      • setBase

        public void setBase​(String base)
        sets the base LDAP dn used for lookup operations
        Parameters:
        base - LDAP base dn
      • setUser

        public void setUser​(String user)
        sets the LDAP user for access credentials
        Parameters:
        user - LDAP dn of user
      • setAnonymousAuthentication

        public void setAnonymousAuthentication​(boolean anonymousAuthentication)
        sets LDAP anonymous authentication access credentials
        Parameters:
        anonymousAuthentication - set to true to use anonymous authentication
      • setSearchScope

        public void setSearchScope​(String searchScope)
                            throws Exception
        sets the LDAP search scope
        Parameters:
        searchScope - LDAP JNDI search scope
        Throws:
        Exception
      • setSearchFilter

        public void setSearchFilter​(String searchFilter)
        sets the LDAP search filter as defined in RFC 2254
        Parameters:
        searchFilter - LDAP search filter
        See Also:
        RFC 2254
      • setSearchEventListener

        public void setSearchEventListener​(boolean searchEventListener)
        enables/disable a persistent search to the LDAP server as defined in draft-ietf-ldapext-psearch-03.txt (2.16.840.1.113730.3.4.3)
        Parameters:
        searchEventListener - enable = true, disable = false (default)
        See Also:
        draft-ietf-ldapext-psearch-03.txt
      • addConnector

        protected void addConnector​(SearchResult result)
                             throws Exception
        add connector of the given URI
        Parameters:
        result - search result of connector to add
        Throws:
        Exception
      • removeConnector

        protected void removeConnector​(SearchResult result)
                                throws Exception
        remove connector of the given URI
        Parameters:
        result - search result of connector to remove
        Throws:
        Exception
      • toURI

        protected URI toURI​(SearchResult result)
                     throws Exception
        convert search result into URI
        Parameters:
        result - search result to convert to URI
        Throws:
        Exception
      • toUUID

        protected String toUUID​(SearchResult result)
        convert search result into URI
        Parameters:
        result - search result to convert to URI