roller-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave <snoopd...@gmail.com>
Subject Re: Login using Active Directory LDAP
Date Fri, 05 Oct 2007 14:15:57 GMT
On 10/5/07, Wladimir Boton <wboton@gmail.com> wrote:
> Roller is working normaly when I use the default login process (db).
>
> The mysql-connector-java-5.0.4-bin.jar is on the directory C:\Java\apache-
> tomcat-5.5.20\common\lib
> and the correct username and password was set in the
> roller-custom.properties.
>
> Is there another place to setup this conection for the acegi?
>
> This is the security.xml part where is the dataSource.
>
>     <bean id="jdbcAuthoritiesPopulator" class="
> org.apache.roller.weblogger.ui.core.security.AuthoritiesPopulator">
>         <property name="dataSource">
>             <bean class="org.springframework.jndi.JndiObjectFactoryBean">
>                 <property name="jndiName"
> value="java:comp/env/jdbc/rollerdb"/>
>             </bean>
>         </property>
>         <property name="authoritiesByUsernameQuery">
>             <value>SELECT username,rolename FROM userrole WHERE username =
> ?</value>
>         </property>
>     <property name="defaultRole"><value>admin</value></property>
>     </bean>

I have not tried to setup LDAP with Roller 4.0, but I believe that
with the config you show above you will have to setup a JNDI
accessible datasource for Roller. See section 9.3 in the installation
guide for notes on how to do that.

- Dave

Mime
View raw message