title: configure login and password with jaas
body: <p>how can i configure jaas in JBOSS7 to authenticate user against File not against a database?
  most of the configuration example use a RDBMS aproach to login , whilst my requirement is to authenticate user against a file.</p>
  
  <p>i want to be able to feed the configuration below to Jboss and define my own LoginModule to validate submitted user password against the options defined in jaas configuration file .</p>
  
  <pre><code>  Example {
        myCustomLoginModule required
     user="admin"
     password="123"
     debug="true";
     };
  </code></pre>
  
  <p>EDIT : i found this to be very useful , apearently there's already a standard login module that authenticates against a file :</p>
  
  <p><a href="http://docs.jboss.org/jbosssecurity/docs/6.0/security_guide/html/Login_Modules.html#exam-UsersRoleLoginModule" rel="nofollow">example here</a></p>
  
  <p><a href="https://developer.jboss.org/wiki/UsersRolesLoginModule" rel="nofollow">Documentation</a></p>