From 82cfa722bed832d8af5fa6d86830bdf9bba0334c Mon Sep 17 00:00:00 2001 From: Luke Taylor Date: Tue, 11 Dec 2007 18:08:44 +0000 Subject: [PATCH] Upgrade Spring-LDAP to 1.2.1 version. --- core/pom.xml | 2 +- .../DefaultSpringSecurityContextSource.java | 22 ------------------- ntlm/pom.xml | 2 +- pom.xml | 10 ++------- releasebuild.sh | 6 +++-- 5 files changed, 8 insertions(+), 34 deletions(-) diff --git a/core/pom.xml b/core/pom.xml index ea84a430cf..e155a6cdc5 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -56,7 +56,7 @@ org.springframework.ldap spring-ldap - 1.2.1-SNAPSHOT + 1.2.1 true diff --git a/core/src/main/java/org/springframework/security/ldap/DefaultSpringSecurityContextSource.java b/core/src/main/java/org/springframework/security/ldap/DefaultSpringSecurityContextSource.java index a5b2cb7801..4a77927035 100644 --- a/core/src/main/java/org/springframework/security/ldap/DefaultSpringSecurityContextSource.java +++ b/core/src/main/java/org/springframework/security/ldap/DefaultSpringSecurityContextSource.java @@ -12,7 +12,6 @@ import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import javax.naming.Context; -import javax.naming.NamingException; import javax.naming.directory.DirContext; import java.util.ArrayList; import java.util.Hashtable; @@ -89,27 +88,6 @@ public class DefaultSpringSecurityContextSource extends LdapContextSource implem } } - /** Copied from parent AbstractContextSource as package private */ - DirContext createContext(Hashtable environment) { - DirContext ctx = null; - - try { - ctx = getDirContextInstance(environment); - - if (logger.isInfoEnabled()) { - Hashtable ctxEnv = ctx.getEnvironment(); - String ldapUrl = (String) ctxEnv.get(Context.PROVIDER_URL); - logger.debug("Got Ldap context on server '" + ldapUrl + "'"); - } - - return ctx; - } - catch (NamingException e) { - LdapUtils.closeContext(ctx); - throw org.springframework.ldap.support.LdapUtils.convertLdapException(e); - } - } - public void setMessageSource(MessageSource messageSource) { this.messages = new MessageSourceAccessor(messageSource); } diff --git a/ntlm/pom.xml b/ntlm/pom.xml index 3688db8be5..0f146ccfb3 100755 --- a/ntlm/pom.xml +++ b/ntlm/pom.xml @@ -36,7 +36,7 @@ org.springframework.ldap spring-ldap - 1.2.1-SNAPSHOT + 1.2.1 true diff --git a/pom.xml b/pom.xml index a239ad976d..893cd5431f 100644 --- a/pom.xml +++ b/pom.xml @@ -73,7 +73,7 @@ ${siteDirectory} - + - - acegirepo - Acegi maven repository - http://acegisecurity.sourceforge.net/maven - spring-milestone Springframework Maven Milestone Repository http://s3.amazonaws.com/maven.springframework.org/milestone - +--> Acegi Developer List diff --git a/releasebuild.sh b/releasebuild.sh index a48a62ca4e..abad4d08ee 100644 --- a/releasebuild.sh +++ b/releasebuild.sh @@ -6,11 +6,13 @@ # # 1. Do clean check out of source from svn and note revision number. # 2. Switch to 1.4 JVM and run 'mvn test' from core directory. -# 3. Set the version number in the pom.xml files of all the module. +# 3. Set the version number in the pom.xml files of all the modules. # 3a. If doing a release rather than snapshot build, run "find . -name pom.xml | xargs grep SNAPSHOT" and make sure # there are no important snapshot dependencies. # 3b. Set the same version number in this script. # 4. Set the correct spring version number in the pom.xml. +# 4a. Make sure there are no snapshot dependencies in the release. +# 4b. Remove any references to external maven repositories in the parent pom.xml (remove element). # 5. Run this script to generate the artifacts and web site in the 'release' directory. # 6. Copy the archives and unpack them to check the contents. # 7. The archives are tar archives. Create zip versions from the contents and check the internal paths are Ok. @@ -185,7 +187,7 @@ tar --exclude='*/.svn' -cjf $PROJECT_NAME-$RELEASE_VERSION-src.tar.bz2 notice.tx -C ${PROJ_DIR}/adapters/jboss/main/java org \ -C ${PROJ_DIR}/adapters/resin/main/java org \ -C ${PROJ_DIR}/adapters/cas/main/java org \ - -C ${PROJ_DIR}/adapters/catalina/main/java org + -C ${PROJ_DIR}/adapters/catalina/main/java org