Hi,

I have a problem extending the AbstractLdapRealm class for
authentication. It's my understanding based on reading the javadoc
that a default implementation of LdapContextFactory
(DefaultLdapContextFactory) is being used if I don't change the
default behavior. However, when implementing a subclass of
AbstractLdapRealm for authentication (implementing the
queryForAuthenticationInfo method) the LdapContextFactory being passed
in is null. Checking the source, it seems as DefaultLdapContextFactory
is set when afterAuthorizationCacheSet() is called.
Who is responsible for calling afterAuthorizationCacheSet()? Should
the application using JSecurity do that? Or should my subclass do
that?

Regards,
/Anders

Reply via email to