add some debug
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1476566 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a0cdc9653a
commit
88610b6e15
|
@ -37,7 +37,6 @@ import java.util.Properties;
|
|||
* The configuration for a connection will not change.
|
||||
*
|
||||
* @author <a href="mailto:trygvis@inamo.no">trygvis</a>
|
||||
*
|
||||
*/
|
||||
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<Object, Object> 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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue