Class LdapAuthoriser

java.lang.Object
gda.jython.authoriser.FileAuthoriser
gda.jython.authoriser.LdapAuthoriser
All Implemented Interfaces:
Authoriser

public class LdapAuthoriser extends FileAuthoriser
Extension to the FileAuthoriser which fetches information from an ldap server if the account is not listed in the xml files.
  • Field Details

    • LDAPSTAFF_PROPERTY

      public static final String LDAPSTAFF_PROPERTY
      The java property to use to define which class of Authenticator to use
      See Also:
  • Constructor Details

    • LdapAuthoriser

      public LdapAuthoriser()
  • Method Details

    • hasAuthorisationLevel

      public boolean hasAuthorisationLevel(String username)
      Overrides:
      hasAuthorisationLevel in class FileAuthoriser
    • getAuthorisationLevel

      public int getAuthorisationLevel(String username)
      Specified by:
      getAuthorisationLevel in interface Authoriser
      Overrides:
      getAuthorisationLevel in class FileAuthoriser
      Parameters:
      username -
      Returns:
      the authorisation level for the given username for this GDA installation
    • isLocalStaff

      public boolean isLocalStaff(String username)
      Description copied from interface: Authoriser
      Returns true if the username is a member of facility staff and should have elevated privileges over users. Any accounts used for beamline testing/commissioning should also return true when using this method.
      Specified by:
      isLocalStaff in interface Authoriser
      Overrides:
      isLocalStaff in class FileAuthoriser
      Parameters:
      username -
      Returns:
      the username is in a separate list for beamline staff