The pom.xml for the new project is attached On 22/04/2009 15:54, Scott Battaglia wrote:
Can you post your pom.xml (minus any sensitive information?).Cheers, ScottOn Wed, Apr 22, 2009 at 9:21 AM, Andy Cowling <[email protected] <mailto:[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 AndyOn Mon, Apr 20, 2009 at 11:10 AM, Andy Cowling <[email protected] <mailto:[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] <mailto:[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 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 [email protected] <mailto:[email protected]> as:[email protected] <mailto:[email protected]>To unsubscribe, change settings or access archives, seehttp://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] <mailto:[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 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 <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
<?xml version="1.0"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.idms.cas</groupId> <artifactId>idms-cas</artifactId> <version>1.0</version> <packaging>war</packaging> <name>Interactive Data CAS webapp</name> <organization> <name>Interactive Data</name> <url>http://www.interactivedata.com</url> </organization> <description>Interactive Data's customizations to the JA-SIG CAS server. Users must supply valid certificates as well as LDAP bind credentials.</description> <dependencies> <dependency> <groupId>org.jasig.cas</groupId> <artifactId>cas-server-webapp</artifactId> <version>3.3</version> <type>war</type> </dependency> <dependency> <groupId>org.jasig.cas</groupId> <artifactId>cas-server-core</artifactId> <version>3.3</version> </dependency> <!-- The LDAP handler : Require for Credentials To Principal Resolver only (resolving Common Name to uid from LDAP) --> <dependency> <groupId>org.jasig.cas</groupId> <artifactId>cas-server-support-ldap</artifactId> <version>3.3</version> </dependency> <!-- LDAP Utils courtesy of Spring --> <dependency> <groupId>org.springframework.ldap</groupId> <artifactId>spring-ldap</artifactId> <version>1.2.1</version> <scope>compile</scope> <exclusions> <exclusion> <artifactId>spring-beans</artifactId> <groupId>org.springframework</groupId> </exclusion> <exclusion> <artifactId>spring-core</artifactId> <groupId>org.springframework</groupId> </exclusion> <exclusion> <artifactId>spring-context</artifactId> <groupId>org.springframework</groupId> </exclusion> <exclusion> <artifactId>spring-dao</artifactId> <groupId>org.springframework</groupId> </exclusion> <exclusion> <artifactId>spring-jdbc</artifactId> <groupId>org.springframework</groupId> </exclusion> </exclusions> </dependency> <!-- Required for @IsIn, @NotNull (etc) compiler directives - used in code copied from cas ldap support module --> <dependency> <groupId>org.inspektr</groupId> <artifactId>inspektr-core</artifactId> <version>0.7.0</version> <scope>compile</scope> <exclusions> <exclusion> <groupId>org.springframework</groupId> <artifactId>spring-jdbc</artifactId> </exclusion> <exclusion> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> </exclusion> <exclusion> <groupId>org.springframework</groupId> <artifactId>spring-beans</artifactId> </exclusion> <exclusion> <groupId>org.springframework</groupId> <artifactId>spring-aop</artifactId> </exclusion> <exclusion> <groupId>org.springframework</groupId> <artifactId>spring-support</artifactId> </exclusion> <exclusion> <groupId>org.springframework.security</groupId> <artifactId>spring-security-core</artifactId> </exclusion> </exclusions> </dependency> </dependencies> <build> <finalName>cas</finalName> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>RELEASE</version> <configuration> <source>1.5</source> <target>1.5</target> </configuration> </plugin> </plugins> </build> <repositories> <repository> <id>jasig-repository</id> <name>JA-SIG Maven2 Repository</name> <url>http://developer.ja-sig.org/maven2</url> </repository> </repositories> <reporting> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-project-info-reports-plugin</artifactId> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-changelog-plugin</artifactId> </plugin> </plugins> </reporting> </project>
smime.p7s
Description: S/MIME Cryptographic Signature
