LDAP authentication

From Resin 3.0

(Difference between revisions)
Jump to: navigation, search
(renamed tag to directive)
 
Line 19: Line 19:
 
  </web-app>
 
  </web-app>
  
== <init-param> tags ==
+
== <init-param> directives ==
  
 
{|
 
{|
!tag||description||default
+
!directive||description||default
 
|-
 
|-
 
||debug||If true, show debug information on stdout||false
 
||debug||If true, show debug information on stdout||false
 
|}
 
|}

Latest revision as of 20:22, 21 February 2006


The Sun JDK includes a JndiLoginModule, which in turn is used with Resin's JaasAuthenticator to authenticate against an LDAP server.

Example

resin-web.xml

<web-app xmlns="http://caucho.com/ns/resin">
  <authenticator type="com.caucho.server.security.JaasAuthenticator">
   <init>
     <login-module>com.sun.security.auth.module.JndiLoginModule</login-module>

     <init-param user.provider.url="ldap://ldap.hogwarts.com/ou=People"/>
     <init-param group.provider.url="ldap://ldap.hogwarts.com/ou=Groups"/>

     <init-param debug="true"/>
   </init>
  </authenticator>
</web-app>

<init-param> directives

directive description default
debug If true, show debug information on stdout false
Personal tools