java - JAAS configuration from Tomcat to Glassfish -


i understood 3 jaas elements:

  1. jaas client
  2. login module
  3. 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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -