Thanks for your quick reply! I am using daoAuthenticationProvider, and didn't find UserDetailsService property you mentioned (btw, I'm trying out acegi-0.9.0). Also, I guess I need to create records in autorities table, right? I wish acegi has a roles table, (and a group table).
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ben Alex Sent: Wednesday, May 10, 2006 4:11 PM To: acegisecurity-developer@lists.sourceforge.net Subject: Re: [Acegisecurity-developer] how to customize roles Richard Han wrote: > My question probably is more suitable to user-list, but we don't have one. > Anyway, I am new to acegi, my question is, how do you customize role names, > for instance, if I want to use ROLE_STUDENT, ROLE_PROFESSOR, how would I let > acegi recognize them? > > In two places: 1. These would be your configuration attributes against AbstractSecurityInterceptor.objectDefinitionSource. 2. They would be returned in your UserDetails object from the UserDetailsService used by your AuthenticationProvider. Cheers Ben ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Home: http://acegisecurity.org Acegisecurity-developer mailing list Acegisecurity-developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Home: http://acegisecurity.org Acegisecurity-developer mailing list Acegisecurity-developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer