We have to authenticate a user against a Host-System but we do not want to implement a resource adapter for this.The idea was to write a LDAP LoginModule to read the login information for the host system and serve this info in the credentials of the subject.We didn't find a solution how to access the subject within an EJB method.