opensubscriber
   Find in this group all groups
 
Unknown more information…

a : acegisecurity-developer@lists.sourceforge.net 22 June 2009 • 8:13PM -0400

[Acegisecurity-developer] Using custom user table in spring-security- 2.0.4
by far4ever

REPLY TO AUTHOR
 
REPLY TO GROUP






hi
am using spring security 2.0.4. Here most configurations are different from
that of the acegi.

and i developed a system where the user details for the authentication is
being taken from the database.
but here i used the default table that is required .
and xml config s given below.:
------------------------------------------------------------------------------------
<bean id="dataSource"
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
        <property name="driverClassName" value="com.mysql.jdbc.Driver"/>
        <property name="url" value="jdbc:mysql://localhost/test"/>

        <property name="username" value="admin"/>
        <property name="password" value=""/>
    </bean>
------------------
<security:authentication-provider>
        <security:jdbc-user-service data-source-ref="dataSource" />
</security:authentication-provider>
----------------------------------------------------------------------

this worked fine.

And now i need to do it in a custom table ( using a table that has different
field than that in the default required table)

can anyone please enlighten how can i configure( use custom queries ) to
make it happen.


thanks in advance.

--
View this message in context: http://www.nabble.com/Using-custom-user-table-in-spring-security--2.0.4-tp24146229p24146229.html
Sent from the acegisecurity-developer mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Home: http://acegisecurity.org
Acegisecurity-developer mailing list
Acegisecurity-developer@list...
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

opensubscriber is not affiliated with the authors of this message nor responsible for its content.