Compare commits
15 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4361211c21 | |||
| 71adc26b0f | |||
| eb3288ca34 | |||
| f3f4cfe804 | |||
| 40fa884860 | |||
| 3e393c9df6 | |||
| a61aca1abf | |||
| 52d2c904f9 | |||
| 149fd5d8de | |||
| f3f02d8aed | |||
| 781c99f257 | |||
| b77f780993 | |||
| 22964837e9 | |||
| 7566802a08 | |||
| 4c3867718e |
+12
-27
@@ -3,13 +3,13 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>spring-security-parent</artifactId>
|
<artifactId>spring-security-parent</artifactId>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<version>2.0.5-SNAPSHOT</version>
|
<version>2.0.5.RELEASE</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-acl</artifactId>
|
<artifactId>spring-security-acl</artifactId>
|
||||||
<name>Spring Security - ACL module</name>
|
<name>Spring Security - ACL module</name>
|
||||||
<packaging>bundle</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
@@ -51,29 +51,14 @@
|
|||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
<!--
|
||||||
<properties>
|
<build>
|
||||||
<spring.osgi.export>
|
<plugins>
|
||||||
org.springframework.security.*;version=${pom.version.osgi}
|
<plugin>
|
||||||
</spring.osgi.export>
|
<groupId>com.springsource.bundlor</groupId>
|
||||||
|
<artifactId>com.springsource.bundlor.maven</artifactId>
|
||||||
<spring.osgi.import>
|
</plugin>
|
||||||
net.sf.ehcache.*;version="[1.4.1, 2.0.0)";resolution:=optional,
|
</plugins>
|
||||||
org.springframework.security.*;version="[${pom.version.osgi},${pom.version.osgi}]",
|
</build>
|
||||||
org.springframework.context.*;version="${spring.version.osgi}",
|
-->
|
||||||
org.springframework.dao.*;version="${spring.version.osgi}";resolution:=optional,
|
|
||||||
org.springframework.jdbc.*;version="${spring.version.osgi}";resolution:=optional,
|
|
||||||
org.springframework.transaction.support.*;version="${spring.version.osgi}";resolution:=optional,
|
|
||||||
org.springframework.util.*;version="${spring.version.osgi}",
|
|
||||||
org.apache.commons.logging.*;version="[1.1.1, 2.0.0)",
|
|
||||||
javax.sql.*
|
|
||||||
</spring.osgi.import>
|
|
||||||
|
|
||||||
<spring.osgi.private.pkg>
|
|
||||||
!org.springframework.security.*
|
|
||||||
</spring.osgi.private.pkg>
|
|
||||||
|
|
||||||
<spring.osgi.symbolic.name>org.springframework.security.acls</spring.osgi.symbolic.name>
|
|
||||||
</properties>
|
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
Bundle-SymbolicName: org.springframework.security.acls
|
||||||
|
Bundle-Name: Spring Security Acls
|
||||||
|
Bundle-Vendor: SpringSource
|
||||||
|
Bundle-Version: ${version}
|
||||||
|
Bundle-ManifestVersion: 2
|
||||||
|
Ignored-Existing-Headers:
|
||||||
|
Import-Package,
|
||||||
|
Export-Package
|
||||||
|
Import-Template:
|
||||||
|
org.apache.commons.logging.*;version="[1.0.4, 2.0.0)",
|
||||||
|
org.springframework.security.*;version="[${version}, ${version}]",
|
||||||
|
org.springframework.context.*;version="[2.0.8, 3.1.0)";resolution:=optional,
|
||||||
|
org.springframework.dao.*;version="[2.0.8, 3.1.0)";resolution:=optional,
|
||||||
|
org.springframework.jdbc.core.*;version="[2.0.8, 3.1.0)";resolution:=optional,
|
||||||
|
org.springframework.transaction.support.*;version="[2.0.8, 3.1.0)";resolution:=optional,
|
||||||
|
org.springframework.util.*;version="[2.0.8, 3.1.0)";resolution:=optional,
|
||||||
|
net.sf.ehcache.*;version="[1.4.1, 2.0.0)";resolution:=optional,
|
||||||
|
javax.sql.*;version="0";resolution:=optional
|
||||||
|
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-adapters</artifactId>
|
<artifactId>spring-security-adapters</artifactId>
|
||||||
<version>2.0.5-SNAPSHOT</version>
|
<version>2.0.5.CI-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<artifactId>spring-security-catalina</artifactId>
|
<artifactId>spring-security-catalina</artifactId>
|
||||||
<name>Spring Security - Catalina adapter</name>
|
<name>Spring Security - Catalina adapter</name>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-adapters</artifactId>
|
<artifactId>spring-security-adapters</artifactId>
|
||||||
<version>2.0.5-SNAPSHOT</version>
|
<version>2.0.5.CI-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<artifactId>spring-security-jboss</artifactId>
|
<artifactId>spring-security-jboss</artifactId>
|
||||||
<name>Spring Security - JBoss adapter</name>
|
<name>Spring Security - JBoss adapter</name>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-adapters</artifactId>
|
<artifactId>spring-security-adapters</artifactId>
|
||||||
<version>2.0.5-SNAPSHOT</version>
|
<version>2.0.5.CI-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<artifactId>spring-security-jetty</artifactId>
|
<artifactId>spring-security-jetty</artifactId>
|
||||||
<name>Spring Security - Jetty adapter</name>
|
<name>Spring Security - Jetty adapter</name>
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-parent</artifactId>
|
<artifactId>spring-security-parent</artifactId>
|
||||||
<version>2.0.5-SNAPSHOT</version>
|
<version>2.0.5.CI-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<artifactId>spring-security-adapters</artifactId>
|
<artifactId>spring-security-adapters</artifactId>
|
||||||
<name>Spring Security - Adapters</name>
|
<name>Spring Security - Adapters</name>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-adapters</artifactId>
|
<artifactId>spring-security-adapters</artifactId>
|
||||||
<version>2.0.5-SNAPSHOT</version>
|
<version>2.0.5.CI-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<artifactId>spring-security-resin</artifactId>
|
<artifactId>spring-security-resin</artifactId>
|
||||||
<name>Spring Security - Resin adapter</name>
|
<name>Spring Security - Resin adapter</name>
|
||||||
|
|||||||
+11
-27
@@ -3,11 +3,11 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-parent</artifactId>
|
<artifactId>spring-security-parent</artifactId>
|
||||||
<version>2.0.5-SNAPSHOT</version>
|
<version>2.0.5.RELEASE</version>
|
||||||
</parent>
|
</parent>
|
||||||
<artifactId>spring-security-cas-client</artifactId>
|
<artifactId>spring-security-cas-client</artifactId>
|
||||||
<name>Spring Security - CAS support</name>
|
<name>Spring Security - CAS support</name>
|
||||||
<packaging>bundle</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
@@ -38,7 +38,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jasig.cas</groupId>
|
<groupId>org.jasig.cas</groupId>
|
||||||
<artifactId>cas-client-core</artifactId>
|
<artifactId>cas-client-core</artifactId>
|
||||||
<version>3.1.3</version>
|
<version>3.1.5</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>net.sf.ehcache</groupId>
|
<groupId>net.sf.ehcache</groupId>
|
||||||
@@ -47,28 +47,12 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<properties>
|
<build>
|
||||||
<spring.osgi.export>
|
<plugins>
|
||||||
org.springframework.security.*;version=${pom.version.osgi}
|
<plugin>
|
||||||
</spring.osgi.export>
|
<groupId>com.springsource.bundlor</groupId>
|
||||||
|
<artifactId>com.springsource.bundlor.maven</artifactId>
|
||||||
<spring.osgi.import>
|
</plugin>
|
||||||
org.springframework.security.*;version="[${pom.version.osgi},${pom.version.osgi}]",
|
</plugins>
|
||||||
org.springframework.beans.*;version="${spring.version.osgi}",
|
</build>
|
||||||
org.springframework.context.*;version="${spring.version.osgi}",
|
|
||||||
org.springframework.dao.*;version="${spring.version.osgi}";resolution:=optional,
|
|
||||||
org.springframework.util.*;version="${spring.version.osgi}",
|
|
||||||
javax.servlet.*;version="[2.4.0, 3.0.0)";resolution:=optional,
|
|
||||||
net.sf.ehcache.*;version="[1.4.1, 2.0.0)";resolution:=optional,
|
|
||||||
org.apache.commons.logging.*;version="[1.1.1, 2.0.0)",
|
|
||||||
org.jasig.cas.client.*;version="[3.1.3, 4.0.0)"
|
|
||||||
</spring.osgi.import>
|
|
||||||
|
|
||||||
<spring.osgi.private.pkg>
|
|
||||||
!org.springframework.security.*
|
|
||||||
</spring.osgi.private.pkg>
|
|
||||||
|
|
||||||
<spring.osgi.symbolic.name>org.springframework.security.cas</spring.osgi.symbolic.name>
|
|
||||||
</properties>
|
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
Bundle-SymbolicName: org.springframework.security.cas
|
||||||
|
Bundle-Name: Spring Security CAS
|
||||||
|
Bundle-Vendor: SpringSource
|
||||||
|
Bundle-Version: ${version}
|
||||||
|
Bundle-ManifestVersion: 2
|
||||||
|
Ignored-Existing-Headers:
|
||||||
|
Import-Package,
|
||||||
|
Export-Package
|
||||||
|
Import-Template:
|
||||||
|
org.apache.commons.logging.*;version="[1.0.4, 2.0.0)",
|
||||||
|
org.jasig.cas.client.*;version="[3.1.1,3.2)",
|
||||||
|
org.springframework.security.*;version="[${version}, ${version}]",
|
||||||
|
org.springframework.beans.factory;version="[2.0.8, 3.1.0)",
|
||||||
|
org.springframework.context.*;version="[2.0.8, 3.1.0)",
|
||||||
|
org.springframework.dao;version="[2.0.8, 3.1.0)",
|
||||||
|
org.springframework.util;version="[2.0.8, 3.1.0)",
|
||||||
|
net.sf.ehcache.*;version="[1.4.1, 2.0.0)";resolution:=optional,
|
||||||
|
javax.servlet.*;version="0"
|
||||||
|
|
||||||
+6
-35
@@ -3,9 +3,9 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-parent</artifactId>
|
<artifactId>spring-security-parent</artifactId>
|
||||||
<version>2.0.5-SNAPSHOT</version>
|
<version>2.0.5.RELEASE</version>
|
||||||
</parent>
|
</parent>
|
||||||
<packaging>bundle</packaging>
|
<packaging>jar</packaging>
|
||||||
<artifactId>spring-security-core-tiger</artifactId>
|
<artifactId>spring-security-core-tiger</artifactId>
|
||||||
<name>Spring Security - Java 5 (Tiger)</name>
|
<name>Spring Security - Java 5 (Tiger)</name>
|
||||||
|
|
||||||
@@ -59,39 +59,10 @@
|
|||||||
<target>1.5</target>
|
<target>1.5</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.springsource.bundlor</groupId>
|
||||||
|
<artifactId>com.springsource.bundlor.maven</artifactId>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
<reporting>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-pmd-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<targetJdk>1.5</targetJdk>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</reporting>
|
|
||||||
|
|
||||||
<properties>
|
|
||||||
<spring.osgi.export>
|
|
||||||
org.springframework.security.*;version=${pom.version}
|
|
||||||
</spring.osgi.export>
|
|
||||||
|
|
||||||
<spring.osgi.import>
|
|
||||||
javax.annotation.*;version="[1.0.0, 2.0.0)",
|
|
||||||
org.springframework.security.*;version="[${pom.version.osgi},${pom.version.osgi}]",
|
|
||||||
org.springframework.core.*;version="${spring.version.osgi}"
|
|
||||||
</spring.osgi.import>
|
|
||||||
|
|
||||||
<spring.osgi.private.pkg>
|
|
||||||
!org.springframework.security.*
|
|
||||||
</spring.osgi.private.pkg>
|
|
||||||
|
|
||||||
<spring.osgi.include.res>
|
|
||||||
src/main/resources
|
|
||||||
</spring.osgi.include.res>
|
|
||||||
|
|
||||||
<spring.osgi.symbolic.name>org.springframework.security.annotation</spring.osgi.symbolic.name>
|
|
||||||
</properties>
|
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
Bundle-SymbolicName: org.springframework.security.annotation
|
||||||
|
Bundle-Name: Spring Security Annotations
|
||||||
|
Bundle-Vendor: SpringSource
|
||||||
|
Bundle-Version: ${version}
|
||||||
|
Bundle-ManifestVersion: 2
|
||||||
|
Ignored-Existing-Headers:
|
||||||
|
Import-Package,
|
||||||
|
Export-Package
|
||||||
|
Import-Template:
|
||||||
|
javax.annotation.security.*;version="0";resolution:=optional,
|
||||||
|
org.springframework.security.*;version="[${version},${version}]",
|
||||||
|
org.springframework.core.*;version="[2.0.8, 3.1.0)"
|
||||||
+10
-55
@@ -3,9 +3,9 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-parent</artifactId>
|
<artifactId>spring-security-parent</artifactId>
|
||||||
<version>2.0.5-SNAPSHOT</version>
|
<version>2.0.5.RELEASE</version>
|
||||||
</parent>
|
</parent>
|
||||||
<packaging>bundle</packaging>
|
<packaging>jar</packaging>
|
||||||
<artifactId>spring-security-core</artifactId>
|
<artifactId>spring-security-core</artifactId>
|
||||||
<name>Spring Security - Core</name>
|
<name>Spring Security - Core</name>
|
||||||
|
|
||||||
@@ -142,57 +142,12 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<properties>
|
<build>
|
||||||
<spring.osgi.export>
|
<plugins>
|
||||||
org.springframework.security.*;version=${pom.version}
|
<plugin>
|
||||||
</spring.osgi.export>
|
<groupId>com.springsource.bundlor</groupId>
|
||||||
|
<artifactId>com.springsource.bundlor.maven</artifactId>
|
||||||
<spring.osgi.import>
|
</plugin>
|
||||||
!com.ibm.websphere.security,
|
</plugins>
|
||||||
javax.servlet.*;version="[2.4.0, 3.0.0)";resolution:=optional,
|
</build>
|
||||||
net.sf.ehcache.*;version="[1.4.1, 2.0.0)";resolution:=optional,
|
|
||||||
org.aopalliance.*;version="[1.0.0, 2.0.0)",
|
|
||||||
org.apache.commons.codec.*;version="[1.3.0, 2.0.0)",
|
|
||||||
org.apache.commons.collections.*;version="[3.2.0, 4.0.0)",
|
|
||||||
org.apache.commons.lang.*;version="[2.1.0, 3.0.0)",
|
|
||||||
org.apache.commons.logging.*;version="[1.1.1, 2.0.0)",
|
|
||||||
org.apache.directory.server.configuration.*;version="[1.0.2, 2.0.0)";resolution:=optional,
|
|
||||||
org.apache.directory.server.core.*;version="[1.0.2, 2.0.0)";resolution:=optional,
|
|
||||||
org.apache.directory.server.protocol.*;version="[1.0.2, 2.0.0)";resolution:=optional,
|
|
||||||
org.aspectj.*;version="[1.5.4, 2.0.0)";resolution:=optional,
|
|
||||||
org.jaxen.*;version="[1.1.1, 2.0.0)";resolution:=optional,
|
|
||||||
org.springframework.aop.*;version="${spring.version.osgi}",
|
|
||||||
org.springframework.beans.*;version="${spring.version.osgi}",
|
|
||||||
org.springframework.context.*;version="${spring.version.osgi}",
|
|
||||||
org.springframework.core.*;version="${spring.version.osgi}",
|
|
||||||
org.springframework.dao.*;version="${spring.version.osgi}";resolution:=optional,
|
|
||||||
org.springframework.jdbc.*;version="${spring.version.osgi}";resolution:=optional,
|
|
||||||
org.springframework.ldap.*;version="[1.2.1.A, 2.0.0)";resolution:=optional,
|
|
||||||
org.springframework.metadata.*;version="${spring.version.osgi}",
|
|
||||||
org.springframework.mock.*;version="${spring.version.osgi}";resolution:=optional,
|
|
||||||
org.springframework.remoting.*;version="${spring.version.osgi}";resolution:=optional,
|
|
||||||
org.springframework.util.*;version="${spring.version.osgi}",
|
|
||||||
org.springframework.web.*;version="${spring.version.osgi}";resolution:=optional,
|
|
||||||
javax.crypto.*,
|
|
||||||
javax.naming.*,
|
|
||||||
javax.rmi.*,
|
|
||||||
javax.security.*,
|
|
||||||
javax.sql.*,
|
|
||||||
javax.xml.parsers.*,
|
|
||||||
org.w3c.dom.*,
|
|
||||||
org.xml.sax.*,
|
|
||||||
*;resolution:=optional
|
|
||||||
</spring.osgi.import>
|
|
||||||
|
|
||||||
<spring.osgi.private.pkg>
|
|
||||||
!org.springframework.security.*
|
|
||||||
</spring.osgi.private.pkg>
|
|
||||||
<!--
|
|
||||||
<spring.osgi.include.res>
|
|
||||||
src/main/resources
|
|
||||||
</spring.osgi.include.res>
|
|
||||||
-->
|
|
||||||
<spring.osgi.symbolic.name>org.springframework.security.core</spring.osgi.symbolic.name>
|
|
||||||
</properties>
|
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
+1
@@ -71,6 +71,7 @@ public class DefaultSpringSecurityContextSource extends LdapContextSource implem
|
|||||||
|
|
||||||
env.put(Context.SECURITY_PRINCIPAL, userDn);
|
env.put(Context.SECURITY_PRINCIPAL, userDn);
|
||||||
env.put(Context.SECURITY_CREDENTIALS, credentials);
|
env.put(Context.SECURITY_CREDENTIALS, credentials);
|
||||||
|
env.remove(SUN_LDAP_POOLING_FLAG);
|
||||||
|
|
||||||
if (logger.isDebugEnabled()) {
|
if (logger.isDebugEnabled()) {
|
||||||
logger.debug("Creating context with principal: '" + userDn + "'");
|
logger.debug("Creating context with principal: '" + userDn + "'");
|
||||||
|
|||||||
+19
-19
@@ -86,9 +86,9 @@ public class LdapShaPasswordEncoder implements PasswordEncoder {
|
|||||||
sha.update(rawPass.getBytes("UTF-8"));
|
sha.update(rawPass.getBytes("UTF-8"));
|
||||||
} catch (java.security.NoSuchAlgorithmException e) {
|
} catch (java.security.NoSuchAlgorithmException e) {
|
||||||
throw new IllegalStateException("No SHA implementation available!");
|
throw new IllegalStateException("No SHA implementation available!");
|
||||||
} catch (UnsupportedEncodingException ue) {
|
} catch (UnsupportedEncodingException ue) {
|
||||||
throw new IllegalStateException("UTF-8 not supported!");
|
throw new IllegalStateException("UTF-8 not supported!");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (salt != null) {
|
if (salt != null) {
|
||||||
Assert.isInstanceOf(byte[].class, salt, "Salt value must be a byte array");
|
Assert.isInstanceOf(byte[].class, salt, "Salt value must be a byte array");
|
||||||
@@ -131,7 +131,7 @@ public class LdapShaPasswordEncoder implements PasswordEncoder {
|
|||||||
*/
|
*/
|
||||||
public boolean isPasswordValid(final String encPass, final String rawPass, Object salt) {
|
public boolean isPasswordValid(final String encPass, final String rawPass, Object salt) {
|
||||||
String prefix = extractPrefix(encPass);
|
String prefix = extractPrefix(encPass);
|
||||||
|
|
||||||
if (prefix == null) {
|
if (prefix == null) {
|
||||||
return encPass.equals(rawPass);
|
return encPass.equals(rawPass);
|
||||||
}
|
}
|
||||||
@@ -141,32 +141,32 @@ public class LdapShaPasswordEncoder implements PasswordEncoder {
|
|||||||
} else if (!prefix.equals(SHA_PREFIX) && !prefix.equals(SHA_PREFIX_LC)) {
|
} else if (!prefix.equals(SHA_PREFIX) && !prefix.equals(SHA_PREFIX_LC)) {
|
||||||
throw new IllegalArgumentException("Unsupported password prefix '" + prefix + "'");
|
throw new IllegalArgumentException("Unsupported password prefix '" + prefix + "'");
|
||||||
} else {
|
} else {
|
||||||
// Standard SHA
|
// Standard SHA
|
||||||
salt = null;
|
salt = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
int startOfHash = prefix.length() + 1;
|
int startOfHash = prefix.length();
|
||||||
|
|
||||||
String encodedRawPass = encodePassword(rawPass, salt).substring(startOfHash);
|
String encodedRawPass = encodePassword(rawPass, salt).substring(startOfHash);
|
||||||
|
|
||||||
return encodedRawPass.equals(encPass.substring(startOfHash));
|
return encodedRawPass.equals(encPass.substring(startOfHash));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the hash prefix or null if there isn't one.
|
* Returns the hash prefix or null if there isn't one.
|
||||||
*/
|
*/
|
||||||
private String extractPrefix(String encPass) {
|
private String extractPrefix(String encPass) {
|
||||||
if (!encPass.startsWith("{")) {
|
if (!encPass.startsWith("{")) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
int secondBrace = encPass.lastIndexOf('}');
|
int secondBrace = encPass.lastIndexOf('}');
|
||||||
|
|
||||||
if (secondBrace < 0) {
|
if (secondBrace < 0) {
|
||||||
throw new IllegalArgumentException("Couldn't find closing brace for SHA prefix");
|
throw new IllegalArgumentException("Couldn't find closing brace for SHA prefix");
|
||||||
}
|
}
|
||||||
|
|
||||||
return encPass.substring(0, secondBrace + 1);
|
return encPass.substring(0, secondBrace + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setForceLowerCasePrefix(boolean forceLowerCasePrefix) {
|
public void setForceLowerCasePrefix(boolean forceLowerCasePrefix) {
|
||||||
|
|||||||
+28
-3
@@ -1,12 +1,17 @@
|
|||||||
package org.springframework.security.ldap;
|
package org.springframework.security.ldap;
|
||||||
|
|
||||||
|
import static org.junit.Assert.assertNull;
|
||||||
|
|
||||||
|
import javax.naming.directory.DirContext;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
import org.springframework.security.BadCredentialsException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Luke Taylor
|
* @author Luke Taylor
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
public class DefaultSpringSecurityContextSourceTests {
|
public class DefaultSpringSecurityContextSourceTests extends AbstractLdapIntegrationTests {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void instantiationSucceeds() {
|
public void instantiationSucceeds() {
|
||||||
@@ -15,7 +20,27 @@ public class DefaultSpringSecurityContextSourceTests {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void supportsSpacesInUrl() {
|
public void supportsSpacesInUrl() {
|
||||||
new DefaultSpringSecurityContextSource("ldap://myhost:10389/dc=spring%20framework,dc=org");
|
new DefaultSpringSecurityContextSource("ldap://myhost:10389/dc=spring%20framework,dc=org");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void poolingIsntUsedForSingleUser() throws Exception {
|
||||||
|
DirContext ctx = getContextSource().getReadWriteContext("uid=Bob,ou=people,dc=springframework,dc=org", "bobspassword");
|
||||||
|
//com.sun.jndi.ldap.LdapPoolManager.showStats(System.out);
|
||||||
|
assertNull(ctx.getEnvironment().get("com.sun.jndi.ldap.connect.pool"));
|
||||||
|
ctx.close();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test(expected=BadCredentialsException.class)
|
||||||
|
public void poolingIsntUsedForSingleUser2() throws Exception {
|
||||||
|
DirContext ctx = getContextSource().getReadWriteContext("uid=Bob,ou=people,dc=springframework,dc=org", "bobspassword");
|
||||||
|
com.sun.jndi.ldap.LdapPoolManager.showStats(System.out);
|
||||||
|
ctx.close();
|
||||||
|
com.sun.jndi.ldap.LdapPoolManager.showStats(System.out);
|
||||||
|
// Now get it gain, with wrong password
|
||||||
|
ctx = getContextSource().getReadWriteContext("uid=Bob,ou=people,dc=springframework,dc=org", "wrongpassword");
|
||||||
|
com.sun.jndi.ldap.LdapPoolManager.showStats(System.out);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,15 +35,6 @@ import java.util.Vector;
|
|||||||
* @version $Id$
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
public class AffirmativeBasedTests extends TestCase {
|
public class AffirmativeBasedTests extends TestCase {
|
||||||
//~ Constructors ===================================================================================================
|
|
||||||
|
|
||||||
public AffirmativeBasedTests() {
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
public AffirmativeBasedTests(String arg0) {
|
|
||||||
super(arg0);
|
|
||||||
}
|
|
||||||
|
|
||||||
//~ Methods ========================================================================================================
|
//~ Methods ========================================================================================================
|
||||||
|
|
||||||
@@ -53,25 +44,24 @@ public class AffirmativeBasedTests extends TestCase {
|
|||||||
|
|
||||||
private AffirmativeBased makeDecisionManager() {
|
private AffirmativeBased makeDecisionManager() {
|
||||||
AffirmativeBased decisionManager = new AffirmativeBased();
|
AffirmativeBased decisionManager = new AffirmativeBased();
|
||||||
RoleVoter roleVoter = new RoleVoter();
|
|
||||||
DenyVoter denyForSureVoter = new DenyVoter();
|
|
||||||
DenyAgainVoter denyAgainForSureVoter = new DenyAgainVoter();
|
|
||||||
List voters = new Vector();
|
List voters = new Vector();
|
||||||
voters.add(roleVoter);
|
voters.add(new RoleVoter());
|
||||||
voters.add(denyForSureVoter);
|
voters.add(new DenyVoter());
|
||||||
voters.add(denyAgainForSureVoter);
|
voters.add(new DenyAgainVoter());
|
||||||
decisionManager.setDecisionVoters(voters);
|
decisionManager.setDecisionVoters(voters);
|
||||||
|
|
||||||
return decisionManager;
|
return decisionManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
private TestingAuthenticationToken makeTestToken() {
|
private TestingAuthenticationToken makeTestToken() {
|
||||||
return new TestingAuthenticationToken("somebody", "password",
|
return new TestingAuthenticationToken("somebody", "password", "ROLE_1","ROLE_2");
|
||||||
new GrantedAuthority[] {new GrantedAuthorityImpl("ROLE_1"), new GrantedAuthorityImpl("ROLE_2")});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public final void setUp() throws Exception {
|
public void testOneAffirmativeGrantsAccess(){
|
||||||
super.setUp();
|
AffirmativeBased mgr = makeDecisionManager();
|
||||||
|
|
||||||
|
ConfigAttributeDefinition config = new ConfigAttributeDefinition(new String[]{"ROLE_1", "ROLE_2"});
|
||||||
|
mgr.decide(new TestingAuthenticationToken("somebody", "password", "ROLE_1"), new Object(), config);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testOneAffirmativeVoteOneDenyVoteOneAbstainVoteGrantsAccess()
|
public void testOneAffirmativeVoteOneDenyVoteOneAbstainVoteGrantsAccess()
|
||||||
@@ -82,7 +72,6 @@ public class AffirmativeBasedTests extends TestCase {
|
|||||||
ConfigAttributeDefinition config = new ConfigAttributeDefinition(new String[]{"ROLE_1", "DENY_FOR_SURE"});
|
ConfigAttributeDefinition config = new ConfigAttributeDefinition(new String[]{"ROLE_1", "DENY_FOR_SURE"});
|
||||||
|
|
||||||
mgr.decide(auth, new Object(), config);
|
mgr.decide(auth, new Object(), config);
|
||||||
assertTrue(true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testOneAffirmativeVoteTwoAbstainVotesGrantsAccess()
|
public void testOneAffirmativeVoteTwoAbstainVotesGrantsAccess()
|
||||||
@@ -93,7 +82,6 @@ public class AffirmativeBasedTests extends TestCase {
|
|||||||
ConfigAttributeDefinition config = new ConfigAttributeDefinition("ROLE_2");
|
ConfigAttributeDefinition config = new ConfigAttributeDefinition("ROLE_2");
|
||||||
|
|
||||||
mgr.decide(auth, new Object(), config);
|
mgr.decide(auth, new Object(), config);
|
||||||
assertTrue(true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testOneDenyVoteTwoAbstainVotesDeniesAccess()
|
public void testOneDenyVoteTwoAbstainVotesDeniesAccess()
|
||||||
@@ -107,7 +95,6 @@ public class AffirmativeBasedTests extends TestCase {
|
|||||||
mgr.decide(auth, new Object(), config);
|
mgr.decide(auth, new Object(), config);
|
||||||
fail("Should have thrown AccessDeniedException");
|
fail("Should have thrown AccessDeniedException");
|
||||||
} catch (AccessDeniedException expected) {
|
} catch (AccessDeniedException expected) {
|
||||||
assertTrue(true);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -124,7 +111,6 @@ public class AffirmativeBasedTests extends TestCase {
|
|||||||
mgr.decide(auth, new Object(), config);
|
mgr.decide(auth, new Object(), config);
|
||||||
fail("Should have thrown AccessDeniedException");
|
fail("Should have thrown AccessDeniedException");
|
||||||
} catch (AccessDeniedException expected) {
|
} catch (AccessDeniedException expected) {
|
||||||
assertTrue(true);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -138,10 +124,9 @@ public class AffirmativeBasedTests extends TestCase {
|
|||||||
ConfigAttributeDefinition config = new ConfigAttributeDefinition("IGNORED_BY_ALL");
|
ConfigAttributeDefinition config = new ConfigAttributeDefinition("IGNORED_BY_ALL");
|
||||||
|
|
||||||
mgr.decide(auth, new Object(), config);
|
mgr.decide(auth, new Object(), config);
|
||||||
assertTrue(true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testTwoAffirmativeVotesTwoAbstainVotesGrantsAccess()
|
public void testOneAffirmativeVotesTwoAbstainVotesGrantsAccess()
|
||||||
throws Exception {
|
throws Exception {
|
||||||
TestingAuthenticationToken auth = makeTestToken();
|
TestingAuthenticationToken auth = makeTestToken();
|
||||||
AffirmativeBased mgr = makeDecisionManager();
|
AffirmativeBased mgr = makeDecisionManager();
|
||||||
@@ -149,6 +134,5 @@ public class AffirmativeBasedTests extends TestCase {
|
|||||||
ConfigAttributeDefinition config = new ConfigAttributeDefinition(new String[]{"ROLE_1", "ROLE_2"});
|
ConfigAttributeDefinition config = new ConfigAttributeDefinition(new String[]{"ROLE_1", "ROLE_2"});
|
||||||
|
|
||||||
mgr.decide(auth, new Object(), config);
|
mgr.decide(auth, new Object(), config);
|
||||||
assertTrue(true);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,41 @@
|
|||||||
|
Bundle-SymbolicName: org.springframework.security.core
|
||||||
|
Bundle-Name: Spring Security Core
|
||||||
|
Bundle-Vendor: SpringSource
|
||||||
|
Bundle-Version: ${version}
|
||||||
|
Bundle-ManifestVersion: 2
|
||||||
|
Ignored-Existing-Headers:
|
||||||
|
Import-Package,
|
||||||
|
Export-Package
|
||||||
|
Import-Template:
|
||||||
|
org.aopalliance.*;version="[1.0.0, 2.0.0)",
|
||||||
|
org.aspectj.*;version="[1.5.2, 1.7.0)";resolution:=optional,
|
||||||
|
org.apache.commons.codec.*;version="[1.3, 2.0)";resolution:=optional,
|
||||||
|
org.apache.commons.logging.*;version="[1.0.4, 2.0.0)",
|
||||||
|
org.apache.commons.collections.*;version="[3.2.0, 4.0.0)",
|
||||||
|
org.jaxen.*;version="[1.1.1, 1.2.0)";resolution:=optional,
|
||||||
|
org.springframework.aop.*;version="[2.0.8, 3.1.0)";resolution:=optional,
|
||||||
|
org.springframework.beans.*;version="[2.0.8, 3.1.0)",
|
||||||
|
org.springframework.context.*;version="[2.0.8, 3.1.0)",
|
||||||
|
org.springframework.core.*;version="[2.0.8, 3.1.0)",
|
||||||
|
org.springframework.metadata.*;version="[2.0.8, 3.1.0)";resolution:=optional,
|
||||||
|
org.springframework.expression.*;version="[2.0.8, 3.1.0)";resolution:=optional,
|
||||||
|
org.springframework.remoting.*;version="[2.0.8, 3.1.0)";resolution:=optional,
|
||||||
|
org.springframework.dao.*;version="[2.0.8, 3.1.0)";resolution:=optional,
|
||||||
|
org.springframework.jdbc.*;version="[2.0.8, 3.1.0)";resolution:=optional,
|
||||||
|
org.springframework.transaction.*;version="[2.0.8, 3.1.0)";resolution:=optional,
|
||||||
|
org.springframework.web.context.*;version="[2.0.8, 3.1.0)";resolution:=optional,
|
||||||
|
org.springframework.util;version="[2.0.8, 3.1.0)",
|
||||||
|
org.springframework.mock.web;version="[2.0.8, 3.1.0)";resolution:=optional,
|
||||||
|
org.springframework.util.xml;version="[2.0.8, 3.1.0)";resolution:=optional,
|
||||||
|
org.springframework.ldap.*;version="[1.2.1.A, 1.3.0)";resolution:=optional,
|
||||||
|
org.apache.directory.server.*;version="[1.0.2, 1.5)";resolution:=optional,
|
||||||
|
net.sf.ehcache.*;version="[1.4.1, 2.0.0)";resolution:=optional,
|
||||||
|
javax.crypto.*;version="0";resolution:=optional,
|
||||||
|
javax.security.auth.*;version="0";resolution:=optional,
|
||||||
|
javax.servlet.*;version="[2.4.0, 3.0.0)";resolution:=optional,
|
||||||
|
javax.naming.*;version="0";resolution:=optional,
|
||||||
|
javax.rmi.*;version="0";resolution:=optional,
|
||||||
|
javax.sql.*;version="0";resolution:=optional,
|
||||||
|
javax.xml.parsers;version="0";resolution:=optional,
|
||||||
|
org.w3c.dom.*;version="0";resolution:=optional,
|
||||||
|
org.xml.sax.*;version="0";resolution:=optional
|
||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-parent</artifactId>
|
<artifactId>spring-security-parent</artifactId>
|
||||||
<version>2.0.5-SNAPSHOT</version>
|
<version>2.0.5.RELEASE</version>
|
||||||
</parent>
|
</parent>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<artifactId>spring-security-ntlm</artifactId>
|
<artifactId>spring-security-ntlm</artifactId>
|
||||||
|
|||||||
+12
-24
@@ -3,13 +3,13 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-parent</artifactId>
|
<artifactId>spring-security-parent</artifactId>
|
||||||
<version>2.0.5-SNAPSHOT</version>
|
<version>2.0.5.RELEASE</version>
|
||||||
</parent>
|
</parent>
|
||||||
<artifactId>spring-security-openid</artifactId>
|
<artifactId>spring-security-openid</artifactId>
|
||||||
<name>Spring Security - OpenID support</name>
|
<name>Spring Security - OpenID support</name>
|
||||||
<description>Spring Security - Support for OpenID</description>
|
<description>Spring Security - Support for OpenID</description>
|
||||||
<version>2.0.5-SNAPSHOT</version>
|
<version>2.0.5.RELEASE</version>
|
||||||
<packaging>bundle</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
@@ -45,26 +45,14 @@
|
|||||||
<version>0.9.3</version>
|
<version>0.9.3</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<properties>
|
<build>
|
||||||
<spring.osgi.export>
|
<plugins>
|
||||||
org.springframework.security.*;version=${pom.version.osgi}
|
<plugin>
|
||||||
</spring.osgi.export>
|
<groupId>com.springsource.bundlor</groupId>
|
||||||
|
<artifactId>com.springsource.bundlor.maven</artifactId>
|
||||||
<spring.osgi.import>
|
</plugin>
|
||||||
javax.servlet.*;version="[2.4.0, 3.0.0)",
|
</plugins>
|
||||||
org.apache.commons.logging.*;version="[1.1.1, 2.0.0)",
|
</build>
|
||||||
org.openid4java.*;version="[0.9.3, 1.0.0)",
|
|
||||||
org.springframework.security.*;version="[${pom.version.osgi},${pom.version.osgi}]",
|
|
||||||
org.springframework.beans.*;version="${spring.version.osgi}",
|
|
||||||
org.springframework.util.*;version="${spring.version.osgi}"
|
|
||||||
</spring.osgi.import>
|
|
||||||
|
|
||||||
<spring.osgi.private.pkg>
|
|
||||||
!org.springframework.security.*
|
|
||||||
</spring.osgi.private.pkg>
|
|
||||||
|
|
||||||
<spring.osgi.symbolic.name>org.springframework.security.openid</spring.osgi.symbolic.name>
|
|
||||||
</properties>
|
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
@@ -0,0 +1,15 @@
|
|||||||
|
Bundle-SymbolicName: org.springframework.security.openid
|
||||||
|
Bundle-Name: Spring Security OpenID Support
|
||||||
|
Bundle-Vendor: SpringSource
|
||||||
|
Bundle-Version: ${version}
|
||||||
|
Bundle-ManifestVersion: 2
|
||||||
|
Ignored-Existing-Headers:
|
||||||
|
Import-Package,
|
||||||
|
Export-Package
|
||||||
|
Import-Template:
|
||||||
|
javax.servlet.*;version="[2.4.0, 3.0.0)",
|
||||||
|
org.apache.commons.logging.*;version="[1.0.4, 2.0.0)",
|
||||||
|
org.openid4java.*;version="[0.9.3, 1.0.0)",
|
||||||
|
org.springframework.security.*;version="[${version},${version}]",
|
||||||
|
org.springframework.beans.*;version="[2.0.8, 3.1.0)",
|
||||||
|
org.springframework.util.*;version="[2.0.8, 3.1.0)"
|
||||||
@@ -3,14 +3,14 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-parent</artifactId>
|
<artifactId>spring-security-parent</artifactId>
|
||||||
<version>2.0.5-SNAPSHOT</version>
|
<version>2.0.5.RELEASE</version>
|
||||||
<name>Spring Security</name>
|
<name>Spring Security</name>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
<module>core</module>
|
<module>core</module>
|
||||||
<module>core-tiger</module>
|
<module>core-tiger</module>
|
||||||
<module>adapters</module>
|
<!-- module>adapters</module -->
|
||||||
<module>portlet</module>
|
<module>portlet</module>
|
||||||
<module>ntlm</module>
|
<module>ntlm</module>
|
||||||
<module>openid</module>
|
<module>openid</module>
|
||||||
@@ -38,9 +38,9 @@
|
|||||||
|
|
||||||
<!-- Note when doing releases: tagBase is set in release plugin configuration below -->
|
<!-- Note when doing releases: tagBase is set in release plugin configuration below -->
|
||||||
<scm>
|
<scm>
|
||||||
<connection>scm:svn:https://acegisecurity.svn.sourceforge.net/svnroot/acegisecurity/spring-security/trunk</connection>
|
<connection>scm:svn:https://src.springframework.org/svn/spring-security/tags/spring-security-2.0.5.RELEASE</connection>
|
||||||
<developerConnection>scm:svn:https://acegisecurity.svn.sourceforge.net/svnroot/acegisecurity/spring-security/trunk</developerConnection>
|
<developerConnection>scm:svn:https://src.springframework.org/svn/spring-security/tags/spring-security-2.0.5.RELEASE</developerConnection>
|
||||||
<url>http://acegisecurity.svn.sourceforge.net/viewcvs.cgi/acegisecurity/spring-security/trunk/</url>
|
<url>https://src.springframework.org/svn/spring-security/tags/spring-security-2.0.5.RELEASE</url>
|
||||||
</scm>
|
</scm>
|
||||||
|
|
||||||
<issueManagement>
|
<issueManagement>
|
||||||
@@ -54,9 +54,9 @@
|
|||||||
|
|
||||||
<distributionManagement>
|
<distributionManagement>
|
||||||
<repository>
|
<repository>
|
||||||
<id>spring-milestone</id>
|
<id>spring-release</id>
|
||||||
<name>Spring Milestone Repository</name>
|
<name>Spring Release Repository</name>
|
||||||
<url>s3://maven.springframework.org/milestone</url>
|
<url>s3://maven.springframework.org/release</url>
|
||||||
</repository>
|
</repository>
|
||||||
|
|
||||||
<snapshotRepository>
|
<snapshotRepository>
|
||||||
@@ -64,25 +64,15 @@
|
|||||||
<name>Spring Snapshot Repository</name>
|
<name>Spring Snapshot Repository</name>
|
||||||
<url>s3://maven.springframework.org/snapshot</url>
|
<url>s3://maven.springframework.org/snapshot</url>
|
||||||
</snapshotRepository>
|
</snapshotRepository>
|
||||||
|
|
||||||
<site>
|
|
||||||
<id>local</id>
|
|
||||||
<name>Local Site Directory</name>
|
|
||||||
<!--
|
|
||||||
This variable is set by the build release script. You can also set it on the command line if
|
|
||||||
you are running maven directly. e.g. mvn site -DsiteDirectory=file:///home/joe/mysite
|
|
||||||
-->
|
|
||||||
<url>${siteDirectory}</url>
|
|
||||||
</site>
|
|
||||||
</distributionManagement>
|
</distributionManagement>
|
||||||
|
|
||||||
<repositories>
|
<pluginRepositories>
|
||||||
<repository>
|
<pluginRepository>
|
||||||
<id>spring-external</id>
|
<id>com.springsource.repository.maven.milestone</id>
|
||||||
<name>Spring Portfolio Release Repository</name>
|
<name>SpringSource Enterprise Bundle Repository - SpringSource Milestone Releases</name>
|
||||||
<url>http://s3.amazonaws.com/maven.springframework.org/external</url>
|
<url>http://repository.springsource.com/maven/bundles/milestone</url>
|
||||||
</repository>
|
</pluginRepository>
|
||||||
</repositories>
|
</pluginRepositories>
|
||||||
|
|
||||||
<mailingLists>
|
<mailingLists>
|
||||||
<mailingList>
|
<mailingList>
|
||||||
@@ -236,11 +226,29 @@
|
|||||||
<build>
|
<build>
|
||||||
<extensions>
|
<extensions>
|
||||||
<extension>
|
<extension>
|
||||||
<groupId>org.springframework.aws</groupId>
|
<groupId>org.springframework.build.aws</groupId>
|
||||||
<artifactId>spring-aws-maven</artifactId>
|
<artifactId>org.springframework.build.aws.maven</artifactId>
|
||||||
<version>1.2.2</version>
|
<version>2.0.0.RELEASE</version>
|
||||||
</extension>
|
</extension>
|
||||||
</extensions>
|
</extensions>
|
||||||
|
<pluginManagement>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.springsource.bundlor</groupId>
|
||||||
|
<artifactId>com.springsource.bundlor.maven</artifactId>
|
||||||
|
<version>1.0.0.M5</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>bundlor</id>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>transform</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</pluginManagement>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
@@ -361,10 +369,10 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-release-plugin</artifactId>
|
<artifactId>maven-release-plugin</artifactId>
|
||||||
<version>2.0-beta-7</version>
|
<version>2.0-beta-9</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<tagBase>
|
<tagBase>
|
||||||
https://acegisecurity.svn.sourceforge.net/svnroot/acegisecurity/spring-security/tags
|
https://src.springframework.org/svn/spring-security/tags
|
||||||
</tagBase>
|
</tagBase>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
@@ -449,35 +457,6 @@
|
|||||||
</postProcess>
|
</postProcess>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<!-- OSGi Felix bundle plugin -->
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.felix</groupId>
|
|
||||||
<artifactId>maven-bundle-plugin</artifactId>
|
|
||||||
<version>1.4.0</version>
|
|
||||||
<extensions>true</extensions>
|
|
||||||
|
|
||||||
<configuration>
|
|
||||||
<obrRepository>NONE</obrRepository>
|
|
||||||
<instructions>
|
|
||||||
<!-- bundle specific conf -->
|
|
||||||
<Bundle-Name>${artifactId}</Bundle-Name>
|
|
||||||
<Bundle-SymbolicName>${spring.osgi.symbolic.name}</Bundle-SymbolicName>
|
|
||||||
<Bundle-Vendor>SpringSource</Bundle-Vendor>
|
|
||||||
<Export-Package>${spring.osgi.export}</Export-Package>
|
|
||||||
<Import-Package>${spring.osgi.import}</Import-Package>
|
|
||||||
<Private-Package>${spring.osgi.private.pkg}</Private-Package>
|
|
||||||
<!--Include-Resource>${spring.osgi.include.res}</Include-Resource-->
|
|
||||||
<!-- jar entries -->
|
|
||||||
<Implementation-Title>Spring Security</Implementation-Title>
|
|
||||||
<Implementation-Version>${pom.version}</Implementation-Version>
|
|
||||||
<Implementation-Vendor>SpringSource</Implementation-Vendor>
|
|
||||||
<Implementation-Vendor-Id>org.springframework.security</Implementation-Vendor-Id>
|
|
||||||
<!-- Spring specific entries -->
|
|
||||||
<!--Spring-Version>${spring.maven.artifact.version}</Spring-Version-->
|
|
||||||
</instructions>
|
|
||||||
<excludeDependencies>true</excludeDependencies>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
@@ -723,13 +702,11 @@
|
|||||||
<artifactId>standard</artifactId>
|
<artifactId>standard</artifactId>
|
||||||
<version>${jstl.version}</version>
|
<version>${jstl.version}</version>
|
||||||
<scope>runtime</scope>
|
<scope>runtime</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</dependencyManagement>
|
</dependencyManagement>
|
||||||
<properties>
|
<properties>
|
||||||
<pom.version.osgi>2.0.3.RELEASE</pom.version.osgi>
|
|
||||||
<spring.version>2.0.8</spring.version>
|
<spring.version>2.0.8</spring.version>
|
||||||
<spring.version.osgi>[2.0.8, 3.0.0)</spring.version.osgi>
|
|
||||||
<jstl.version>1.1.2</jstl.version>
|
<jstl.version>1.1.2</jstl.version>
|
||||||
|
|
||||||
<docbook.source>${basedir}/src/docbkx</docbook.source>
|
<docbook.source>${basedir}/src/docbkx</docbook.source>
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-parent</artifactId>
|
<artifactId>spring-security-parent</artifactId>
|
||||||
<version>2.0.5-SNAPSHOT</version>
|
<version>2.0.5.RELEASE</version>
|
||||||
</parent>
|
</parent>
|
||||||
<artifactId>spring-security-portlet</artifactId>
|
<artifactId>spring-security-portlet</artifactId>
|
||||||
<name>Spring Security - Portlet support</name>
|
<name>Spring Security - Portlet support</name>
|
||||||
|
|||||||
+2
-9
@@ -44,7 +44,7 @@ Release jars for the project are available from the central maven repository
|
|||||||
http://repo1.maven.org/maven2/org/springframework/security/
|
http://repo1.maven.org/maven2/org/springframework/security/
|
||||||
|
|
||||||
Note that milestone releases and snapshots are not uploaded to the central
|
Note that milestone releases and snapshots are not uploaded to the central
|
||||||
repository, but can be obtained from te Spring milestone repository.
|
repository, but can be obtained from the Spring milestone repository.
|
||||||
This blog article has full details on how to download milestone or snapshot
|
This blog article has full details on how to download milestone or snapshot
|
||||||
jars or use them in a Maven-based project build:
|
jars or use them in a Maven-based project build:
|
||||||
|
|
||||||
@@ -64,14 +64,7 @@ people who wrote Spring Security, and lead the development of the project:
|
|||||||
For peer help and assistance, please use the Spring Security forum
|
For peer help and assistance, please use the Spring Security forum
|
||||||
located at the Spring Community's forum site:
|
located at the Spring Community's forum site:
|
||||||
|
|
||||||
http://forum.springframework.org
|
http://forum.springsource.org
|
||||||
|
|
||||||
If you start using Spring Security in your project, please consider joining
|
|
||||||
the acegisecurity-developer mailing list. This is currently the best way to
|
|
||||||
keep informed about the project's status and provide feedback in design
|
|
||||||
discussions. You can join at:
|
|
||||||
|
|
||||||
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer.
|
|
||||||
|
|
||||||
Links to mailing list archives, the forums, and other useful resources are
|
Links to mailing list archives, the forums, and other useful resources are
|
||||||
available from the web site.
|
available from the web site.
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-samples-cas</artifactId>
|
<artifactId>spring-security-samples-cas</artifactId>
|
||||||
<version>2.0.5-SNAPSHOT</version>
|
<version>2.0.5.RELEASE</version>
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-samples-cas-client</artifactId>
|
<artifactId>spring-security-samples-cas-client</artifactId>
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-samples</artifactId>
|
<artifactId>spring-security-samples</artifactId>
|
||||||
<version>2.0.5-SNAPSHOT</version>
|
<version>2.0.5.RELEASE</version>
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-samples-cas</artifactId>
|
<artifactId>spring-security-samples-cas</artifactId>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-samples-cas</artifactId>
|
<artifactId>spring-security-samples-cas</artifactId>
|
||||||
<version>2.0.5-SNAPSHOT</version>
|
<version>2.0.5.RELEASE</version>
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-samples-cas-server</artifactId>
|
<artifactId>spring-security-samples-cas-server</artifactId>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-samples</artifactId>
|
<artifactId>spring-security-samples</artifactId>
|
||||||
<version>2.0.5-SNAPSHOT</version>
|
<version>2.0.5.RELEASE</version>
|
||||||
</parent>
|
</parent>
|
||||||
<artifactId>spring-security-samples-contacts</artifactId>
|
<artifactId>spring-security-samples-contacts</artifactId>
|
||||||
<name>Spring Security - Contacts sample</name>
|
<name>Spring Security - Contacts sample</name>
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-samples</artifactId>
|
<artifactId>spring-security-samples</artifactId>
|
||||||
<version>2.0.5-SNAPSHOT</version>
|
<version>2.0.5.RELEASE</version>
|
||||||
</parent>
|
</parent>
|
||||||
<artifactId>spring-security-samples-dms</artifactId>
|
<artifactId>spring-security-samples-dms</artifactId>
|
||||||
<name>Spring Security - DMS sample</name>
|
<name>Spring Security - DMS sample</name>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-samples</artifactId>
|
<artifactId>spring-security-samples</artifactId>
|
||||||
<version>2.0.5-SNAPSHOT</version>
|
<version>2.0.5.RELEASE</version>
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-samples-ldap</artifactId>
|
<artifactId>spring-security-samples-ldap</artifactId>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-samples</artifactId>
|
<artifactId>spring-security-samples</artifactId>
|
||||||
<version>2.0.5-SNAPSHOT</version>
|
<version>2.0.5.RELEASE</version>
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-samples-openid</artifactId>
|
<artifactId>spring-security-samples-openid</artifactId>
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-parent</artifactId>
|
<artifactId>spring-security-parent</artifactId>
|
||||||
<version>2.0.5-SNAPSHOT</version>
|
<version>2.0.5.RELEASE</version>
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-samples</artifactId>
|
<artifactId>spring-security-samples</artifactId>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-samples</artifactId>
|
<artifactId>spring-security-samples</artifactId>
|
||||||
<version>2.0.5-SNAPSHOT</version>
|
<version>2.0.5.RELEASE</version>
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-samples-portlet</artifactId>
|
<artifactId>spring-security-samples-portlet</artifactId>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-samples</artifactId>
|
<artifactId>spring-security-samples</artifactId>
|
||||||
<version>2.0.5-SNAPSHOT</version>
|
<version>2.0.5.RELEASE</version>
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-samples-preauth</artifactId>
|
<artifactId>spring-security-samples-preauth</artifactId>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-samples</artifactId>
|
<artifactId>spring-security-samples</artifactId>
|
||||||
<version>2.0.5-SNAPSHOT</version>
|
<version>2.0.5.RELEASE</version>
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-samples-tutorial</artifactId>
|
<artifactId>spring-security-samples-tutorial</artifactId>
|
||||||
|
|||||||
@@ -10,23 +10,23 @@
|
|||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-samples-webflow</artifactId>
|
<artifactId>spring-security-samples-webflow</artifactId>
|
||||||
<name>Spring Security - Webflow sample</name>
|
<name>Spring Security - Webflow sample</name>
|
||||||
<version>2.0.5-SNAPSHOT</version>
|
<version>2.0.5.CI-SNAPSHOT</version>
|
||||||
<packaging>war</packaging>
|
<packaging>war</packaging>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-core</artifactId>
|
<artifactId>spring-security-core</artifactId>
|
||||||
<version>2.0.4</version>
|
<version>2.0.5.CI-SNAPSHOT</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-core-tiger</artifactId>
|
<artifactId>spring-security-core-tiger</artifactId>
|
||||||
<version>2.0.4</version>
|
<version>2.0.5.CI-SNAPSHOT</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-taglibs</artifactId>
|
<artifactId>spring-security-taglibs</artifactId>
|
||||||
<version>2.0.4</version>
|
<version>2.0.5.CI-SNAPSHOT</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.webflow</groupId>
|
<groupId>org.springframework.webflow</groupId>
|
||||||
|
|||||||
+8
-2
@@ -3,13 +3,13 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>spring-security-parent</artifactId>
|
<artifactId>spring-security-parent</artifactId>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<version>2.0.5-SNAPSHOT</version>
|
<version>2.0.5.RELEASE</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-taglibs</artifactId>
|
<artifactId>spring-security-taglibs</artifactId>
|
||||||
<name>Spring Security - JSP taglibs</name>
|
<name>Spring Security - JSP taglibs</name>
|
||||||
<version>2.0.5-SNAPSHOT</version>
|
<version>2.0.5.RELEASE</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
@@ -64,5 +64,11 @@
|
|||||||
<filtering>false</filtering>
|
<filtering>false</filtering>
|
||||||
</resource>
|
</resource>
|
||||||
</resources>
|
</resources>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.springsource.bundlor</groupId>
|
||||||
|
<artifactId>com.springsource.bundlor.maven</artifactId>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
Bundle-SymbolicName: org.springframework.security.taglibs
|
||||||
|
Bundle-Name: Spring Security Taglibs
|
||||||
|
Bundle-Vendor: SpringSource
|
||||||
|
Bundle-Version: ${version}
|
||||||
|
Bundle-ManifestVersion: 2
|
||||||
|
Ignored-Existing-Headers:
|
||||||
|
Import-Package,
|
||||||
|
Export-Package
|
||||||
|
Import-Template:
|
||||||
|
org.apache.commons.logging.*;version="[1.0.4, 2.0.0)",
|
||||||
|
org.springframework.security.*;version="[${version}, ${version}]",
|
||||||
|
org.springframework.beans.*;version="[2.0.8, 3.1.0)",
|
||||||
|
org.springframework.context.*;version="[2.0.8, 3.1.0)",
|
||||||
|
org.springframework.web.*;version="[2.0.8, 3.1.0)",
|
||||||
|
org.springframework.util;version="[2.0.8, 3.1.0)",
|
||||||
|
net.sf.ehcache.*;version="[1.4.1, 2.0.0)";resolution:=optional,
|
||||||
|
javax.servlet.*;version="0"
|
||||||
|
|
||||||
Reference in New Issue
Block a user