I'm currently implementing a Glassfish realm backed by a neo4j DB, for which I've defined a Realm and a LoginModule class.
I can install the realm using the create-auth-realm asadmin command. But the realm is recognized by Glassfish only if it is associated to a LoginModule defined in the config/login.conf file.
For instance, in my case, I have to do the following:
Create the authentication realm:
create-auth-realm --classname com.mycompany.security.MyRealm --property jaas-context=MyLoginModule myrealm
and thenDefine
MyLoginModulein thatconfig/login.conffile :MyLoginModule { fr.mycompany.security.MyLoginModule required; };
I can edit the login.conf file by hand but would like to use an asadmin command to automate this step.
Would you know of such an asadmin command ?