Macromedia live cycle 7.2 Manual

Page of 90
Adobe LiveCycle
Manually Configuring JBoss
Installing and Configuring LiveCycle Security Products for JBoss
 Configuring JAAS authentication     58
Example application policies
The following two application policy nodes are examples for use with Sun ONE and Active Directory LDAP 
servers. The examples use the hypothetical company company_name.com on the LDAP computer named 
XYZ.
Example 7.1
Sun ONE application policy node
<application-policy name="UsernamePwd_Sun ONE">
<authentication>
<!-- do not change the following two lines-->
<login-module
code="com.adobe.edc.server.provider.authentication.login.LDAPLogin
Module" flag="required"><module-option name =
"java.naming.factory.initial">com.sun.jndi.ldap.LdapCtxFactory
</module-option>
<!-- this should be an LDAP url with server name and port-->
<module-option name =
"user.provider.url">ldap://xyz:389</module-option>
<!-- this is the ldap authentication type.-->
<module-option name =
"java.naming.security.authentication">simple</module-option>
<!-- setting this to true forces the code to search for the user with
the DN that will be constructed dynamically.-->
<module-option name = "searchUser">true</module-option>
<!-- if searchUser is true then than the following three configure
whether the search is performed anonymously or with a specific user-->
<module-option name = "searchUsingAnonymousBind">true</module-option>
<module-option name = "binduser"></module-option>
<module-option name = "bindpassword"></module-option>
<!-- this specifies what the basedn for users should be. Be sure this
matches the directory settings that you specify in the Policy Server
web pages or the end user will not successfully authenticate-->
<module-option name =
"basedn">ou=users,dc=company_name,dc=com</module-option> 
<module-option name =
"searchfilterPrefix">(&amp;(objectClass=*)(uid=</module-option>
<module-option name =
"searchfilterSuffix">))</module-option></login-module>
</authentication>
</application-policy>