It works. But It is not wrong I have to use JDNI if I want a LDAP login? the acegi should't use my JDBC (without JNDI configuration)? There is a security.xml configuration for JDBC instead of JNDI?
bye On 10/5/07, Dave <[EMAIL PROTECTED]> wrote: > > On 10/5/07, Wladimir Boton <[EMAIL PROTECTED]> 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 > -- Wladimir Boton http://www.wboton.com
