Class LDAPCredentialValidatorTest

    • Field Detail

      • validator

        private net.shibboleth.idp.authn.impl.LDAPCredentialValidator validator
      • action

        private net.shibboleth.idp.authn.impl.ValidateCredentials action
      • directoryServer

        private com.unboundid.ldap.listener.InMemoryDirectoryServer directoryServer
      • dnResolver

        private net.shibboleth.idp.authn.TemplateSearchDnResolver dnResolver
    • Constructor Detail

      • LDAPCredentialValidatorTest

        public LDAPCredentialValidatorTest()
    • Method Detail

      • setupDirectoryServer

        @BeforeClass
        public void setupDirectoryServer()
                                  throws com.unboundid.ldap.sdk.LDAPException
        Creates an UnboundID in-memory directory server. Leverages LDIF found in test resources.
        Throws:
        com.unboundid.ldap.sdk.LDAPException - if the in-memory directory server cannot be created
      • setupAuthenticator

        @BeforeClass
        public void setupAuthenticator()
        Creates an Authenticator configured to use the in-memory directory server.
      • teardownDirectoryServer

        @AfterClass
        public void teardownDirectoryServer()
        Shutdown the in-memory directory server.
      • testExpiredPassword

        public void testExpiredPassword()
                                 throws Exception
        Throws:
        Exception
      • testChangeAfterReset

        public void testChangeAfterReset()
                                  throws Exception
        Throws:
        Exception
      • testExpiringPassword

        public void testExpiringPassword()
                                  throws Exception
        Throws:
        Exception
      • testDefaultFilterSyntax

        public void testDefaultFilterSyntax()
                                     throws Exception
        Throws:
        Exception
      • testCombinedFilterSyntax

        public void testCombinedFilterSyntax()
                                      throws Exception
        Throws:
        Exception
      • testMatchAndAuthorized

        public void testMatchAndAuthorized()
                                    throws Exception
        Throws:
        Exception
      • testAuthorizedAndKeepContext

        public void testAuthorizedAndKeepContext()
                                          throws Exception
        Throws:
        Exception