1
0
mirror of synced 2026-08-03 00:37:03 +00:00

Upgrade Spring-LDAP to 1.2.1 version.

This commit is contained in:
Luke Taylor
2007-12-11 18:08:44 +00:00
parent 1bbe6ca456
commit 82cfa722be
5 changed files with 8 additions and 34 deletions
@@ -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 <tt>AbstractContextSource</tt> 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);
}