java - JAAS configuration from Tomcat to Glassfish -
i understood 3 jaas elements:
- jaas client
- login module
- jaas config file
but confused where/how change tomcat context glassfish context.
current tomcat context :
<context path="/admin/sso" reloadable="true"> <realm classname="org.apache.catalina.realm.jaasrealm" appname="bytesloungelogin" userclassnames="test.jaas.userprincipal" roleclassnames="test.jaas.roleprincipal" /> </context>
i found glassfish's jdbcrealm
, ldaprealm
classes there no jaasrealm
class.
the configuration of glassfish differing tomcat , not find jaasrealm class. link: http://glassfish.java.net/javaee5/security/faq.html#pluglogin:
the glassfish authentication subsystem built upon realm , standard java jaas framework - can write own realm , jaas login module, , plug glassfish. in current implementation of glassfish, realm , jaas module needs derived com.sun.appserv.security.appservrealm , com.sun.appserv.security.appservpasswordloginmodule respectively. can configure realm , jaas module modifying config/domain.xml file (adding realm configuration information there) , config/login.conf file (adding login module there) respectively.
Comments
Post a Comment