Debugging LDAP Connection Properties

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

This page describes how to tell what LDAP configuration properties are being picked up (especially for pooling) after configuring atlassian-user.xml. The following debug classes should help. Attached are LdapRepositoryProcessor.class and LdapConnectionPropertiesFactory.class. Here's how to add debugging.

For LDAP Standard Connection Debugging
  1. Add LdapConnectionPropertiesFactory.class to /confluence/WEB-INF/classes/com/atlassian/user/impl/ldap/properties/factory (you may have to create some directories).
  2. Add to log4j.properties the following line:
    log4j.logger.com.atlassian.user.impl.ldap.properties.factory=DEBUG
For LDAP Connection Pool Debugging
  1. Add LdapRepositoryProcessor.class to /confluence/WEB-INF/classes/com/atlassian/user/impl/ldap/configuration (you may have to create some directories).
  2. Add to log4j.properties the following line:
    log4j.logger.com.atlassian.user.impl.ldap.configuration=DEBUG

The following output should appear in atlassian-confluence.log:


2009-05-11 14:58:24,919 DEBUG [main] [impl.ldap.configuration.LdapRepositoryProcessor] setConnectionPoolProperties com.sun.jndi.ldap.connect.pool.authentication: simple
2009-05-11 14:58:24,922 DEBUG [main] [impl.ldap.configuration.LdapRepositoryProcessor] setConnectionPoolProperties com.sun.jndi.ldap.connect.pool.debug: none
2009-05-11 14:58:24,924 DEBUG [main] [impl.ldap.configuration.LdapRepositoryProcessor] setConnectionPoolProperties com.sun.jndi.ldap.connect.pool.prefsize: 15
2009-05-11 14:58:24,925 DEBUG [main] [impl.ldap.configuration.LdapRepositoryProcessor] setConnectionPoolProperties com.sun.jndi.ldap.connect.pool.protocol: plain
2009-05-11 14:58:24,926 DEBUG [main] [impl.ldap.configuration.LdapRepositoryProcessor] setConnectionPoolProperties com.sun.jndi.ldap.connect.pool.initsize: 1
2009-05-11 14:58:24,927 DEBUG [main] [impl.ldap.configuration.LdapRepositoryProcessor] setConnectionPoolProperties com.sun.jndi.ldap.connect.pool.maxsize: 0
2009-05-11 14:58:24,928 DEBUG [main] [impl.ldap.configuration.LdapRepositoryProcessor] setConnectionPoolProperties javax.net.ssl.trustStore: null
2009-05-11 14:58:24,929 DEBUG [main] [impl.ldap.configuration.LdapRepositoryProcessor] setConnectionPoolProperties com.sun.jndi.ldap.connect.pool.timeout: 20000
2009-05-11 14:58:24,970 DEBUG [main] [ldap.properties.factory.LdapConnectionPropertiesFactory] createInstance Host: localhost
2009-05-11 14:58:24,971 DEBUG [main] [ldap.properties.factory.LdapConnectionPropertiesFactory] createInstance Port: 10389
2009-05-11 14:58:24,972 DEBUG [main] [ldap.properties.factory.LdapConnectionPropertiesFactory] createInstance Batch Size: 100
2009-05-11 14:58:24,973 DEBUG [main] [ldap.properties.factory.LdapConnectionPropertiesFactory] createInstance Connect Timeout: 9000
2009-05-11 14:58:24,974 DEBUG [main] [ldap.properties.factory.LdapConnectionPropertiesFactory] createInstance pooling: true
2009-05-11 14:58:24,975 DEBUG [main] [ldap.properties.factory.LdapConnectionPropertiesFactory] createInstance ReadTimeout: 60000

Last modified on Mar 30, 2016

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.