diff --git a/redback-common/redback-common-ldap/src/main/java/org/apache/archiva/redback/common/ldap/connection/LdapConnection.java b/redback-common/redback-common-ldap/src/main/java/org/apache/archiva/redback/common/ldap/connection/LdapConnection.java index ce45e2e1..666be5e3 100644 --- a/redback-common/redback-common-ldap/src/main/java/org/apache/archiva/redback/common/ldap/connection/LdapConnection.java +++ b/redback-common/redback-common-ldap/src/main/java/org/apache/archiva/redback/common/ldap/connection/LdapConnection.java @@ -37,7 +37,6 @@ import java.util.Properties; * The configuration for a connection will not change. * * @author trygvis - * */ public class LdapConnection { @@ -76,6 +75,8 @@ public class LdapConnection baseDn.add( subRdn ); } + log.debug( "baseDn: {}", baseDn ); + baseDnRdns = Collections.unmodifiableList( baseDn.getRdns() ); if ( context != null ) @@ -83,6 +84,8 @@ public class LdapConnection throw new LdapException( "Already connected." ); } + log.debug( "baseDnRdns: {}", baseDnRdns ); + Hashtable e = getEnvironment(); try @@ -141,9 +144,9 @@ public class LdapConnection // REDBACK-289/MRM-1488 // enable connection pooling when using Sun's LDAP context factory - if( config.getContextFactory().equals( "com.sun.jndi.ldap.LdapCtxFactory" ) ) + if ( config.getContextFactory().equals( "com.sun.jndi.ldap.LdapCtxFactory" ) ) { - env.put( "com.sun.jndi.ldap.connect.pool", "true"); + env.put( "com.sun.jndi.ldap.connect.pool", "true" ); env.put( "com.sun.jndi.ldap.connect.pool.timeout", "3600" ); } @@ -222,6 +225,8 @@ public class LdapConnection env.setProperty( Context.STATE_FACTORIES, stateFactories ); } + log.debug( "env properties: {}", env ); + return env; }