From 88610b6e1554bf68fea03ffbd35e41e5152f9ded Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Sat, 27 Apr 2013 12:53:19 +0000 Subject: [PATCH] add some debug git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1476566 13f79535-47bb-0310-9956-ffa450edef68 --- .../common/ldap/connection/LdapConnection.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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; }