Can you post your pom.xml (minus any sensitive information?). Cheers, Scott
On Wed, Apr 22, 2009 at 9:21 AM, Andy Cowling < [email protected]> wrote: > On 20/04/2009 17:17, Scott Battaglia wrote: > > (4) Place your own source either in the src/main/java of your Maven2 > project (or to make it a submodule). We actually just place them in > src/main/java and don't bother with a submodule. > > Unfortunately if I build my new project as a war file, Spring does not find > my classes on startup. But if I build to a jar file instead (and copy it > into the cas modules dir) Spring finds my classes just fine. (In the war > case, I see errors on startup regarding references to my classes in > deployerConfigContext.xml) > > Do I need to modify some config somewhere to instruct Spring where to find > classes that are built into the war file? > > Cheers > Andy > > > > On Mon, Apr 20, 2009 at 11:10 AM, Andy Cowling < > [email protected]> wrote: > >> When I try to "import" my new credentials class definition into the new >> sister class of "BindLdapAuthenticationHandler" (from step 4 below) the >> compiler throws as error that the class does not exist. Yet using the exact >> same import line (copy and pasted) in the credentials binder (step 2 below) >> works just fine. >> >> Why can't maven see the classes I added to the core when building external >> modules? >> >> Is there a way to see what class path maven is using? >> >> So far I did not change the maven config from the default that ships with >> cas 3.3.1. >> >> Cheers >> Andy >> >> On 15/04/2009 15:45, Marvin Addison wrote: >> >> I will assume that you want a login form that takes username/password >> and Tomcat is configured to request a client certificate for the CAS >> /login URI. (This is the only way I can imagine you're getting both >> the LDAP bind credentials and cert simultaneously.) >> >> Here is my recommendation for how to proceed: >> >> 1. Create a subclass of UsernamePasswordCredentials that contains both >> a username/password and the X509Certificate credential. >> 2. Create an instance of CredentialsBinder that creates your custom >> credentials class above. The binder has access to the >> HttpServletRequest, so you will have convenient access to the >> javax.servlet.request.X509Certificate attribute that contains any >> certificates. >> 3. Modify the authenticationViaFormAction bean in cas-servlet.xml: >> A. credentialsBinder=YourCredentialsBinder >> B. formObjectClass=YourUsernamePasswordCredentials >> 4. Create a subclass of BindLdapAuthenticationHandler that does both >> the LDAP bind and subsequent X.509 DN validation and register it to >> handle credentials of type UsernamePasswordCredentials. >> >> The LDAP bind handler should fire naturally since you are supplying an >> instance of UsernamePasswordCredentials (your custom class). You >> shouldn't need to modify the Webflow at all from the default since you >> don't want the x509Check action, which will short-circuit >> username/password handlers. >> >> Hope that helps, >> Marvin >> >> >> >> >> >> -- >> >> Andy Cowling | UK Core IT >> Interactive Data Managed Solutions Ltd >> >> ------------------------------------------------------------------------------------------------------------------------------- >> Suite 1101, Eagle Tower | Montpellier Drive | Cheltenham GL50 1TA | UK >> Tel: +44 (0)1242 6941 15 | Fax: +44 (0)1242 6941 01 >> [email protected] >> http://www.interactivedata-ms.com >> >> This message (including any files transmitted with it) may contain >> confidential >> and/or proprietary information, is the property of Interactive Data >> Corporation >> and/or its subsidiaries, and is directed only to the addressee(s). If you >> are not >> the designated recipient or have reason to believe you received this >> message in >> error, please delete this message from your system and notify the sender >> immediately. An unintended recipient's disclosure, copying, distribution, >> or >> use of this message or any attachments is prohibited and may be unlawful. >> Interactive Data (Europe) Ltd Registered No. 949387 England Registered >> Office: >> Fitzroy House 13-17 Epworth Street. London. EC2A 4DL >> > > -- > You are currently subscribed to [email protected] as: > [email protected] > To unsubscribe, change settings or access archives, see > http://www.ja-sig.org/wiki/display/JSG/cas-user > > > > -- > > Andy Cowling | UK Core IT > Interactive Data Managed Solutions Ltd > > ------------------------------------------------------------------------------------------------------------------------------- > Suite 1101, Eagle Tower | Montpellier Drive | Cheltenham GL50 1TA | UK > Tel: +44 (0)1242 6941 15 | Fax: +44 (0)1242 6941 01 > [email protected] > http://www.interactivedata-ms.com > > This message (including any files transmitted with it) may contain > confidential > and/or proprietary information, is the property of Interactive Data > Corporation > and/or its subsidiaries, and is directed only to the addressee(s). If you > are not > the designated recipient or have reason to believe you received this > message in > error, please delete this message from your system and notify the sender > immediately. An unintended recipient's disclosure, copying, distribution, > or > use of this message or any attachments is prohibited and may be unlawful. > Interactive Data (Europe) Ltd Registered No. 949387 England Registered > Office: > Fitzroy House 13-17 Epworth Street. London. EC2A 4DL > -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
