Class LdapAuthenticator

java.lang.Object
gda.jython.authenticator.LdapAuthenticator
All Implemented Interfaces:
Authenticator

public class LdapAuthenticator extends Object implements Authenticator
Uses an ldap server for authentication of a username and password
  • Field Details

    • LDAP_HOSTS_PROPERTY

      public static final String LDAP_HOSTS_PROPERTY
      Property that holds a space-separated list of LDAP hostnames and/or IP addresses.
      See Also:
    • DEFAULT_LDAP_HOST

      public static final String DEFAULT_LDAP_HOST
      See Also:
    • LDAPURL_PROPERTY

      public static final String LDAPURL_PROPERTY
      The java property to use to define the url of the ldap server
      See Also:
    • LDAPCONTEXT_PROPERTY

      public static final String LDAPCONTEXT_PROPERTY
      The java property to use to define the class of the initial context factory to use
      See Also:
    • LDAPADMIN_PROPERTY

      public static final String LDAPADMIN_PROPERTY
      The java property to use to define the string of the SECURITY_PRINCIPAL to use
      See Also:
    • LDAPCONNECT_TIMEOUT_PROPERTY

      public static final String LDAPCONNECT_TIMEOUT_PROPERTY
      The java property to use to define the LDAP connection timeout in milliseconds
      See Also:
    • DEFAULT_LDAP_CONNECT_TIMEOUT_MS

      public static final int DEFAULT_LDAP_CONNECT_TIMEOUT_MS
      The default timeout if not defined in local properties
      See Also:
    • LDAPREAD_TIMEOUT_PROPERTY

      public static final String LDAPREAD_TIMEOUT_PROPERTY
      The java property to use to define the LDAP connection timeout in milliseconds
      See Also:
    • DEFAULT_LDAP_READ_TIMEOUT_MS

      public static final int DEFAULT_LDAP_READ_TIMEOUT_MS
      The default timeout if not defined in local properties
      See Also:
  • Constructor Details

    • LdapAuthenticator

      public LdapAuthenticator()
  • Method Details

    • isAuthenticated

      public boolean isAuthenticated(String fedId, String password)
      Description copied from interface: Authenticator
      Returns true if the username and password can be authenticated.
      Specified by:
      isAuthenticated in interface Authenticator
      Parameters:
      fedId -
      password -
      Returns:
      boolean