Dashboard > blojsom 3.0 > ... > Authorization Providers > LDAP Authorization Provider
  blojsom 3.0 Log In   View a printable version of the current page.  
  LDAP Authorization Provider
Added by David Czarnecki, last edited by David Czarnecki on Jul 11, 2007  (view change)
Labels: 
(None)

Availability

The LDAP authorization provider is available in the blojsom add-on bundle. This is a separate download from the blojsom.war file.

Description

The LDAP authorization provider is an additional authorization provider for blojsom and uses information from an LDAP directory to authorize users accessing a blog. It is an extension of the database authorization provider and uses the database to check permissions for users. This class/implementation requires LDAP protocol version 3.

Installation and Configuration

After downloading the blojsom add-on bundle, copy the blojsom-addon-core-{version}.jar and netscape-ldapjdk-4.17.jar file into your /WEB-INF/lib directory.

In /WEB-INF/classes/blojsom.xml, an authorizationProvider bean is configured for the installation.

<!-- Authorization provider -->
    <bean id="authorizationProvider" class="org.blojsom.authorization.ldap.LDAPAuthorizationProvider"
          init-method="init">
        <property name="servletConfig">
            <ref bean="servletConfigFactoryBean"/>
        </property>
        <property name="sessionFactory">
            <ref bean="hibernateSessionFactory"/>
        </property>
    </bean>

The bean id of authorizationProvider must not be changed.

Add the following servlet initialization parameters in your /WEB-INF/web.xml file under each servlet.

<init-param>
    <param-name>blog-ldap-authorization-server</param-name>
    <param-value>Name of your LDAP server</param-value>
</init-param>

<init-param>
    <param-name>blog-ldap-authorization-dn</param-name>
    <param-value></param-value>
</init-param>

<!-- Following parameter is optional as the default is 389 -->
<init-param>
    <param-name>blog-ldap-authorization-port</param-name>
    <param-value>389</param-value>
</init-param>

Configuration Properties

The following table describes all the initialization parameters that can be used for this authorization provider.

Initialization parameter Description Default Value
blog-ldap-authorization-server Name of your LDAP server.  
blog-ldap-authorization-dn LDAP distinguished name.  
blog-ldap-authorization-port LDAP port. 389
blog-ldap-authorization-uid Controls the UID attribute name when doing a username lookup. uid
blog-ldap-authorization-bindinguser Username to use when binding to LDAP to do a username lookup.  
blog-ldap-authorization-bindingpassword Password to use when binding to LDAP to do a username lookup.  
blog-ldap-authorization-use-ssl If SSL is to be used to connect to LDAP.  

Usage

The user name must be the same as that of their LDAP user (uid).

Site running on a free Atlassian Confluence Open Source Project License granted to blojsom. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.4 Build:#809 Jun 12, 2007) - Bug/feature request - Contact Administrators