-
1. Re: Custom Identity Store
waynebagguley Nov 12, 2008 6:26 PM (in response to dubreuia)My guess is that you have to specify what class to use, e.g.
<security:ldap-identity-store class="com.etc.etc.LdapRadarIdentityStore">
Or something similar.
-
2. Re: Custom Identity Store
dubreuia Nov 12, 2008 7:13 PM (in response to dubreuia)Yeah, I though about it, but without an EL, there's an error when I launch the server; the class cannot be found. With an EL, there is no reason to explicitly write the full qualified name, since it is defined with the @Name annotation on the class itself.
I tried some combination but nothing works. The strange thing is that I can cast it to LdapIdentityStore, but not my custom store. That mean the EL is working properly and that Seam find its LdapIdentityStore (it would use JpaIdentityStore if this was not true)...
Another idea?
-
3. Re: Custom Identity Store
dubreuia Nov 12, 2008 9:36 PM (in response to dubreuia)Okay, found it. Here's how to do it. Make a new component in components.xml, like
<component name="ldapRadarIdentityStore" class="com.etc.etc.etc.entity.LdapRadarIdentityStore" startup="true" scope="APPLICATION" > <property name="serverAddress">saew0050</property> <etc>...</etc> </component>
and delete annotations on your class (your class that should extend the LdapIdentityStore).
It seems like using the security:ldap-identity... in the .xml would override the
<security:identity-manager identity-store="#{ldapRadarIdentityStore}" role-identity-store="#{ldapRadarIdentityStore}" />
code, which is pretty logical, so make sure you deleted that part too. The component's properties will do the job.
Be careful to avoid putting the class (your custom-ldap-anything-stuff) in a hotredeploy folder (thrust me, it doesn't work), since you cannot define a hotredeploy component inside components.xml.
That's it. Hopes it helps.
-
4. Re: Custom Identity Store
carolinofr Mar 16, 2011 10:29 AM (in response to dubreuia)hi,
and how you passed the param for you class?
you used the page.xml for passed?
sorry for my english :(