title: Form-based authentication in WebSphere with J2C Connection factory
body: <p>I'm totally confused trying to configur security in my WebSphere Web-application.</p>
  
  <p>I'm required to make smth like:
  Form based authentication + JAAS + J2C Connection (custom J2C adaptor, which goes to some specific LDAP server). As I've understood I'm not allowed to use this LDAP server straightforward.</p>
  
  <p>I'm using WebSphere 8.5.</p>
  
  <p>I configured "Form based authentication" similar to this post: <a href="https://stackoverflow.com/questions/19902419/form-based-authentication-was-8-5">Form-Based Authentication WAS 8.5</a> . And it works when switching on "Global security" with test realm storing users/roles in prop-files.</p>
  
  <p>I also succeeded to configure J2C adapter (at least I hope so).</p>
  
  <p>I just can't understand how can I put it all together. I'm looking at "Security domains" instead of "Global security" but I can't imaging the way to bind my application with created security domain.</p>
  
  <p>Also under "My security domain" -> "JAAS J2C Authentication Data" I see two aliases: one is already in use for MQ and the second one is the one I'm interested in at the moment. How can I tell my application to use this exact alias, not the wrong one?</p>
  
  <p>Would appreciate any help or link...</p>
  
  <p>UPDATED answering to question from comment (don't have right to comment yet). And once more here:
   * I have to use custom J2C connector, that is already provided to me as RAR-archive.<br>
   * By "using of JAAS" I mean firstly that from the side of application I should use only J2EE standard stuff. But probablty I will reach this goal simply by using "form-based authentication"...<br>
   * <em>do you just want to use alias with J2C?</em> I need to think about it more... don't really understand your question at the moment(</p>