Guest User

Untitled

a guest
Jun 23rd, 2018
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. <Realm
  2. className="org.apache.catalina.realm.JNDIRealm" debug="99"
  3. connectionURL="ldap://DAServer:389"
  4. connectionName="userAuth@mydomain.local"
  5. connectionPassword="secret"
  6. referrals="follow"
  7. userBase="OU=mycompany,DC=mydomain,DC=local"
  8. userSubtree="true"
  9. roleBase="OU=groups,DC=mydomain,DC=local"
  10. roleName="name"
  11. roleSubtree="true"
  12. roleSearch="(member={0})"/>
  13.  
  14. <!-- Define a Security Constraint on this Application -->
  15. <security-constraint>
  16. <web-resource-collection>
  17. <web-resource-name>Entire Application</web-resource-name>
  18. <url-pattern>/*</url-pattern>
  19. </web-resource-collection>
  20.  
  21. <auth-constraint>
  22. <role-name>myCompany Users</role-name>
  23. </auth-constraint>
  24. </security-constraint>
  25.  
  26. <!-- Define the Login Configuration for this Application -->
  27. <login-config>
  28. <auth-method>BASIC</auth-method>
  29. <realm-name>myRealm</realm-name>
  30. </login-config>
  31.  
  32. <!-- Security roles referenced by this web application -->
  33. <security-role>
  34. <description>The role that is required to log in to APP</description>
  35. <role-name>myCompany Users</role-name>
  36. </security-role>
Add Comment
Please, Sign In to add comment