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 <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 senderimmediately. 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
smime.p7s
Description: S/MIME Cryptographic Signature
